Learn how to structure your data for multi-tenant applications with Trieve
tracking_id
: A unique, optional tracking ID for the dataset that reflects the id of the tenant within your system. You can use this tracking id in the TR-Dataset
header to specify the dataset for the request rather than the dataset id.crawl_options
: Provides the options to setup crawling to populate your dataset (e.g., include/exclude paths, tags, and more).dataset_name
: The name of the dataset. This must be a unique within the organization.server_configuration
: Provide the server configuration for the dataset such as RAG and system prompt, stop tokens, embedding models, and more.server_configuration
parameter to pass in a new configuration for all datasets in the organization.
Example of updating all dataset configurations in an organization:
server_configuration
object will be updated
for each dataset, keeping the unique values for other fields unchanged.name
parameter to pass a arbitrary, unique name which will be used to identify the organization. We recommend that you create seperate organizations for your main application as well as a staging environment for testing.
Example of creating an organization on demand through the API: