{"repo":"minhbtrc/langchain-chatbot","free":true,"listed":false,"github":"https://github.com/minhbtrc/langchain-chatbot","clone":"git clone https://github.com/minhbtrc/langchain-chatbot.git","description":"This code is an implementation of a chatbot using LLM chat model API and Langchain.","language":"Python","stars":62,"topics":["langchain","llm","gradio","langsmith","mongodb","personality-chatbot","streaming","presidio","runnable","streaming-response"],"license":"MIT","category":"ai-agents","readme_excerpt":"Chatbot with Langchain, LangSmith. Requirement - Python version = 3.9. Because langchainhub package requires it - Docker and Docker Compose (for containerized deployment) Description - This is a chatbot implementation with Langchain framework. - Base LLM: Vertex AI or OpenAI API - Memory: MongoDB - UI: - Next.js frontend - FastAPI backend - Prompt versioning and tracing: LangSmith - User can custom bot's personality by setting bot information like gender, age, ... - Demo UI: System Architecture The application follows a modern microservices architecture with containerized components: Data Flow 1. User Interaction : - User sends a message through the Next.js frontend - Frontend forwards the request to the FastAPI backend 2. Message Processing : - Backend optionally anonymizes PII data using Presidio Anonymizer - LangChain framework builds the conversation chain - Request is sent to the selected LLM provider (OpenAI or Vertex AI) - Response is traced using LangSmith for monitoring 3. Conversation Storage : - Conversations are stored in MongoDB for history - Each user session has a unique conversation ID 4. Response Generation : - LLM response is de-anonymized if PII protection is enabled - Backend sends the formatted response back to the frontend - Frontend renders the response to the user Component Structure Backend Architecture Key Backend Components: - API Routes : FastAPI endpoints for chat, health checks, and conversation management - Bot Manager : Core orchestration layer","default_branch":null,"files":null,"tree":[],"storefront":"/r/minhbtrc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/minhbtrc/langchain-chatbot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}