-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change embedding model from Xenova/all-MiniLM-L6-v2 to text-embedding…
…-004 Refactor ICodeRepository interface and related methods Update error message display in utils.ts Modify extension.ts to include database connection and code indexing Implement new CodeIndexingService and update related services
- Loading branch information
Olasunkanmi Oyinlola
authored and
Olasunkanmi Oyinlola
committed
Jan 22, 2025
1 parent
aeb0456
commit 35ea6d5
Showing
14 changed files
with
463 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ node_modules | |
.sentryclirc | ||
config.ts | ||
patterns | ||
webviewUi/dist | ||
webviewUi/dist | ||
samples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import { ResultSet, Row } from "@libsql/client/."; | ||
import { ResultSet, Row } from "@libsql/client"; | ||
|
||
export interface ICodeRepository { | ||
CreateTable(values: string): Promise<ResultSet[] | undefined>; | ||
searchSimilarFunctions( | ||
queryEmbeddings: number[], | ||
limit: number, | ||
): Promise<Row[] | undefined>; | ||
createFunctionsTable(): Promise<ResultSet | undefined>; | ||
insertFunctions(values: string): Promise<ResultSet | undefined>; | ||
searchSimilarFunctions(queryEmbeddings: number[], limit: number): Promise<Row[] | undefined>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.