🚀 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 URLenter 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
.envasPOE_API_KEY. - You will need to set
OPENAI_API_KEYfor generating embeddings and using LLM. Copy your OpenAI API key from here and paste it in.envasOPENAI_API_KEY. - Now create your bot using the following code snippet.
- You can paste the above in a file called
your_script.pyand then simply do
8080 by default.
- You can refer the Supported Data formats section to refer the supported data types in embedchain.
-
Click
Run checkto make sure your machine can be reached. - Make sure your bot is private if that’s what you want.
-
Click
Create botat 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
.addas you like. You need to restart the server.