Skip to main content

SAGE RAG Framework - Document loaders, chunkers, retrievers for RAG pipelines

Project description

SAGE RAG

PyPI version Python 3.10+ License

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.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

isage_rag-0.1.0.1-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

isage_rag-0.1.0.1-py2.py3-none-any.whl (16.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file isage_rag-0.1.0.1.tar.gz.

File metadata

  • Download URL: isage_rag-0.1.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for isage_rag-0.1.0.1.tar.gz
Algorithm Hash digest
SHA256 723ba618272027412f768c679a9e1d03df593b43d63b68ff9b634e40464b5a99
MD5 b06c4ddea08535d8331515f23809d6f4
BLAKE2b-256 5a41e5ee913607ea3e0523e6ed21cea70c8ea1840d3b0ca3e9da737883125726

See more details on using hashes here.

File details

Details for the file isage_rag-0.1.0.1-py3-none-any.whl.

File metadata

  • Download URL: isage_rag-0.1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for isage_rag-0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05fd26c5ef46bebae86b30316f496bb2882dadfb59c1f8f46c3da8f5495be43e
MD5 46c12c93dbf7f1486853bb38b6a4055a
BLAKE2b-256 3b0d9761782124f63b49b5a40cc1057804d0b9d9dde823bbb8a98f7d3674a869

See more details on using hashes here.

File details

Details for the file isage_rag-0.1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: isage_rag-0.1.0.1-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

Hashes for isage_rag-0.1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 960db3252a471b1e2c2c7386b68ed4e24dd3e3ce0fa8c05e769143896f9da52d
MD5 6b379dbd4963dd4842f568feb6f3b132
BLAKE2b-256 eb6d93bd86b67fa1b20fb85015c782b28ff34aec6b85432f88ba8ba0260d5b87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page