- Newest
- Most votes
- Most comments
Hello YK,
Yes, it is recommended to use direct knowledge base calls (Retrieve API) or knowledge base with response generation (RetrieveAndGenerate API) in production situations if you don't require the full agent functionality. Direct knowledge base calls can be more lightweight and potentially faster, as they don't involve the overhead of the agent layer.
Regarding versioning for response generation, you're correct that versioning is not available when using the knowledge base directly. Versioning is a feature provided by the agent layer, which allows you to create and manage different versions of your agent's behavior.
If you need versioning for your knowledge base with response generation, the recommended approach is to create an agent, associate it with your knowledge base, and then use the agent's alias for versioning. This way, you can create new versions of your agent's behavior, which includes the knowledge base and any additional configurations or customizations you've made.
Thanks, Ayman
Relevant content
- asked a year ago
- asked 10 months ago
