Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
updated vector_store to remove parsing module
KCaverly9d19dea7dd85
diff --git a/crates/vector_store/src/vector_store.rs b/crates/vector_store/src/vector_store.rsindex 4860bcd2bbd..d7fd59466fd 100644--- a/crates/vector_store/src/vector_store.rs+++ b/crates/vector_store/src/vector_store.rs@@ -1,6 +1,5 @@mod db;mod embedding;-mod parsing;mod search;#[cfg(test)]@@ -11,7 +10,6 @@ use db::{FileSha1, VectorDatabase, VECTOR_DB_URL};use embedding::{EmbeddingProvider, OpenAIEmbeddings};use gpui::{actions, AppContext, Entity, ModelContext, ModelHandle, Task, ViewContext};use language::{Language, LanguageRegistry};-use parsing::Document;use project::{Fs, Project};use smol::channel;use std::{cmp::Ordering, collections::HashMap, path::PathBuf, sync::Arc};@@ -21,6 +19,13 @@ use workspace::{Workspace, WorkspaceCreated};actions!(semantic_search, [TestSearch]);+#[derive(Debug)]+pub struct Document {+ pub offset: usize,+ pub name: String,+ pub embedding: Vec<f32>,+}+pub fn init(fs: Arc<dyn Fs>,http_client: Arc<dyn HttpClient>,