chatjc
RAG-Powered Conversational Chatbot
MCP server and REST API that answers questions about the developer's professional background using retrieval-augmented generation. The pipeline loads markdown context documents, splits them into chunks, embeds them with Mistral AI, and stores them in a custom in-memory vector store. At query time, cosine similarity retrieval selects the most relevant chunks, which are injected into a Mistral AI chat prompt via an LCEL chain built with LangChain.
- LLM
- Mistral AI (chat completions + text embeddings)
- Frameworks
- LangChain (@langchain/core, @langchain/mistralai, @langchain/textsplitters)
- Patterns
- Full RAG pipeline (load → split → embed → store → retrieve → generate), LCEL chain composition, RecursiveCharacterTextSplitter, custom in-memory vector store with cosine similarity, session-based conversation history, prompt injection detection, response length truncation
- Language
- TypeScript (ESM)
Demonstrates end-to-end RAG pipeline construction, LangChain LCEL orchestration, embedding-based semantic retrieval, and production-ready LLM API integration with security guardrails and comprehensive test coverage.