包package
agentscope.ragagentscope.rag
module agentscope.rag
agentscope.rag 属于RAG 与知识库,切分、向量化、存储与检索。 该包共收录 20 个公开类型。
The retrieval-augmented generation (RAG) module in AgentScope.
源码Source
agentscope/rag/__init__.py:1类Classes
ApproxTokenChunker类class | Approx 令牌切分器,把私有文档转化为可检索的知识。 A chunker based on an approximate token counting strategy. |
Chunk类class | 分块,把私有文档转化为可检索的知识。 A final indexable chunk produced by a :class:`ChunkerBase`. |
ChunkerBase类class | 切分器基类,把私有文档转化为可检索的知识。 Abstract base class for chunkers. |
DocumentSummary类class | 文档摘要,把私有文档转化为可检索的知识。 A lightweight description of one source document inside a collection. |
ElasticsearchStore类class | Elasticsearch 存储,负责持久化与读取数据。 Vector store backed by Elasticsearch dense-vector indexes. |
ExcelParser类class | Excel 解析器,把私有文档转化为可检索的知识。 Parser for Excel ``.xlsx`` / ``.xls`` files. |
ImageParser类class | 用于图像文件的解析器。 Parser for image files. |
KnowledgeBase类class | 文档知识库 Runtime handle for one knowledge base. |
MilvusLiteStore类class | Milvus Lite 存储,负责持久化与读取数据。 Vector store backend backed by Milvus Lite. |
MongoDBStore类class | MongoDB 存储,负责持久化与读取数据。 Vector store backend backed by `MongoDB Vector Search <https://www.mongodb.com/docs/atlas/atlas-vector-search/vector-search-overview/>`_. |
PDFParser类class | 用于PDF 文件的解析器。 Parser for PDF files. |
PPTParser类class | 用于PowerPoint`.pptx`文件的解析器。 Parser for PowerPoint ``.pptx`` files. |
ParserBase类class | 解析器基类,把私有文档转化为可检索的知识。 Abstract base class for file-format parsers. |
QdrantStore类class | Qdrant 存储,负责持久化与读取数据。 Vector store backend backed by `Qdrant <https://qdrant.tech>`_. |
Section类class | Section,把私有文档转化为可检索的知识。 A single natural section produced by a :class:`ParserBase`. |
TextParser类class | 文本解析器,把私有文档转化为可检索的知识。 Parser for plain-text file formats. |
VectorRecord类class | 向量记录,把私有文档转化为可检索的知识。 A single record to insert into a vector store collection. |
VectorSearchResult类class | 向量搜索结果,把私有文档转化为可检索的知识。 A single result returned by a similarity search. |
VectorStoreBase类class | 向量存储基类,把私有文档转化为可检索的知识。 Abstract base class for vector store backends. |
WordParser类class | Word 解析器,把私有文档转化为可检索的知识。 Parser for Word ``.docx`` files. |