langchainrust 0.7.0

A LangChain-inspired framework for building LLM applications in Rust. Supports OpenAI, Agents, Tools, Memory, Chains, RAG, BM25, Hybrid Retrieval, LangGraph, HyDE, Reranking, MultiQuery, and native Function Calling.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// src/vector_stores/document_store/mod.rs
//! 文档存储模块
//!
//! 单独存储文档内容,供 BM25 和向量检索共用。
//! 支持原始文档和分割后的 chunk 文档。

pub mod chunked;
pub mod store;
pub mod types;

#[cfg(test)]
mod tests;

pub use chunked::ChunkedDocumentStore;
pub use chunked::InMemoryChunkedDocumentStore;
pub use store::InMemoryDocumentStore;
pub use types::{ChunkDocument, ChunkedDocumentStoreTrait, DocumentStore};