simonclausen / bricky

Haystack/OpenAI based chatbot curating a custom knowledgebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Meet Bricky - a conversational bot using OpenAI 🤖

Remember clippy? Meet bricky!

Bricky is a conversational bot using Retrieval-Augmented Generation with some help from OpenAI's GPT-3 LLM.

Bricky indexes content stored in markdown files and vectorizes it using OpenAI embeddings. It then uses few-shot learning using a ChatGPT prompt to generate an answer based on relevant content.

Read more about my journey into this field and the background for creating Bricky in my blog article

The project is inspired by the awesome HoustonAI by Astro

screenshot.png

Getting started 🚀

Prereqs

Provide these env variables for the api container:

OPENAI_KEY=<YOUR OPENAI KEY GOES HERE>
DOC_DIR=<YOUR ROOT DOC DIRECTORY GOES HERE>
INDEX_NAME=<NAME OF YOUR INDEX FOR THE DOC STORE>

Easiest way is to create a dotenv file in /api/.env

Steps

  1. Clone this repo!
  2. Make sure the document directory is configured correctly
  3. Run docker-compose: docker-compose up

You should now have two endpoints running:

Learn more

To learn more about Haystack and OpenAI, take a look at the following resources:

To learn more about Next.js, take a look at the following resources:

Powered by haystack and OpenAI ChatGPT

  • Frontend implementation can be found here.
  • Backend implementation can be found here.

Questions or comments? Reach out to @larsbaunwall

Don't forget to ⭐ this repo!

About

Haystack/OpenAI based chatbot curating a custom knowledgebase

License:MIT License


Languages

Language:Python 51.7%Language:JavaScript 27.1%Language:CSS 15.9%Language:Dockerfile 5.3%