zed/crates/semantic_index
Antonio Scandurra 3001a46f69 Reify Embedding/Sha1 structs that can be (de)serialized from SQL
Co-Authored-By: Kyle Caverly <kyle@zed.dev>
2023-08-31 17:55:43 +02:00
..
src Reify Embedding/Sha1 structs that can be (de)serialized from SQL 2023-08-31 17:55:43 +02:00
Cargo.toml add proper handling for open ai rate limit delays 2023-08-29 15:44:51 -04:00
README.md rename vector_store crate to semantic_index 2023-07-17 17:06:10 -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,), )

*/