Semantic index eval (#2988)
v0 of the Semantic Index evaluate test suite Release Notes: - Added eval.rs as an example to the semantic-index crates - Generates test metrics for two small projects, as a starting point to systematically evaluate retrieval quality
This commit is contained in:
commit
2f44055079
13 changed files with 1069 additions and 322 deletions
|
@ -1,5 +1,5 @@
|
|||
mod db;
|
||||
mod embedding;
|
||||
pub mod embedding;
|
||||
mod embedding_queue;
|
||||
mod parsing;
|
||||
pub mod semantic_index_settings;
|
||||
|
@ -294,7 +294,7 @@ impl SemanticIndex {
|
|||
}
|
||||
}
|
||||
|
||||
async fn new(
|
||||
pub async fn new(
|
||||
fs: Arc<dyn Fs>,
|
||||
database_path: PathBuf,
|
||||
embedding_provider: Arc<dyn EmbeddingProvider>,
|
||||
|
@ -966,8 +966,6 @@ impl SemanticIndex {
|
|||
cx: &mut ModelContext<Self>,
|
||||
) -> Task<Result<()>> {
|
||||
if !self.projects.contains_key(&project.downgrade()) {
|
||||
log::trace!("Registering Project for Semantic Index");
|
||||
|
||||
let subscription = cx.subscribe(&project, |this, project, event, cx| match event {
|
||||
project::Event::WorktreeAdded | project::Event::WorktreeRemoved(_) => {
|
||||
this.project_worktrees_changed(project.clone(), cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue