By default, the toolkit operates without community tools or deployments. To enable them, add the following line to the configuration.yaml
file or use the make setup
command:
feature_flags.use_community_features: true
To add a custom deployment:
BaseDeployment
, similar to existing deployments.For a Cohere private deployment:
base_url
for your private deployment and include any custom authentication steps.You can run the backend service and interact with it similarly to the Cohere API. Note that streaming and non-streaming endpoints are differentiated as follows:
http://localhost:8000/v1/chat-stream
http://localhost:8000/v1/chat
curl --location 'http://localhost:8000/v1/chat-stream' \
--header 'User-Id: me' \
--header 'Content-Type: application/json' \
--data '{
"message": "Tell me about the aya model"
}'
The core chat interface is the Coral frontend. To implement your own interface:
src/community/interfaces/
.If you have already created a connector, you can utilize it within the toolkit by following these steps:
ConnectorRetriever
.Arxiv
implementation, using the category ToolCategory.DataLoader
.You can now use both the Coral frontend and API with your connector.
To integrate Coral with web search, utilize the Tavily_Internet_Search
tool by adding your API key to the configuration file. Alternatively, you can implement your own search provider by following these steps.
For document uploads in Coral, use File_Upload_LlamaIndex
(this requires a Cohere API key in the configuration file). You can also implement a custom document uploader by following the steps here.
The toolkit includes sample tools that you can copy to configure your own data sources, including:
For guidance on creating your own tools or adding custom data sources, see the tools and retrieval sources overview.
To customize the Coral frontend, modify the theme, color scheme, font, and other styles. Refer to our guide on Theming and Customization.