MCPcopy Create free account
hub / github.com/cosdata/cosdata / vectors_module

Function vectors_module

src/api/vectordb/vectors/mod.rs:9–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7mod service;
8
9pub(crate) fn vectors_module() -> Scope {
10 web::scope("/collections/{collection_id}/vectors")
11 .route("", web::get().to(controller::query_vectors))
12 .route("/{vector_id}", web::get().to(controller::get_vector_by_id))
13 .route(
14 "/{vector_id}",
15 web::head().to(controller::check_vector_existence),
16 )
17 .route(
18 "/{vector_id}/neighbors",
19 web::get().to(controller::fetch_vector_neighbors),
20 )
21}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected