Re-exports§
pub use embeddings::EmbeddingModel;pub use embeddings::HttpEmbeddingModel;pub use embeddings::OpenAIEmbeddingModel;pub use embeddings::EmbeddingRequest;pub use embeddings::OllamaEmbeddingModel;pub use vector_store::JsonPersistentVectorStore;pub use vector_store::VectorStore;pub use vector_store::InMemoryVectorStore;pub use vector_store::MinimalVectorDB;pub use vector_store::Document;pub use vector_store::Similarity;pub use vector_store::MetadataFilter;pub use vector_store::load_all_documents;pub use retriever::Retriever;pub use chunker::TextChunker;pub use chunker::FixedSizeChunker;pub use chunker::ParagraphChunker;pub use chunker::SentenceChunker;pub use errors::RagError;pub use errors::Result;pub use mcp::RagMcpServer;pub use index::DistanceMetric;pub use index::FlatIndex;pub use index::Index;pub use index_hnsw::HnswIndex;pub use index_ivf::IvfflatIndex;pub use ingestion::Source;pub use ingestion::ExtractedDocument;pub use ingestion::PdfSource;pub use ingestion::CodebaseSource;pub use ingestion::WikiSource;pub use graph::GraphStore;pub use graph::GraphNode;pub use graph::GraphEdge;pub use graph::GraphPath;pub use graph::Community;pub use graph::GraphPersisted;pub use graph_rag::EntityExtractor;pub use graph_rag::ExtractedEntity;pub use graph_rag::GraphInfo;pub use graph_rag::GraphRagEngine;pub use graph_rag::GraphRagResult;pub use graph_rag::GraphRagSnapshot;pub use graph_rag::SeedEntityExtractor;pub use graph_rag::SimpleEntityExtractor;pub use graph_rag::EntityInfo;pub use keyword::tokenize;pub use keyword::Bm25Index;pub use keyword::Bm25Config;pub use keyword::FieldBm25Index;pub use hybrid::merge_hybrid;pub use hybrid::rrf_fusion;pub use dedup::content_jaccard;pub use dedup::dedup_similarities;pub use rerank::SimilarityReranker;pub use rerank::PassthroughReranker;pub use rerank::rerank_similarities;pub use diversify::diversify;pub use aggregation::count_by;pub use aggregation::group_by;pub use aggregation::sum_by;pub use fuzzy::levenshtein;pub use fuzzy::is_fuzzy_match;pub use fuzzy::fuzzy_filter;pub use sparse::SparseVector;pub use sparse::SparseIndex;pub use rerank_external::CohereReranker;pub use rerank_external::VoyageReranker;pub use rerank_external::MixedBreadReranker;pub use query_rewriting::QueryRewriter;pub use contextual::ContextualRetrieval;
Modules§
- aggregation
- chunker
- contextual
- Contextual retrieval: rewrite chunks with surrounding document context before embedding.
- dedup
- Near-duplicate suppression using word-set Jaccard similarity on chunk text.
- diversify
- embeddings
- errors
- fuzzy
- Levenshtein edit distance for fuzzy string matching.
- graph
- graph_
rag - hybrid
- Combine vector similarity hits with BM25 keyword scores.
- index
- index_
hnsw - index_
ivf - Inverted-file (IVF) index: cluster vectors by nearest centroid, probe top clusters only.
- ingestion
- keyword
- Okapi BM25-style lexical scoring over in-memory documents.
- mcp
- query_
rewriting - LLM-based query rewriting and multi-query generation.
- rerank
- Optional re-ranking hook for similarity lists (default: identity).
- rerank_
external - External reranker implementations via HTTP APIs.
- retriever
- sparse
- Sparse vector representation and search (SPLADE-style lexical-semantic signals).
- vector_
store