{"id":16393878,"url":"https://github.com/avrabyt/rag-chatbot","last_synced_at":"2025-10-26T08:11:37.759Z","repository":{"id":203738942,"uuid":"710299088","full_name":"avrabyt/RAG-Chatbot","owner":"avrabyt","description":"RAG enabled Chatbots using LangChain and Databutton","archived":false,"fork":false,"pushed_at":"2023-11-06T10:48:59.000Z","size":16306,"stargazers_count":144,"open_issues_count":0,"forks_count":55,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T03:51:14.771Z","etag":null,"topics":["chatbot","databutton","langchain","langchain-python","rag","rag-implementation"],"latest_commit_sha":null,"homepage":"","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/avrabyt.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":"2023-10-26T12:22:54.000Z","updated_at":"2025-03-14T11:05:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d6895b1-29f9-4cf2-a7d1-a12004040525","html_url":"https://github.com/avrabyt/RAG-Chatbot","commit_stats":null,"previous_names":["avrabyt/rag-chatbot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avrabyt%2FRAG-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avrabyt%2FRAG-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avrabyt%2FRAG-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avrabyt%2FRAG-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avrabyt","download_url":"https://codeload.github.com/avrabyt/RAG-Chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243896358,"owners_count":20365364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","databutton","langchain","langchain-python","rag","rag-implementation"],"created_at":"2024-10-11T04:54:24.931Z","updated_at":"2025-10-26T08:11:32.729Z","avatar_url":"https://github.com/avrabyt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retrieval Augmented Generation (RAG) for chatbots\nRAG enabled Chatbots using [LangChain](https://www.langchain.com) and [Databutton](https://databutton.com/login?utm_source=github\u0026utm_medium=avra\u0026utm_article=rag)\n![](https://github.com/avrabyt/RAG-Chatbot/blob/main/thumbnail.webp)\n\n- For the front-end : `app.py`\n- PDF parsing and indexing : `brain.py`\n- API keys are maintained over databutton secret management\n- Indexed are stored over session state \n\nOversimplified explanation : (**Retrieval**) Fetch the top N similar contexts via similarity search from the indexed PDF files -\u003e concatanate those to the prompt (**Prompt Augumentation**) -\u003e Pass it to the LLM -\u003e which further generates response (**Generation**) like any LLM does. **More in the blog!**\n\n**Blog Post - [Here](https://medium.com/databutton/why-your-next-ai-product-needs-rag-implemented-in-it-9ee22f9770c8)**\n\n**YouTube video - [Here](https://youtu.be/Yh1GEWqgkt0)**\n\nTo get started quickly, you can use the “Chat with PDF” [template](https://databutton.com/new?templateId=pt-x2Rh7dEYwIuCxXaR) within Databutton 🚀\n\n\u003e Alternatively, you can use [Streamlit](https://streamlit.io) to build and deploy! In that case few changes such as `st.secrets` needs to be implemented!\n\n# Similar projects\n\n#### [Building a Simple Chatbot using ChatGPTAPI \u0026 Databutton with memory 🧠](https://github.com/avrabyt/MemoryBot)\n\n\u003eMemory implementation can also be an interesting feature in this current RAG enabled Chatbot.\n\nRepo - [MemoryBot](https://github.com/avrabyt/MemoryBot)\n\nThe live demo app is hosted over [here](https://next.databutton.com/v/lgzxq112/Memory_Bot)\n\nBlog - [here](https://medium.com/@avra42/how-to-build-a-chatbot-with-chatgpt-api-and-a-conversational-memory-in-python-8d856cda4542) \n\nVideo - [here](https://youtu.be/cHjlperESbg)\n\n#### [PDF Chatbot with Memory](https://github.com/avrabyt/PersonalMemoryBot)\n\u003e Similar to Chat with PDF approach, with enabled memory. \n\nDemo App - [here](https://next.databutton.com/v/lgzxq112/Personalised_Memory_Bot)\n\nVideo - [here](https://youtu.be/daMNGGPJkEE)\n\nBlog - [here](https://medium.com/@avra42/how-to-build-a-personalized-pdf-chat-bot-with-conversational-memory-965280c160f8)\n\n![](https://github.com/avrabyt/RAG-Chatbot/blob/main/compare%20medium.gif)\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favrabyt%2Frag-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favrabyt%2Frag-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favrabyt%2Frag-chatbot/lists"}