Integrate Retrievals to Assistant
Integrate on Console
- Navigate to the Project page then go to the
Assistants
tab. - Click the 'New Assistant' button to create a new assistant or click the 'Edit' button to update an existing assistant.
- Scroll down to the 'Retrievals' section and click the 'Add' button.
- Select the retrievals you want to integrate from the drop-down list and click the 'Confirm' button.
- Keep clicking the 'Add' button to add more retrievals to the assistant until you are done.
- Click the 'Confirm' button to confirm the changes.
You can also integrate collections to existing Assistants by clicking the edit
button on the assistant page.
Retrieval Configs
When integrating retrievals to an assistant, you will find a Retreival Configs
setting. It contains the following fields:
Method
: When retrieval system is fetching related chunks from vector database, it needs aquery
as input. This field specifies how thequery
is generated.User Message
: The latest user message is used asquery
.Function Call
: Thequery
is generated by the model, and passed to the retrieval system as a function call.Memory
: Thequery
is the latest user message together with the context in the chat session.
Top K
: The number of chunks to be returned from the retrieval task.Max Tokens
: The maximum number of tokens to be returned from the retrieval task.