
This project implements a Retrieval-Augmented Generation (RAG) AI assistant that enables intelligent question-answering over custom text documents.
The system indexes documents in a vector database and retrieves relevant context to generate accurate, context-aware responses using Large Language Models (LLMs).
The goal of this project is to provide a fast, scalable, and modular AI assistant suitable for knowledge bases, research documents, and enterprise documentation workflows.
The assistant is built using LangChain for orchestration, ChromaDB for vector storage, and Groq for high-speed LLM inference.
The documents are automatically loaded, parsed, and prepared as text documents.
For efficiency, Uses embedding-based similarity search to retrieve the most relevant document segments.
Generates context-aware responses by combining retrieved document context with an LLM.
ChromaDB ensures fast vector similarity search and scalable storage.
Python 3.8 or higher
pip package manager

Create a virtual environment (recommended)
Install dependencies:

Configure API keys:
Create a .env file at the project root:

Run the assistant:

Here's how the RAG system works:

The system follows these steps:
This architecture ensures accurate responses grounded in your documents.
Simply place your .txt files in the data/ folder:

The system will automatically index them.


Model Selection
You can change the LLM model directly in app.py to experiment with different Groq-supported models.
Document Loading – Load text files
Text Splitting – Chunk documents into manageable segments
Embedding – Convert text into vector embeddings
Vector Storage – Store embeddings in ChromaDB
User Query – Accept natural language questions
Retrieval – Fetch relevant document chunks
Generation – Produce grounded responses using LLM
📧 Contact
Project Link: https://github.com/mohamadlamg/Ready-tensor-RAG-assistant
#Python #RAG #RetrievalAugmentedGeneration #LangChain #ChromaDB #Groq #LLM #AI #VectorDatabase #SemanticSearch #MachineLearning #NLP #OpenSource #Chatbot