Skip to content

Commit

Permalink
Update agent.module.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
serefyarar committed Jul 23, 2024
1 parent aa05d72 commit a71b7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer/src/app/modules/agent.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class Agent {
});

const queryVector = await embeddingModel.embedQuery(
formatChatHistory(requestMessages),
formatChatHistory(requestMessages.slice(-1)),
);
payload.vector = queryVector;
}
Expand Down

0 comments on commit a71b7ac

Please sign in to comment.