https://github.com/whyhow-ai/rule-based-retrieval
The Rule-based Retrieval package is a Python package that enables you to create and manage Retrieval Augmented Generation (RAG) applications with advanced filtering capabilities. It seamlessly integrates with OpenAI for text generation and Pinecone or Milvus for efficient vector database management.
https://github.com/whyhow-ai/rule-based-retrieval
Last synced: 2 months ago
JSON representation
The Rule-based Retrieval package is a Python package that enables you to create and manage Retrieval Augmented Generation (RAG) applications with advanced filtering capabilities. It seamlessly integrates with OpenAI for text generation and Pinecone or Milvus for efficient vector database management.
- Host: GitHub
- URL: https://github.com/whyhow-ai/rule-based-retrieval
- Owner: whyhow-ai
- License: mit
- Created: 2024-03-18T07:51:56.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-04T19:23:39.000Z (5 months ago)
- Last Synced: 2024-11-29T11:34:04.892Z (3 months ago)
- Language: Python
- Homepage:
- Size: 772 KB
- Stars: 224
- Watchers: 6
- Forks: 24
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- StarryDivineSky - whyhow-ai/rule-based-retrieval - based Retrieval是一个Python包,用于创建和管理具有高级过滤功能的检索增强生成(RAG)应用,它集成了OpenAI用于文本生成,并支持Pinecone、Milvus或Qdrant进行高效向量数据库管理,项目提供了安装、文档、示例和贡献指南,并使用MIT许可证。 (A01_文本生成_文本对话 / 大语言对话模型及数据)
- awesome-production-machine-learning - Rule-based Retrieval - ai/rule-based-retrieval.svg?style=social) - Rule-based Retrieval enables users to create and manage RAG applications with advanced filtering capabilities. (Neural Search and Retrieval)
- Awesome-LLM-RAG-Application - Rule-Based-Retrieval
README
# Rule-based Retrieval
[](https://www.python.org/downloads/)
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/rule-based-retrieval/)
[](https://github.com/psf/black)
[](https://mypy-lang.org/)
[](https://discord.gg/PAgGMxfhKd)The Rule-based Retrieval package is a Python package that enables you to create and manage Retrieval Augmented Generation (RAG) applications with advanced filtering capabilities. It seamlessly integrates with OpenAI for text generation and Pinecone for efficient vector database management.
# Installation
### Prerequisites
- Python 3.10 or higher
- OpenAI API key
- Pinecone, Milvus or Qdrant credentials### Install from PyPI
You can install the package directly from PyPI using pip:
```shell
pip install rule-based-retrieval
```### Install from GitHub
Alternatively, you can clone the repo and install the package:
```shell
git clone [email protected]:whyhow-ai/rule-based-retrieval.git
cd rule-based-retrieval
pip install .
```### Developer Install
For a developer installation, use an editable install and include the development dependencies:
```shell
pip install -e .[dev]
```For ZSH:
```shell
pip install -e ".[dev]"
```If you want to install the package directly without explicitly cloning yourself
run```shell
pip install git+ssh://[email protected]/whyhow-ai/rule-based-retrieval
```# Documentation
Documentation can be found [here](https://whyhow-ai.github.io/rule-based-retrieval/).
To serve the docs locally run
```shell
pip install -e .[docs]
mkdocs serve
```For ZSH:
```shell
pip install -e ".[docs]"
mkdocs serve
```Navigate to http://127.0.0.1:8000/ in your browser to view the documentation.
# Examples
Check out the `examples/` directory for sample scripts demonstrating how to use the Rule-based Retrieval package.
# How to
### [Demo](https://www.loom.com/share/089101b455b34701875b9f362ba16b89)
`whyhow_rbr` offers different ways to implement Rule-based Retrieval through two databases and down below are the documentations(tutorial and example) for each implementation:- [Milvus](docs/milvus.md)
- [Pinecone](docs/pinecone.md)
- [Qdrant](docs/qdrant.md)# Contributing
We welcome contributions to improve the Rule-based Retrieval package! If you have any ideas, bug reports, or feature requests, please open an issue on the GitHub repository.
If you'd like to contribute code, please follow these steps:
1. Fork the repository
2. Create a new branch for your feature or bug fix
3. Make your changes and commit them with descriptive messages
4. Push your changes to your forked repository
5. Open a pull request to the main repository### License
This project is licensed under the MIT License.
### Support
WhyHow.AI is building tools to help developers bring more determinism and control to their RAG pipelines using graph structures. If you're thinking about, in the process of, or have already incorporated knowledge graphs in RAG, we’d love to chat at [email protected], or follow our newsletter at [WhyHow.AI](https://www.whyhow.ai/). Join our discussions about rules, determinism and knowledge graphs in RAG on our newly-created [Discord](https://discord.com/invite/9bWqrsxgHr).