docs
Features

Data Integrations

Use organization data sources for vector search.

Data Integrations let applications retrieve relevant content from organization documents and use it as context during request processing.

Vector search is the retrieval mechanism behind Data Integrations, commonly known as retrieval augmented generation (RAG). When a request qualifies, Optiak searches the application's enabled data sources for the passages most relevant to the request and adds them to the model's context before generating a response, instead of sending entire documents with every request.

Vector search must be enabled at the organization level before any application can use it. Turning it off stops retrieval for every application, regardless of each application's own configuration.

Data Sources

Optiak uses the term data source for a named collection of uploaded documents. Use separate data sources when different applications, products, customers, teams, or environments should use different context - for example, product docs, support policies, or customer-specific content.

Organization Setup

Admins manage organization data sources in Company Setup -> Data Integrations.

From there, admins can:

  • Enable or disable vector search for the organization.
  • Create multiple named data sources.
  • Upload PDF, Markdown, plain text, Word (.docx), and PowerPoint (.pptx) files.
  • Review files in each data source.
  • Delete files or data sources when they should no longer be used.
  • Toggle which data sources are available to applications.

If vector search is disabled at the organization level, applications cannot enable it.

If a data source is disabled at the organization level, it is not available for application selection. If a file or data source is deleted, it is removed from future retrieval.

Application Setup

Applications configure vector search in Modules -> Data Integrations.

Application modes:

  • Per request - Vector search is off by default; requests must opt in with vector_search_enabled: true.
  • Always on - Vector search runs for every supported request to the application.
  • LLM Decides - Data retrieval is exposed to the model as a tool it can call; the model decides whether and how to use it.
  • Disabled - Vector search does not run for the application.

Applications can also choose which organization-enabled data sources they are allowed to search.

If no organization data sources exist, the application shows that vector search cannot be configured until an admin creates one in Company Setup -> Data Integrations.

Connections

Instead of uploading files manually, admins can connect an external account so files sync into a data source automatically.

From Company Setup -> Data Integrations, admins can:

  • Connect a Google Drive account through the Nango sign-in flow.
  • Choose the Drive folder to sync from.
  • Trigger a sync on demand and see its status (pending right after connecting, then active, syncing, or error) and last sync time.
  • Disconnect the account, which stops future syncing.

Multiple Data Sources

Optiak supports multiple data sources. A data source is searchable by an application only when it is enabled at both levels:

  • The organization makes the data source available.
  • The application enables the data source.

This lets one organization maintain separate sources such as product docs, support policies, customer-specific content, or test data while keeping each application limited to the context it should use.

When vector search is disabled for an application, all of that application's selected data sources are cleared.

LLM Decides Mode

In LLM Decides mode, data retrieval is not run ahead of the request. Instead, Optiak exposes it to the model as a callable tool alongside the request's own function definitions, and the model decides at inference time whether it needs business data. If the model calls it, Optiak searches the application's allowed data sources, feeds the results back to the model, and lets the model decide whether to call it again (up to a bounded number of turns) or finish its response.

LLM Decides Data Retrieval requires a model that supports tool calling and at least one allowed data source. Streaming requests do not run the LLM Decides tool loop.

Request-Level Opt-In

When an application is set to Per request, callers can opt in through the public Gateway API:

{
  "model": "smart",
  "messages": [
    { "role": "user", "content": "What changed in our uploaded policy?" }
  ],
  "vector_search_enabled": true
}

The same flag is available on the Responses endpoint:

{
  "model": "smart",
  "input": "Answer using the uploaded product documentation.",
  "vector_search_enabled": true
}

Request-level flags cannot override organization or application blocks. If vector search is disabled, no request can force it on.

Copyright © 2026