Skip to main content

Crate ripvec_core

Crate ripvec_core 

Source
Expand description

Core library for ripvec semantic code search.

Provides pluggable embedding backends (backend::EmbedBackend trait with CPU, CUDA, and MLX implementations), tree-sitter code chunking, parallel embedding, and cosine similarity ranking.

Re-exports§

pub use error::Error;

Modules§

backend
Embedding backend abstraction layer.
bm25
BM25 keyword search index for code chunks.
cache
Persistent index cache with content-addressed object store.
chunk
Tree-sitter based code chunking with sliding-window fallback.
embed
Parallel batch embedding pipeline with streaming backpressure.
error
Error types for ripvec-core.
hybrid
Hybrid semantic + keyword search with Reciprocal Rank Fusion (RRF).
index
In-memory search index for real-time re-ranking.
languages
Language registry mapping file extensions to tree-sitter grammars.
profile
Pipeline profiling instrumentation.
repo_map
PageRank-weighted structural overview of a codebase.
similarity
Cosine similarity computation and ranking.
tokenize
HuggingFace tokenizer wrapper.
turbo_quant
TurboQuant: high-throughput compressed vector search.
walk
Parallel directory traversal using the ignore crate.

Type Aliases§

Result
Convenience Result type for ripvec-core.