SAGE RAG Framework - Document loaders, chunkers, retrievers for RAG pipelines
Project description
SAGE RAG
RAG (Retrieval-Augmented Generation) 组件库,提供文档加载、文本分块、检索和重排序功能。
📦 安装
pip install isage-rag
🚀 快速开始
# 直接导入使用
from sage_rag import TextLoader, SentenceChunker
loader = TextLoader()
documents = loader.load("document.txt")
chunker = SentenceChunker()
chunks = chunker.chunk(documents)
📚 组件
- Loaders: TextLoader, MarkdownLoader
- Chunkers: SentenceChunker, TokenChunker
- Retrievers: DenseRetriever
- Rerankers: CrossEncoderReranker
- Pipelines: SimpleRAGPipeline
详细文档请查看 docs/ 目录。
🔌 与 SAGE 集成
本包可以自动注册到 SAGE 框架:
import sage_rag # 自动注册
from sage.libs.rag import create_loader
loader = create_loader("text")
📄 许可证
MIT License - 详见 LICENSE
📧 联系
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
isage_rag-0.1.0.7.tar.gz
(11.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isage_rag-0.1.0.7.tar.gz.
File metadata
- Download URL: isage_rag-0.1.0.7.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01299de9efbff8cf64d16ad87cfa818b12c38b4f0df04ce1f710f6d756a2c4fc
|
|
| MD5 |
b7c3c2f4942b89ed319c040543a47ba8
|
|
| BLAKE2b-256 |
0de686392ff9d286f5a6cc542f0d7631ed1de11a968110cce2e9fccf0280b28c
|
File details
Details for the file isage_rag-0.1.0.7-py2.py3-none-any.whl.
File metadata
- Download URL: isage_rag-0.1.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d19ca8dfb00d19e239f7d9a32d09fb259265fa6d5bb7e67f3fc684d02add3001
|
|
| MD5 |
4f96887336f7bf517671f5dcc7ae441b
|
|
| BLAKE2b-256 |
b67856841e03c6045d0701f445dd1eb97c38f95fead649d012106869d58445f8
|