Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit 315d742

Browse files
committed
lint testing changes
1 parent 661a56c commit 315d742

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extension/embeddings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ export class EmbeddingDatabase extends Base {
154154
this._extensionContext
155155
)
156156

157-
const fileNameEmbedding = await this.fetchModelEmbedding(filePath)
157+
const filePathEmbedding = await this.fetchModelEmbedding(filePath)
158158

159159
this._filePaths.push({
160160
content: filePath,
161-
vector: fileNameEmbedding,
161+
vector: filePathEmbedding,
162162
file: filePath
163163
})
164164

@@ -239,7 +239,7 @@ export class EmbeddingDatabase extends Base {
239239
): Promise<EmbeddedDocument[] | undefined> {
240240
try {
241241
const table = await this._db?.openTable(tableName)
242-
const query = table?.vectorSearch(vector).select("content").limit(limit)
242+
const query = table?.vectorSearch(vector).limit(limit)
243243
if (where) query?.where(where)
244244
return query?.toArray()
245245
} catch (e) {

0 commit comments

Comments
 (0)