← All work

PROJECT OVERVIEW

AI-RAG Chatbot

A document-grounded Discord assistant with a Flask backend, retrieval pipeline, and containerized services.

  • Python
  • LangChain
  • RAG
  • AI
  • Chatbot

The problem

Give a Discord bot access to stored documents when it answers questions.

My contribution

I built a Discord chatbot with a Flask backend. It uses LangChain and FAISS for retrieval, with document records stored in PostgreSQL.

Engineering focus

  • Discord commands call the backend API.
  • Retrieval lives in a separate service from the bot commands.
  • The backend and database run with Docker Compose.

What the example establishes

The backend separates document lookup from answer generation. That gives two things to evaluate: whether retrieval found useful passages, and whether the answer stayed faithful to them. A response with source text attached does not, by itself, establish either.

The public excerpt shows routing and initialization. It demonstrates how the parts are connected; it is not an answer-quality benchmark.

What I’d test next

  • Build a small, versioned question set with expected supporting passages, including questions the corpus cannot answer.
  • Evaluate retrieval and answers separately, then test empty-corpus behavior, unavailable services, and concurrent requests.

Explore the work

The repository has the bot commands, Flask routes, retrieval code, database models, and deployment files.

View repository — opens in a new tab

A personal project combining document retrieval with a Discord interface.