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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//! # ZeroEntropy Rust SDK
//!
//! Rust client library for the [ZeroEntropy API](https://zeroentropy.dev).
//!
//! ## Quick Start
//!
//! ```no_run
//! use zeroentropy_community::Client;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Create client from environment variable ZEROENTROPY_API_KEY
//! let client = Client::from_env()?;
//!
//! // Create a collection
//! client.collections().add("my_collection").await?;
//!
//! // Add a document
//! client.documents().add_text(
//! "my_collection",
//! "doc1.txt",
//! "This is a test document",
//! None,
//! ).await?;
//!
//! // Search documents
//! let results = client.queries().top_snippets(
//! "my_collection",
//! "test",
//! 10,
//! None,
//! None,
//! None,
//! None,
//! ).await?;
//!
//! println!("Found {} results", results.results.len());
//! Ok(())
//! }
//! ```
pub use ;
pub use ;
pub use ;
pub use *;