GithubHelp home page GithubHelp logo

yingweiy / bricky Goto Github PK

View Code? Open in Web Editor NEW

This project forked from larsbaunwall/bricky

0.0 0.0 0.0 2.15 MB

Haystack/OpenAI based chatbot curating a custom knowledgebase

License: MIT License

JavaScript 27.12% Python 51.72% CSS 15.90% Dockerfile 5.25%

bricky's Introduction

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!

bricky's People

Contributors

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