Code Monkey home page Code Monkey logo

1nnovat1on / gpt_chatbot Goto Github PK

View Code? Open in Web Editor NEW
52.0 52.0 7.0 2.49 MB

This chatbot lets you use your microphone to communicate with GPT-4. It uses the OpenAI text to speech to respond with a voice. It uses Pinecone to store long term information and retrieves it to create context. API keys for OpenAI and Pinecone required. Tested on Windows

Python 100.00%
api artificial-intelligence bot chatbot chatbot-application elevenlabs gpt-3 gpt-4 gpt-4-api langchain langchain-python llm microphone pinecone speech-recognition text-to-speech tts voice voice-assistant voice-recognition

gpt_chatbot's People

Contributors

1nnovat1on 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

Watchers

 avatar  avatar  avatar  avatar  avatar

gpt_chatbot's Issues

Pinecone Index

You will also need to create an index in Pinecone.

Please provide steps to do this correctly. I've got it running, except it fails. I did setx PINECONEKEY ######, but I get the error,

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "c:\gpt_chatbot\chatbot.py", line 138, in mic
response = queryOpenAITemplate3(text)
File "c:\gpt_chatbot\chatbot.py", line 213, in queryOpenAITemplate3
contexts = retrieve_relevant_metadata(prompt)
File "c:\gpt_chatbot\chatbot.py", line 295, in retrieve_relevant_metadata
res = longTermMemory.query(xq, top_k=NUMBER_OF_RELEVANT_THINGS_TO_RETURN_FROM_PINECONE, include_metadata=True)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pinecone\core\utils\error_handling.py", line 15, in inner_func
Config.validate() # raises exceptions in case of invalid config
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pinecone\config.py", line 56, in validate
raise ApiKeyError("You haven't specified an Api-Key.")
pinecone.core.client.exceptions.ApiKeyError: "You haven't specified an Api-Key."

Which is I'm guessing, because I don't know how to set a Pinecone Index. Help please.

nope

I give up trying to get this to work.

Crashes after x2 requests

Thanks for making this =) but unfortunately, it hangs after two requests and requires to be restarted to use it again. This is my first post on github and I'm pretty nooby at all of this; so I'm not entirely sure what to provide here since there are no error messages.

My system: i7 8700k, 2080, 32GB
Here's a quick video going through the startup process/hangup crash: https://streamable.com/fsykcc

... While I'm at it
[Feature Request]: I would like to be able to reroute the ElevenLabs speaking audio into other cables such as (VB-Audio Cable) instead of having the audio read thru desktop audio. ie. Select Microphone + Select Speakers much like how the SpeechToSpeech plugin handles it: Speech To Speech using ElevenLabs: https://github.com/lugia19/speechToSpeechElevenLabs
Why? - It would be cool to be able to use this as an easy gateway to creating a "Virtual Content Creator" like Neuro-Sama that responds to questions. https://youtu.be/jAWS3K_3jqQ?t=58

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.