Skip to content

danthelion/chat-dbt

Repository files navigation

chat-dbt

This repo is an implementation of a chatbot specifically focused on question answering over the dbt documentation. It is based on the amazing chat-langchain.

chatbot

🚀 Important Links

Blog Post about the original langchain-chat library: blog.langchain.dev/langchain-chat/

📚 Technical description

There are two components: ingestion and question-answering.

Ingestion has the following steps:

  1. Clone the dbt documentation repository
  2. Split documents with LangChain's TextSplitter
  3. 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

Running locally

  1. Clone the dbt documentation repository
git clone git@github.com:dbt-labs/docs.getdbt.com.git
  1. Add your OPENAI_API_KEY to an .env file
mv .env.example .env
  1. Run the app
docker-compose up
  1. Open the app in your browser

Head over to localhost:9993 to see the app running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published