A Project-Based RAG AI implementation using DeepSeek R1 and ChromaDB, built with Streamlit for an interactive chatbot UI.
- Retrieval-Augmented Generation (RAG) for context-aware responses.
- DeepSeek R1 as the LLM for generating answers.
- ChromaDB as the vector store for efficient document retrieval.
- Nomic Embed Text for embedding knowledge into a searchable format.
- Streamlit UI for easy interaction with the AI chatbot.
.
├── deepseek-rag-agents-ui.py # Main Streamlit App
├── istqb-ctfl.pdf # Sample knowledge document
└── README.md # Project Documentation
git clone https://github.com/your-username/project-based-rag-ai.git
cd project-based-rag-ai
Make sure you have Python 3.8+ installed.
- Install Python
- Install Ollama
Ensure you have Ollama installed and running:
#Install Ollama
Download DeepSeek R1:
ollama pull deepseek-r1:latest
Download Nomic Embed models:
ollama pull nomic-embed-text:latest
Install required packages:
pip install "praisonaiagents[knowledge]" ollama streamlit
Now Set your OpenAI API key just the requirement for SDK:
export OPENAI_BASE_URL=http://localhost:11434/v1
export OPENAI_API_KEY=fake-key
streamlit run deepseek-rag-agents-ui.py
- Loads Knowledge – Uses
sample.pdf
For Exampleistqb-ctfl.pdf
for retrieval-based answering. - Embeds Data – Utilizes Nomic Embed Text for vectorized search.
- Retrieves Relevant Info – Searches ChromaDB for the most relevant content.
- Generates Responses – Feeds retrieved data into DeepSeek R1 for contextual answers.
- Run the app and open the Streamlit UI.
- Ask a question related to the uploaded document.
- Get AI-generated responses based on retrieved knowledge!
- Will Add support for multiple document uploads.
- Will Improve UI/UX for better user experience.
- Will Deploy as a cloud-hosted RAG AI service.
MIT License - Feel free to use and modify this project.
Pull requests are welcome! If you'd like to improve the project, feel free to fork and submit changes.
For questions, feel free to reach out via LinkedIn or create an issue in this repository.
Happy coding! 🚀