Git Product home page Git Product logo

rag-chatbot's Introduction

Retrieval Augmented Generation (RAG) for chatbots

RAG enabled Chatbots using LangChain and Databutton

  • For the front-end : app.py
  • PDF parsing and indexing : brain.py
  • API keys are maintained over databutton secret management
  • Indexed are stored over session state

Oversimplified explanation : (Retrieval) Fetch the top N similar contexts via similarity search from the indexed PDF files -> concatanate those to the prompt (Prompt Augumentation) -> Pass it to the LLM -> which further generates response (Generation) like any LLM does. More in the blog!

Blog Post - Here

YouTube video - Here

To get started quickly, you can use the “Chat with PDF” template within Databutton 🚀

Alternatively, you can use Streamlit to build and deploy! In that case few changes such as st.secrets needs to be implemented!

Similar projects

Memory implementation can also be an interesting feature in this current RAG enabled Chatbot.

Repo - MemoryBot

The live demo app is hosted over here

Blog - here

Video - here

Similar to Chat with PDF approach, with enabled memory.

Demo App - here

Video - here

Blog - here

rag-chatbot's People

Contributors

avrabyt avatar erjanmx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.