MCPcopy Create free account
hub / github.com/CodeBendKit/codeseek / run_vectorize

Function run_vectorize

rust-core/src/cli/vectorize.rs:6–23  ·  view source on GitHub ↗

Run vectorize command

(path: String, collection: String, db_path: String, config: Option<Config>)

Source from the content-addressed store, hash-verified

4
5/// Run vectorize command
6pub async fn run_vectorize(path: String, collection: String, db_path: String, config: Option<Config>) -> Result<(), Box<dyn std::error::Error>> {
7 info!("Starting vectorize command");
8 info!("Path: {}", path);
9 info!("Collection: {}", collection);
10 info!("LanceDB Path: {}", db_path);
11
12 // Create vectorize service
13 let service = EmbeddingService::new(&db_path, collection, config.as_ref(), None).await?;
14
15 // Ensure collection exists
16 service.ensure_collection().await?;
17
18 // Vectorize directory
19 service.vectorize_directory(&path, None).await?;
20
21 info!("Vectorize command completed successfully");
22 Ok(())
23}

Callers

nothing calls this directly

Calls 2

ensure_collectionMethod · 0.80
vectorize_directoryMethod · 0.80

Tested by

no test coverage detected