ColRAG
ColRAG is a powerful RAG (Retrieval-Augmented Generation) pipeline using ColBERT via RAGatouille. It provides an efficient and effective way to implement retrieval-augmented generation in your projects.
🌟 Features
- 📚 Efficient document indexing
- 🚀 Fast and accurate retrieval with reranking as an optional parameter
- 🔗 Seamless integration with ColBERT and RAGatouille
- 📄 Support for multiple file formats (PDF, CSV, XLSX, DOCX, HTML, JSON, JSONL, TXT)
- ⚙️ Customizable retrieval parameters
🛠️ Installation
You can install ColRAG using pip:
pip install colrag --upgrade
You can also install ColRAG using poetry (recommended):
Using Poetry
If you're using Poetry to manage your project dependencies, you can add ColRAG to your project with:
poetry add colrag
Or if you want to add it to your pyproject.toml manually, you can add the following line under [tool.poetry.dependencies]:
colrag = "^0.1.0" # Replace with the latest version
Then run:
poetry install
🚀 Quick Start
Here's a simple example to get you started:
from colrag import index_documents, retrieve_and_rerank_documents
# Index your documents
index_path = index_documents("/path/to/your/documents", "my_index")
# Retrieve documents
query = "What is the capital of France?"
results = retrieve_and_rerank_documents(index_path, query)
for result in results:
print(f"Score: {result['score']}, Content: {result['content'][:100]}...")
📖 Documentation
For more detailed information about ColRAG's features and usage, please refer to our documentation.
🤝 Contributing
We welcome contributions! Please see our Contributing Guide for more details.
📄 License
ColRAG is released under the MIT License. See the LICENSE file for more details.
📚 Citation
If you use ColRAG in your research, please cite it as follows:
@software{colrag,
author = {Syed Asad},
title = {ColRAG: A RAG pipeline using ColBERT via RAGatouille},
year = {2024},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/syedzaidi-kiwi/ColRAG.git}}
}
📬 Contact
For any questions or feedback, please open an issue on our GitHub repository.
🙏 Acknowledgements
- ColBERT for the underlying retrieval model
- RAGatouille for the RAG implementation
Metadata
Release files for colrag 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| colrag-0.2.1.tar.gz | 9.9 kB | Without provenance | Details for colrag-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| colrag-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for colrag-0.2.1-py3-none-any.whl |
Total release size: 20.5 kB
Release files / colrag-0.2.1.tar.gz
| Download URL | colrag-0.2.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd1353362342029a5e4efd45a84a89538cc26c6449d7483fbb621486265ae5c4
|
|
BLAKE2b-256 checksum How to use checksums |
5a8d06363fabf91fe6bef58be61c991aad72b51162f6b0531f7af7270ed0bd9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1023-azure
|
Release files / colrag-0.2.1-py3-none-any.whl
| Download URL | colrag-0.2.1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c11b1cf9f1e02f23b6d3d7b40209b42638826aea986e26aa1051fd617df45dc2
|
|
BLAKE2b-256 checksum How to use checksums |
15022f238eb6f3b0a4536bc767f9c17810d1da6044347fba520828cfdc5aebf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1023-azure
|
Security for colrag 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.