Skip to main content

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, 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 error;
13pub mod hybrid;
14pub mod index;
15pub mod languages;
16pub mod profile;
17pub mod repo_map;
18pub mod similarity;
19pub mod tokenize;
20pub mod turbo_quant;
21pub mod walk;
22
23pub use error::Error;
24
25/// Convenience Result type for ripvec-core.
26pub type Result<T> = std::result::Result<T, Error>;