zed/crates/vector_store
Kirill Bulatov a884bd77e1 Slightly tidy up vector_db code
Avoid panicking when truncating code with special chars
2023-07-18 14:06:57 +03:00
..
src Slightly tidy up vector_db code 2023-07-18 14:06:57 +03:00
Cargo.toml
README.md

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,), )

*/