Skip to content
Back to work

Conversational RAG / LLMOps

MultiDocChat

A conversation that remembers the question, retrieves the context and survives the deployment pipeline.

Technology

Python / FastAPI / LangChain / FAISS / Groq / Gemini / LangSmith / Docker / AWS ECS Fargate / GitHub Actions

Project linkView repository

Conversation history contextualizes the question

  1. Upload
  2. Chunk
  3. Index
  4. Retrieve
  5. Answer

Session-scoped FAISS indexes + chat history

System architecture based on the public implementation.

The problem

Follow-up questions depend on conversation history, and a useful document assistant needs diverse context, isolated session indexes and a repeatable path from code to deployment.

The implementation

The LCEL chain contextualizes follow-up questions, retrieves from a session-specific FAISS index and generates a response. The default MMR retriever balances relevance and diversity; CI runs tests and the deployment workflow builds an image for ECR and ECS Fargate.

What it delivers

A session-aware document-chat application with a modular ingestion/retrieval pipeline, evaluation runner, unit/integration tests and automated container deployment configuration.

Decisions inside the system.

Retrieve context without repeating it.

The default MMR configuration retrieves five chunks from a candidate pool of twenty, balancing relevance and diversity with lambda_mult set to 0.5.

Rewrite the follow-up before retrieval.

The pipeline uses conversation history to contextualize the latest question before selecting document evidence, so follow-ups can retain their meaning.

Treat delivery as part of the system.

The repository includes upload/chat integration tests, ingestion/retrieval unit tests, Docker configuration and GitHub Actions workflows for ECR and ECS Fargate.

Evaluation & scope

The LangSmith runner compares generated answers with expected answers using a correctness evaluator and optional chain-of-thought QA evaluation. Retrieval unit tests mock the model, while integration tests cover upload and chat routes.

Evaluation and test implementations are public evidence of the engineering approach. No new LangSmith run or production benchmark was performed for this portfolio.

Inspect the evidence

Full project overview

A multi-document conversational RAG application for PDF, DOCX and TXT files. FastAPI provides upload/chat endpoints; LangChain builds a history-aware pipeline over session-scoped FAISS indexes. HuggingFace embeddings, MMR retrieval, Groq/Gemini generation, LangSmith evaluation, Pytest and Docker/AWS deployment workflows are included.

Next project

TripMate AI

Multi-agent applications