Giter VIP home page Giter VIP logo

doc_chat's Introduction

DocChat

This app uses the OpenAI api to use the docs from apricot-articles to feed GPT4 to answer questions about how to use Apricot.

Configure your OpenAI API key and org id in .env with the following:

OPENAI_KEY=YOUR_KEY
OPENAI_ORG_ID=YOUR_ORG_ID

The key and org id can be made at https://platform.openai.com/account/api-keys and https://platform.openai.com/account/org-settings respectively.

Configure your postgres password in .env like so:

POSTGRES_PASSWORD=<whatever>

For a local Postgres server, run: docker-compose up -d

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix with iex -S mix phx.server.

To import data:

iex(1)> DocChat.Articles.import("./filtered")

To try searching:

iex(1)> DocChat.Articles.search("Rules Alerts")

To try talking to ChatGPT:

iex(1)> DocChat.Articles.ask("How do I make a Rule?")

To get out of Iex press Ctrl-c twice.

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Learn more

doc_chat's People

Contributors

emilyhu08 avatar rogerroelofs avatar

Watchers

 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.