Skip to content

Commit

Permalink
lint testing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmacarthy committed Nov 12, 2024
1 parent 661a56c commit 315d742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/extension/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down Expand Up @@ -239,7 +239,7 @@ export class EmbeddingDatabase extends Base {
): Promise<EmbeddedDocument[] | undefined> {
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) {
Expand Down

0 comments on commit 315d742

Please sign in to comment.