Skip to content

Commit

Permalink
fix query issue
Browse files Browse the repository at this point in the history
  • Loading branch information
n4ze3m committed May 3, 2024
1 parent 0d58f33 commit 539130d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/src/utils/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@ export class DialoqbaseVectorStore extends VectorStore {
k: number,
filter?: this["FilterType"] | undefined
): Promise<[Document<Record<string, any>>, number][]> {
console.log(this.botId);
const vector = `[${query.join(",")}]`;
if (!query) {
return [];
}
const vector = `[${query?.join(",")}]`;
const bot_id = this.botId;

const botInfo = await prisma.bot.findFirst({
Expand Down

0 comments on commit 539130d

Please sign in to comment.