Chatbots
๐ฎ Poe Bot
๐ Getting started
- Install embedchain python package:
- Create a free account on Poe.
- Click โCreate Botโ button on top left.
- Give it a handle and an optional description.
- Select
Use API
. - Under
API URL
enter your server or ngrok address. You can use your machineโs public IP or DNS. Otherwise, employ a proxy server like ngrok to make your local bot accessible. - Copy your api key and paste it in
.env
asPOE_API_KEY
. - You will need to set
OPENAI_API_KEY
for generating embeddings and using LLM. Copy your OpenAI API key from here and paste it in.env
asOPENAI_API_KEY
. - Now create your bot using the following code snippet.
- You can paste the above in a file called
your_script.py
and then simply do
Now your bot will start running at port 8080
by default.
-
You can refer the Supported Data formats section to refer the supported data types in embedchain.
-
Click
Run check
to make sure your machine can be reached. -
Make sure your bot is private if thatโs what you want.
-
Click
Create bot
at the bottom to finally create the bot -
Now your bot is created.
๐ฌ How to use
- To ask the bot questions, just type your query in the Poe interface:
- If you wish to add more data source to the bot, simply update your script and add as many
.add
as you like. You need to restart the server.