ic-rig 0.2.0

A lean, modular library for building LLM applications. Bring your own HTTP client.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Vector search acceleration structures.
//!
//! Use these *in front of* exact cosine scoring to eliminate candidates
//! before doing expensive dot-product math.
//!
//! | Structure  | Algorithm | Tradeoff                          |
//! |------------|-----------|-----------------------------------|
//! | [`LshIndex`] | LSH w/ random projection | Simple, zero deps, ~90% recall  |
//!
//! More structures (HNSW, IVF) can be added as separate modules.

pub mod lsh;
pub use lsh::LshIndex;