Giter Club home page Giter Club logo

howdoi.ai's Introduction

HowdoI.ai is a helpful chatbot that can answer questions

This is an experiment in building a large-language-model-backed chatbot. It can hold a conversation, remember previous comments/questions, and answer all types of queries (history, web search, movie data, weather, news, and more).

This app relies on the amazing LangChain Python library, which powers all the interesting AI stuff.

Running locally

First, add your API keys in the .env file.

Install the NPM requirements:

cd vite
npm install (or yarn install)

Then, install the Python requirements and start the app. You'll want a Procfile manager like Foreman or Hivemind installed.

pip install -r requirements.txt
foreman start -f Procfile.local

(Note: foreman isn't required. You can run the commands in the Procfile.local in separate terminal windows if you prefer)

Once it's running, open up http://127.0.0.1:9000/ and you'll be able to start interacting with the bot. There's also a writing assistant endpoint at http://127.0.0.1:9000/write.

Example prompts

Conversation with memory

Q: hi, my name is bob

A: Hi Bob! Nice to meet you! How can I help you today?

Q: what's the last letter of my name?

A: b

Q: show me a cat gif

A: Here is a cat gif: <iframe src="https://giphy.com/embed/ICOgUNjpvO0PC" width="480" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><br /><a href="https://giphy.com/embed/ICOgUNjpvO0PC">powered by GIPHY</a>

Q: actually, can you make it a dolphin?

A: Here is a dolphin gif: <iframe src="https://giphy.com/embed/11ctq1pDmD3cB2" width="480" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><br /><a href="https://giphy.com/embed/11ctq1pDmD3cB2">powered by GIPHY</a>

Movies

Q: what year was Dr. Strangelove released?

A: Dr. Strangelove was released in 1964.

Math

Q: what's the sum of the first six prime numbers?

A: The sum of the first six prime numbers is 41.

Deploying

This repository is set up to deploy on Fly.io. You should be able to follow their docs and get it running there very quickly.

Experiments Folder

This folder has a few attempts at generating/testing LLM examples programmatically. You can probably ignore this unless you're just curious.

howdoi.ai's People

Contributors

bborn avatar mindgitrwx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

howdoi.ai's Issues

Support ChatAPI GPT3.5 and GPT4

Would be great to add support for GPT3.5 and GPT4 via LC’s ChatAPI. Maybe with a pull-down in the settings menu to select the exact model to use.

Incorrect Initial URL Retrieval

When prompted for a particular list of links to be included in HowDoI's current response regarding various companies, the first link was wrong (and also did not exist, although a different domain suffix of the incorrect URL existed somewhere on the internet).

When told that it was incorrect and asked to fix the first link, it provided the correct link.

When asked why it had done the error, the response was that it had "misread" the website, as it had looked for a site that "started with the letter [a] and ended with [letter b].com".

How to run the app without installing foreman.

Hi ,

Sorry for asking this topic question again. I'm new to here.

I just want to run this app and also saw the note mentioned not need to install foreman.

I try run the python app.py in the terminal but got keyerror or is something i get it.
How to run the app after all requirement.txt have been installed .

Thank you ?

Can I run this without installing Foreman (esp. Ruby) on Windows?

I am trying to run your nice repo on Windows 10 without installing Foreman (and, esp. without installing Ruby on Windows which is a real pain).

Can I do this simply by running the ProcFile.local commands in a terminal, either normal Windows prompt or WSL? Like this:

flask --debug run --port 9000
cd vite && yarn autobuild

No such file or directory: 'autobuild'

Hello, great repo!

I'm running the codebase as it is (with the some of the keys added but not all), but when I run foreman start -f Procfile.local

I get the following error:

02:57:39 vite.1 | started with pid 57889
00h00m00s 0/0: : 02:57:39 vite.1 | ERROR: [Errno 2] No such file or directory: 'autobuild'
02:57:40 vite.1 | exited with code 1
02:57:40 system | sending SIGTERM to all processes

Everyfile is untouched by me (except for the keys), should I modify the Procfile or Procfile.local to avoid the "no such file or directory: 'autobuild' error? or how can I fix it?
Thanks

Hey bborn!

Hi bborn,

I saw your project on an AI newsletter "ben's bites". Congrats, really cool stuff.

I believe the work you and the community is doing is so valuable that it should be rewarded and incentivized. That's why I'm exploring ways to enable indie hackers/individual developers to easily monetize their custom ML projects.

As I'm trying to devise a solution that will first and foremost serve the needs of developers like yourself, I'd greatly appreciate your input on the following questions:

  1. What drove you to develop and publish your work?

  2. Have you ever tried to monetize your ML indie projects? Why or why not?

  3. Would you be interested in developing useful ML mini-apps (eg., digital avatar generator) if you could earn money from their usage?

Would you be open to connect for a 10 min chat over Zoom/Meet? I'd love to learn more about your motivation and interest in potentially monetizing/commercializing your current or future work. Feel free to reach me back at [email protected]

Thanks so much,

Roy

Getting error "supabase.client.SupabaseException: supabase_url is required" when running flask directly.

Added in (some) of the API keys.

Then, have several issues when directly running "flask --debug run --port 9000".

First, got the following warning

  • Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
    So, I installed python-dotenv and no longer get that error. You may want to update your requirements.txt file.

Second, now getting following error "supabase.client.SupabaseException: supabase_url is required". Full stack trace:

flask --debug run --port 9000
Traceback (most recent call last):

supabase.client.SupabaseException: supabase_url is required

Get Keyerror from os.environ[NEWS_API_KEY]

Hi ,

I got the error of this keyerror raised towards environment var and double checked my api key was insert correctly in .env file.
news_api_key = os.environ['NEWS_API_KEY']
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\lib\os.py", line 680, in getitem
raise KeyError(key) from None
KeyError: 'NEWS_API_KEY'

any advice for this ?

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.