Embedchain also provides support for creating Open-Source AI Assistants (similar to OpenAI Assistants API) which allows you to build AI assistants within your own applications using any LLM (OpenAI or otherwise). An Assistant has instructions and can leverage models, tools, and knowledge to respond to user queries. At a high level, the Open-Source AI Assistants API has the following flow:Documentation Index
Fetch the complete documentation index at: https://embedchain-docs-example-slack-ai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Create an AI Assistant by picking a model
- Create a Thread when a user starts a conversation
- Add Messages to the Thread as the user ask questions
- Run the Assistant on the Thread to trigger responses. This automatically calls the relevant tools.
Step 1: Instantiate AI Assistant
Initialize
Initialize
Step-2: Add data to thread
You can add any custom data source that is supported by Embedchain. Else, you can directly pass the file path on your local system and Embedchain propagates it to OpenAI Assistant.Add data
Step-3: Chat with your AI Assistant
Chat