ZIm/crates/vector_store
KCaverly 307d8d9c8d Reduced redundant database connections on each worktree change.
Co-authored-by: maxbrunsfeld <max@zed.dev>
2023-07-10 17:50:19 -04:00
..
src Reduced redundant database connections on each worktree change. 2023-07-10 17:50:19 -04:00
Cargo.toml corrected batching order and managed for open ai embedding errors 2023-07-06 11:11:39 -04:00
README.md WIP: started work on vector store db, by walking project worktrees.\n\nCo-Authored-By: Max <max@zed.dev> 2023-06-21 14:53:08 -04:00

WIP: Sample SQL Queries /*

create table "files" ( "id" INTEGER PRIMARY KEY, "path" VARCHAR, "sha1" VARCHAR, );

create table symbols ( "file_id" INTEGER REFERENCES("files", "id") ON CASCADE DELETE, "offset" INTEGER, "embedding" VECTOR, );

insert into "files" ("path", "sha1") values ("src/main.rs", "sha1") return id; insert into symbols ( "file_id", "start", "end", "embedding" ) values ( (id,), (id,), (id,), (id,), )

*/