Giter VIP home page Giter VIP logo

chat-langchain's Introduction

ChatLangChain

This repo is an implementation of a chatbot specifically focused on question answering over the LangChain documentation.

๐Ÿš€ Important Links

Website: chat.langchain.dev

Hugging Face Spage: huggingface.co/spaces/hwchase17/chat-langchain

Blog Post: blog.langchain.dev/langchain-chat/

๐Ÿ“š Technical description

There are two components: ingestion and question-answering.

Ingestion has the following steps:

  1. Pull html from documentation site
  2. Parse html with BeautifulSoup
  3. Split documents with LangChain's TextSplitter
  4. Create a vectorstore of embeddings, using LangChain's vectorstore wrapper (with OpenAI's embeddings and Weaviate's vectorstore)

Question-Answering has the following steps:

  1. Given the chat history and new user input, determine what a standalone question would be (using GPT-3)
  2. Given that standalone question, look up relevant documents from the vectorstore
  3. Pass the standalone question and relevant documents to GPT-3 to generate a final answer

๐Ÿง  How to Extend to your documentation

Coming soon.

chat-langchain's People

Contributors

hwchase17 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.