ripvec_core/lib.rs
1//! Core library for ripvec semantic code search.
2//!
3//! Provides pluggable embedding backends ([`backend::EmbedBackend`] trait with
4//! CPU, CUDA, Metal, and MLX implementations), tree-sitter code chunking, parallel
5//! embedding, and cosine similarity ranking.
6
7pub mod backend;
8pub mod bm25;
9pub mod cache;
10pub mod chunk;
11pub mod embed;
12pub mod encoder;
13pub mod error;
14pub mod hybrid;
15pub mod index;
16pub mod languages;
17pub mod profile;
18pub mod ranking;
19pub mod repo_map;
20pub mod rerank;
21pub mod searchable;
22pub mod similarity;
23pub mod tokenize;
24pub mod turbo_quant;
25pub mod walk;
26
27pub use error::Error;
28
29/// Convenience Result type for ripvec-core.
30pub type Result<T> = std::result::Result<T, Error>;