RAG tools enable AI21 Maestro to access additional context, either from the AI21 Maestro File Library you manage or directly from the web. This helps generate grounded, relevant responses based on your data or real-time information.Documentation Index
Fetch the complete documentation index at: https://docs.ai21.com/llms.txt
Use this file to discover all available pages before exploring further.
Available Tools
- File Search – Retrieve information from your uploaded documents.
- Web Search – Incorporate data from the web.
Using File Search
Before using file_search: Upload your documents to your File Library.Using Web Search
You can also enableweb_search to let Maestro retrieve real-time information from the web.Optionally, you can restrict searches to specific domains using the
urls parameter.
Example:
The example below shows a completedrun object that includes both file_search and web_search results. These data_sources fields only appear if you explicitly request them using the include parameter.
For details on how to use this parameter, see the include parameter documentation.

