Skip to content

RAG (Retrieval-Augmented Generation ) - powered Matrix bot with LangChain, OpenAI API, Qdrant, Redis, and FastAPI — fully deployable via Docker Compose.

License

Notifications You must be signed in to change notification settings

RaghavaAlajangi/rag-matrix-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 RAG Matrix Bot

LangChain Qdrant Redis Built with matrix-nio License

⚡ A modular Retrieval-Augmented Generation (RAG) stack with FastAPI backend, Matrix bot integration, and data ingestion pipeline using Qdrant.

⭐ If you like this project, don’t forget to star the repo!


rag_pipeline_2

📌 Features

  • 📂 Data Ingestion → Upload & index documents into Qdrant
  • 🤖 Matrix Bot → Chat with the RAG system inside Matrix rooms
  • 🚀 FastAPI Backend → Serve embeddings, retrieval & generation endpoints
  • 🔑 Session Management → Powered by Redis
  • 🐳 Containerized with Docker Compose
  • 📝 Built with LangChain, OpenAI, Docling, Qdrant

📂 Project Structure

├── rag_backend/ # FastAPI app (RAG endpoint) │ ├── requirements.txt │ ├── Dockerfile │ └── tests/ │ ├── matrixbot/ # Matrix Nio bot for chat interface and Redis session │ ├── requirements.txt │ ├── Dockerfile │ └── tests/ │ ├── data_ingest/ # Ingest & index data into Qdrant │ ├── requirements.txt │ └── tests/ │ ├── docker-compose.yaml └── README.md 

⚙️ Setup & Run

1️⃣ Clone repo

git clone https://github.com/yourname/rag-project.git cd rag-project 

2️⃣ Environment variables

3️⃣ Run with Docker Compose

docker-compose up --build 

4️⃣ Access services

🧪 Testing

🚀 Roadmap

  • Support multiple LLM providers (Anthropic, DeepSeek, etc.)

  • Add PDF/Docx ingestion pipelines

  • Extend Matrix bot with custom commands

🤝 Contributing

PRs are welcome! Please follow conventional commits.

About

RAG (Retrieval-Augmented Generation ) - powered Matrix bot with LangChain, OpenAI API, Qdrant, Redis, and FastAPI — fully deployable via Docker Compose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published