{"id":20696674,"url":"https://github.com/engichang1467/rag-chatbot-langchain","last_synced_at":"2026-05-07T10:32:37.996Z","repository":{"id":228943629,"uuid":"775317107","full_name":"engichang1467/RAG-chatbot-langchain","owner":"engichang1467","description":"Retrieval Augmented Generation Chatbot with Langchain 🦜🔗 and HuggingFace 🤗","archived":false,"fork":false,"pushed_at":"2024-03-21T07:20:45.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-10T04:57:32.550Z","etag":null,"topics":["chatbot","huggingface","langchain","rag"],"latest_commit_sha":null,"homepage":"https://huggingface.co/spaces/mca183/retrieval-augmented-generation-langchain","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/engichang1467.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-21T06:49:25.000Z","updated_at":"2025-07-18T23:37:25.000Z","dependencies_parsed_at":"2024-03-21T09:32:03.402Z","dependency_job_id":"1f0727e6-b986-44e0-aca4-8ca36e75e60b","html_url":"https://github.com/engichang1467/RAG-chatbot-langchain","commit_stats":null,"previous_names":["engichang1467/rag-chatbot-langchain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/engichang1467/RAG-chatbot-langchain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engichang1467%2FRAG-chatbot-langchain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engichang1467%2FRAG-chatbot-langchain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engichang1467%2FRAG-chatbot-langchain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engichang1467%2FRAG-chatbot-langchain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engichang1467","download_url":"https://codeload.github.com/engichang1467/RAG-chatbot-langchain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engichang1467%2FRAG-chatbot-langchain/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32733438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","huggingface","langchain","rag"],"created_at":"2024-11-17T00:14:50.192Z","updated_at":"2026-05-07T10:32:37.979Z","avatar_url":"https://github.com/engichang1467.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAG Chatbot with Langchain and HugginFace 🦜🔗🤗\n\nRetrieval Augmented Generation Chatbot using Langchain 🦜🔗 and HuggingFace 🤗\n\n## Overview\n\nThe concept of Retrieval Augmented Generation (RAG) involves leveraging pre-trained Large Language Models (LLM) alongside custom data to produce responses. This approach merges the capabilities of pre-trained dense retrieval and sequence-to-sequence models. In practice, RAG models first retrieve relevant documents, then feed them into a sequence-to-sequence model, and finally aggregate the results to generate outputs. By integrating these components, RAG enhances the generation process by incorporating both the comprehensive knowledge of pre-trained models and the specific context provided by custom data.\n\n## Getting Started\n\n### Environment Setup\n\nTo get started, create a virtual environment and activate it:\n\n```bash\nvirtualenv venv\nsource venv/bin/activate\n```\n\nCreate a local environment file (`.env`) and add your huggingface API key:\n\n```bash\nHF_TOKEN=your_huggingface_api_key\n```\n\n### Install Dependencies\n\nNext, install the required dependencies using pip:\n\n```bash\npip install -r requirements.txt\n```\n\n### Run the Application\n\nNow, you can run the application:\n\n```bash\ngradio app.py\n```\n\nThis will start the application, allowing you to chat with the RAG model.\n\n## Usage\n\nOnce the application is up and running, you can interact with the chatbot through a web interface.\n\n## Additional Resources\n\n- Check out the chatbot on [![Hugging Face Spaces](https://img.shields.io/badge/🤗%20Hugging%20Face-Spaces-blue)](https://huggingface.co/spaces/mca183/retrieval-augmented-generation-langchain)\n- Explore more about the databricks-dolly-15k dataset [here](https://huggingface.co/datasets/databricks/databricks-dolly-15k)\n- Explore more about the Dynamic-TinyBERT model [here](https://huggingface.co/Intel/dynamic_tinybert)\n- Explore more about the sentence-transformers (`all-MiniLM-L6-v2`) model [here](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengichang1467%2Frag-chatbot-langchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengichang1467%2Frag-chatbot-langchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengichang1467%2Frag-chatbot-langchain/lists"}