Implement global codebase vector indexing
This commit is contained in:
1 parent
ec0472155f
commit
181fc096a1
4 files changed
+208
No files matched your search
@@ -12,6 +12,7 @@ mod models;
|
||||
mod router;
|
||||
mod search;
|
||||
pub mod embedding;
|
||||
pub mod indexer;
|
||||
mod state;
|
||||
mod store;
|
||||
mod tools;
|
||||
@@ -131,6 +132,10 @@ async fn run_server(state: Arc<MemoryState>) -> Result<(), Box<dyn std::error::E
|
||||
state_for_index.rebuild_index().await;
|
||||
tracing::info!("Index rebuild complete.");
|
||||
});
|
||||
|
||||
// Start the global codebase indexer
|
||||
crate::indexer::start_background_indexer(Arc::clone(&state)).await;
|
||||
|
||||
tokio::spawn(index_committer_worker(Arc::clone(&state)));
|
||||
tokio::spawn(ttl_sweeper_worker(Arc::clone(&state)));
|
||||
crate::clipboard_watcher::spawn_watcher(Arc::clone(&state));
|
||||
|
||||
Reference in new issue
Block a user