promptxai / chatstart

πŸ’¬ ChatStart - Create, explore, generate code for a Chatbot. Fast!

Home Page:https://www.promptx.ai/chatstart-app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’¬ ChatStart

ChatStart App for getting started with building your own chatbot reusing this code. You can also run this app on your laptop to create, ideate, explore, and download custom code snippets for chatbots you create using the app.

πŸ’¬ ChatStart App www.promptx.ai/chatstart-app/

'ChatStart Video Walkthorugh

How to install and run on your laptop

Clone the repo and follow the steps below to run the app on your laptop.

Step 1: Setup a Python virtual environment following instructions here.

Note: Make sure you are using Python version 3.10.0 for Stable Diffusion to work. You can use pyenv to manage multiple local versions of Python. Here is a pyenv tutorial which might help.

Step 2: Install the dependencies using following command.

pip install -r requirements.txt 

This will install OpenAI, Stable Diffusion, Google API Python Client, Pandas, and Streamlit.

Step 3: Signup for OpenAI and Stable Diffusion API keys.

Store all your API keys as environment variables in your shell script.

export OPENAI_API_KEY="<your key here>"

That's it now you can run your version of ChatStart on your laptop by typing the following command.

streamlit run chat_start.py

Step 4 (optional): In case you are interested in integrating with Google APIs like Custom Search Engine API used by the Shopping Recommender Idea, you will need to signup for Google API credentials. Here is a starting point for integrating Programmable Search Engine via API.

Enjoy, create, and profit! Let us know when you launch :-)

Contributing

We welcome contributions to this project. Please read our contributing guidelines for more information.

One of the easiest way to extend and contribute to this project is to add new ideas to the app. You can add new ideas by adding a TXT file under ideas folder. The TXT file should contain the chatbot conversation flow like the following turn-by-turn format example. Just make sure that you add a unique unicode emoji at the beginning of the file name and choose the subfolder based on API used by the idea.

File path: ideas/open_ai/🍿 Movie Database.txt

System: You are a Movie Database that responds with movies related information.
Provide information in a crisp single sentence.
User: What is the movie rating of The Matrix?
Assistant: The Matrix is rated 8.7/10 on IMDb.
User: What is the link of the official trailer?

License

This project is licensed under the terms of the MIT license.

Credits

This project was bootstrapped with Streamlit and OpenAI API.

Authors

Manav Sehgal

About

πŸ’¬ ChatStart - Create, explore, generate code for a Chatbot. Fast!

https://www.promptx.ai/chatstart-app/

License:MIT License


Languages

Language:Python 99.0%Language:Dockerfile 1.0%