{"data":{"slug":"minhbtrc-langchain-chatbot","name":"langchain-chatbot","tagline":"This code is an 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":63,"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","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":null,"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-07-11T10:52:08.007012+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":"gradio","name":"gradio"},{"slug":"langchain","name":"langchain"},{"slug":"langserve","name":"langserve"},{"slug":"langsmith","name":"langsmith"},{"slug":"lcel","name":"lcel"},{"slug":"llm","name":"llm"}],"trust":{"provenance":{"is_fork":false,"github_id":699264770,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T10:52:05.520Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":472,"last_release_at":null},"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-07-11T10:52:05.925Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-07-11T10:52:05.925Z","managed_saas":false},"languages":{"value":["python"],"source":"github.language","observed_at":"2026-07-11T10:52:05.925Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-07-11T10:52:05.925Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-07-11T10:52:05.925Z"}}}}