1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # vectordb-client
//!
//! Client library for interacting with the VectorDB semantic code search service.
//! This crate provides a gRPC client for connecting to the VectorDB server and
//! performing operations such as indexing code, searching, and repository management.
//!
//! ## Usage
//!
//! ```rust,no_run
//! use vectordb_client::VectorDBClient;
//! use std::error::Error;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn Error>> {
//! // Create a client with default configuration (localhost:50051)
//! let mut client = VectorDBClient::default().await?;
//!
//! // Get server info
//! let server_info = client.get_server_info().await?;
//! println!("Connected to server version: {}", server_info.version);
//!
//! // List collections
//! let collections = client.list_collections().await?;
//! println!("Available collections:");
//! for collection in collections.collections {
//! println!(" - {}", collection);
//! }
//!
//! Ok(())
//! }
//! ```
pub use VectorDBClient;
pub use ClientConfig;
pub use ;
// Re-export messages from the proto crate for convenience
pub use ;