This is a hybrid RAG application designed to enhance text generation by integrating powerful retrieval mechanisms. By combining Microsoft's GraphRAG and traditional RAG techniques, we acheive state-of-the-art results. We also provide a webUI based on ChainLit for seamless integration, extensibility, and ease of deployment.


If you have not installed Docker on your local machine (Windows, Mac, or Linux), see Install Docker Engine.
If you do not have Conda installed, then follow the steps here, to install miniconda on your machine
$ conda create python==3.11 -n chainlit_rag
$ conda activate chainlit_rag
$ git clone https://github.com/agi-dude/chainlit-rag
$ cd chainlit-rag
$ pip install -r requirements.txt
settings.yaml file located in the main directory, and then change these lines:llm:
api_key: ${GRAPHRAG_API_KEY} # Change to your openai api key if you are using openAI models
type: openai_chat # or azure_openai_chat
model: dolphin-mistral:latest # Change to your model
...
api_base: http://localhost:11434/v1 # By default, it's configured to use Ollama. You can change it to `https://api.openai.com/v1` if you want to use openai models
...
embeddings:
...
llm:
api_key: ${GRAPHRAG_API_KEY} # Change to your openai api key if you are using openAI models
type: openai_embedding # or azure_openai_embedding
model: mxbai-embed-large:latest # Change to your model
api_base: http://192.168.10.102:11434/v1 # By default, it's configured to use Ollama. You can change it to `https://api.openai.com/v1` if you want to use openai models
input/pdfs in the root folder of this project and place your pdf files into it.loader.py$ python loader.py -c -n # This might take some time (~1 hour or more for large datasets), because it has to index everything, so be patient!
app.py$ python app.py
input/pdf. After that, run loader.py without -n:$ python loader.py -c
Feel free to fork the project, make some updates, and submit pull requests. Any contributions are welcomed!
28 commits
1 commits
Python
100.0%
This is a hybrid RAG application designed to enhance text generation by integrating powerful retrieval mechanisms. By combining Microsoft's GraphRAG and traditional RAG techniques, we acheive state-of-the-art results. We also provide a webUI based on ChainLit for seamless integration, extensibility, and ease of deployment.


If you have not installed Docker on your local machine (Windows, Mac, or Linux), see Install Docker Engine.
If you do not have Conda installed, then follow the steps here, to install miniconda on your machine
$ conda create python==3.11 -n chainlit_rag
$ conda activate chainlit_rag
$ git clone https://github.com/agi-dude/chainlit-rag
$ cd chainlit-rag
$ pip install -r requirements.txt
settings.yaml file located in the main directory, and then change these lines:llm:
api_key: ${GRAPHRAG_API_KEY} # Change to your openai api key if you are using openAI models
type: openai_chat # or azure_openai_chat
model: dolphin-mistral:latest # Change to your model
...
api_base: http://localhost:11434/v1 # By default, it's configured to use Ollama. You can change it to `https://api.openai.com/v1` if you want to use openai models
...
embeddings:
...
llm:
api_key: ${GRAPHRAG_API_KEY} # Change to your openai api key if you are using openAI models
type: openai_embedding # or azure_openai_embedding
model: mxbai-embed-large:latest # Change to your model
api_base: http://192.168.10.102:11434/v1 # By default, it's configured to use Ollama. You can change it to `https://api.openai.com/v1` if you want to use openai models
input/pdfs in the root folder of this project and place your pdf files into it.loader.py$ python loader.py -c -n # This might take some time (~1 hour or more for large datasets), because it has to index everything, so be patient!
app.py$ python app.py
input/pdf. After that, run loader.py without -n:$ python loader.py -c
Feel free to fork the project, make some updates, and submit pull requests. Any contributions are welcomed!
28 commits
1 commits
Python
100.0%