Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

update vector store to remove dummy embeddings

KCaverlyd8fd0be59832
diff --git a/crates/vector_store/src/vector_store.rs b/crates/vector_store/src/vector_store.rs
index 3d9c32875ee..d35798a58db 100644
--- a/crates/vector_store/src/vector_store.rs
+++ b/crates/vector_store/src/vector_store.rs
@@ -80,11 +80,10 @@ pub fn init(
let vector_store = VectorStore::new(
fs,
db_file_path,
- Arc::new(embedding::DummyEmbeddings {}),
- // Arc::new(OpenAIEmbeddings {
- // client: http_client,
- // executor: cx.background(),
- // }),
+ Arc::new(OpenAIEmbeddings {
+ client: http_client,
+ executor: cx.background(),
+ }),
language_registry,
cx.clone(),
)