{"data":{"slug":"minhbtrc-langchain-chatbot","name":"langchain-chatbot","tagline":"Implementation of a chatbot using LLM chat model API and Langchain","github_url":"https://github.com/minhbtrc/langchain-chatbot","owner":"minhbtrc","repo":"langchain-chatbot","owner_avatar_url":"https://avatars.githubusercontent.com/u/58823673?v=4","primary_language":"Python","stars":62,"forks":11,"topics":["chatbot","gpt-4","gradio","langchain","langserve","langsmith","lcel","llm","mongodb","openai","personality-chatbot","presidio","runnable","streaming","streaming-response"],"archived":false,"github_pushed_at":"2025-03-26T08:09:25+00:00","maintenance_label":"Dormant","stars_delta_30d":0,"url":"https://www.graphcanon.com/tools/minhbtrc-langchain-chatbot","markdown_url":"https://www.graphcanon.com/tools/minhbtrc-langchain-chatbot.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/minhbtrc-langchain-chatbot","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=minhbtrc-langchain-chatbot","description":"This code is an implementation of a chatbot using LLM chat model API and Langchain.","homepage_url":null,"license":"MIT","open_issues":0,"watchers":6,"ai_summary":"A chatbot project with support for GPT-4 that uses Langchain framework and incorporates features such as personality customization and data anonymization.","readme_excerpt":"### Quick Start with Setup Script\n\nThe easiest way to run the entire application is using our setup script:\n\n1. **Make the script executable**:\n   ```bash\n   chmod +x setup.sh\n   ```\n\n2. **Run the setup script**:\n   ```bash\n   ./setup.sh\n   ```\n\n3. **Follow the prompts**:\n   - The script will create necessary .env files if they don't exist\n   - Choose between Docker Compose deployment or local development\n   - The script will guide you through the rest of the setup process\n\nFor Windows users, use `setup.bat` instead.\n\n---\n\n### Quick Start with Docker Compose Manually\n\nIf you prefer to run the commands manually:\n\n1. **Set up environment variables**:\n   ```bash\n   # For backend\n   cp backend/.env.example backend/.env\n   # Edit the .env file to add your OpenAI API key\n   \n   # For frontend\n   cp frontend/.env.example frontend/.env\n   ```\n\n2. **Start the application**:\n   ```bash\n   docker-compose up -d\n   ```\n\n3. **Access the application**:\n   - Frontend: http://localhost:3000\n   - Backend API: http://localhost:8080\n   - API documentation: http://localhost:8080/docs\n\n4. **Stop the application**:\n   ```bash\n   docker-compose down\n   ```\n\n---\n\n### Running Locally (without Docker)\n\n0. Download the models for the languages to use in anonymizer. PII support.\n    1. `python -m spacy download en_core_web_md`\n1. RUN backend\n    1. Clone repo: `git clone https://github.com/btrcm00/chatbot-with-langchain.git`\n    2. Add google-cloud-platform credential file to `secure/vertexai.json` or set up OpenAI API key\n    3. `cd backend`\n    4. Install required packages: `pip install -r requirements.txt`\n    5. Create MongoDB database and config environment variables to connect Mongo\n    6. Run: `python -m uvicorn backend.main:app --reload --host 0.0.0.0 --port 8080`\n2. RUN frontend\n    1. `cd frontend`\n    2. Install packages: `npm install`\n    3. Start frontend: `npm run dev`","github_created_at":"2023-10-02T09:31:33+00:00","created_at":"2026-07-11T10:52:04.917888+00:00","updated_at":"2026-09-20T05:29:52.244002+00:00","categories":[{"slug":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"}],"tags":[{"slug":"chatbot","name":"chatbot"},{"slug":"gpt-4","name":"gpt-4"},{"slug":"langchain","name":"langchain"},{"slug":"mongodb","name":"mongodb"},{"slug":"openai","name":"openai"},{"slug":"personality-chatbot","name":"personality-chatbot"},{"slug":"presidio","name":"presidio"},{"slug":"streaming","name":"streaming"}],"trust":{"provenance":{"is_fork":false,"github_id":699264770,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-09-20T05:29:49.772Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":542,"last_release_at":null,"stars_delta_30d":0,"open_issues_delta_30d":0},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:52:06.280Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-09-20T05:29:50.803Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-09-20T05:29:50.803Z","managed_saas":false},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-09-20T05:29:50.803Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-09-20T05:29:50.803Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-09-20T05:29:50.803Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["- When you need a chatbot solution that integrates with the GPT-4 model for more advanced AI interactions","- If your project requires customizing personalities in the chatbot, offering a tailored user experience","- When data privacy is crucial as it offers data anonymization capabilities using technologies like Presidio"],"when_not_to_use":["- In scenarios where you prefer not to use or cannot utilize OpenAI APIs due to regional restrictions or preferences for open-source alternatives","- For projects that do not require real-time streaming responses, since Langchain-chatbot provides this feature which might not be necessary in some applications"],"source":"enrich:decision_facts","observed_at":"2026-07-14T20:00:00.678Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"Langchain-chatbot is notable for its integration with GPT-4 and Langchain framework to offer features such as personality customization and data anonymization."}]}}