From 315d7426b65b31e7f9e1d13d9827863903b1e711 Mon Sep 17 00:00:00 2001 From: rjmacarthy Date: Tue, 12 Nov 2024 20:20:06 +0000 Subject: [PATCH] lint testing changes --- src/extension/embeddings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extension/embeddings.ts b/src/extension/embeddings.ts index ab35c108..0be63d07 100644 --- a/src/extension/embeddings.ts +++ b/src/extension/embeddings.ts @@ -154,11 +154,11 @@ export class EmbeddingDatabase extends Base { this._extensionContext ) - const fileNameEmbedding = await this.fetchModelEmbedding(filePath) + const filePathEmbedding = await this.fetchModelEmbedding(filePath) this._filePaths.push({ content: filePath, - vector: fileNameEmbedding, + vector: filePathEmbedding, file: filePath }) @@ -239,7 +239,7 @@ export class EmbeddingDatabase extends Base { ): Promise { try { const table = await this._db?.openTable(tableName) - const query = table?.vectorSearch(vector).select("content").limit(limit) + const query = table?.vectorSearch(vector).limit(limit) if (where) query?.where(where) return query?.toArray() } catch (e) {