AS AgentScopeAPI 手册 / API Reference
包package agentscope.rag

agentscope.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.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.