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
//! # Orama Rust Client
//!
//! A server-side Rust client for [Orama](https://orama.com), a search engine,
//! vector database, and LLM inference provider.
//!
//! This client is designed for use in server environments and Rust
//! applications, providing async/await support and full type safety.
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use oramacore_client::collection::CollectionManagerConfig;
//! use oramacore_client::{CollectionManager, SearchParams, SearchResult};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let config = CollectionManagerConfig::new("your-collection-id", "your-api-key");
//! let manager = CollectionManager::new(config).await?;
//!
//! let results: SearchResult<serde_json::Value> = manager
//! .search(&SearchParams {
//! term: "rust programming".to_string(),
//! limit: Some(10),
//! ..Default::default()
//! })
//! .await?;
//!
//! println!("Found {} results", results.count);
//!
//! Ok(())
//! }
//! ```
// Re-export main types for convenience
pub use OramaCloud;
pub use CollectionManager;
pub use ;
pub use OramaCoreManager;
pub use OramaCoreStream;
pub use *;