https://github.com/0xkibh/chatbot
This is a chatbot built in python using the "text-davinci-003" model from Open AI which is the used for text generation. And also has program which as simple query bot using model by CohereAI
https://github.com/0xkibh/chatbot
chatbot cohere generative-model gpt-3 gradio openai python python3 xlarge
Last synced: 3 months ago
JSON representation
This is a chatbot built in python using the "text-davinci-003" model from Open AI which is the used for text generation. And also has program which as simple query bot using model by CohereAI
- Host: GitHub
- URL: https://github.com/0xkibh/chatbot
- Owner: 0xkibh
- Created: 2023-01-14T13:34:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T06:19:22.000Z (over 3 years ago)
- Last Synced: 2026-03-02T20:42:46.926Z (4 months ago)
- Topics: chatbot, cohere, generative-model, gpt-3, gradio, openai, python, python3, xlarge
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Chatbot
This is a chatbot built using the "text-davinci-003" model from Open AI which is the used for text generation.
It is not fine tuned for conversation like ChatGPT but it can be used as Chatbot to some extent.
And Gradio is used in this program for building the simple interface to chat.

## Get Started
- You need to get the API Key from Open AI which they provide for free with some credit to use the API
- Setup your key in file "main.py" and execute it.
### Libraries required
- openai `pip install openai`
- gradio `pip install gradio`
### Use Cases
- Can extend this program to make API and use it in web app or mobile app.
- Can host it as python web app to use via browser too.
- Or can extend this to make telegram or discord bot.
### CohereAI
- Similarly it has another simple bot program which replies for you query with answser.
- It uses "xlarge" model provided by CohereAI which is similar to davinci by OpenAI.
- You can import it using `pip install cohere`, get your apikey and get started
- It is implemented in "chat.py" file of this project folder