Skip to main content

Volatile Knowledge

Introduction​

The Volatile Knowledge module allows agents to use files attached by final users on an instance. Serenity* Star automatically analyses and segments these documents, creates and stores embeddings, and uses the information obtained throughout the execution.

How to Attach a file​

The method for attaching a file to your execution will depend on the channel you are using.

API​

To attach a file when executing an agent through the API, you first need to upload the file using the Volatile Knowledge endpoint. Once the file was processed, it can be attached in the Execution endpoint.

Preview​

Use the attach file button to attach a file to a message or instance.

image

WhatsApp​

If you are using our WhatsApp integration, you can attach files using the WhatsApp interface and they will be directly processed.

Volatile Knowledge Strategy​

The Volatile Knowledge Strategy controls how the agent processes and incorporates files uploaded by users during a conversation. Unlike knowledge base files, which are pre-configured per agent, volatile files are transient and session-specific.

To configure the strategy:

  1. Open the agent in the Agent Design Studio and click the Knowledge card.

    Knowledge card in the Agent Design Studio

  2. Under Volatile Knowledge Strategy, select the strategy that best fits your use case.

    Volatile Knowledge Strategy selector

Attach Full File​

The agent includes the complete content of each uploaded file in the conversation context and sends it to the model on every message. If the files attached to the current message exceed the available context limit, a validation error is returned and the message is not sent.

How it works:

  1. The content of the files attached to the current message is extracted and combined.
  2. The total size is checked against the available context limit.
  3. If it fits, the full content is included in the context sent to the model.
  4. If it exceeds the limit, an error is returned and the message is not sent.
  5. Files attached to earlier messages are included in full while they fit in the remaining context. The files that do not fit are listed by name only, without an error.

When to use it:

  • Files are short and the model needs full visibility of their content to respond accurately.
  • The task requires precise, verbatim information, and partial retrieval is not acceptable.
  • You want simple, deterministic behaviour with no retrieval logic involved.
Limitations

Not suitable for large files or conversations with many attachments. If the files attached to a message exceed the context limit, an error is returned and the user must reduce the amount of attached content before retrying.

Instead of including full file content, the agent performs a semantic search on every message to retrieve only the sections most relevant to the user's query.

How it works:

  1. Each uploaded file is indexed for semantic search.
  2. The user's message is used as the search query.
  3. The most relevant sections across all files are retrieved and included in the context.

When to use it:

  • Files are large and including their full content would exceed the context limit.
  • User questions are specific and only a portion of each file is relevant at a time.
  • You want predictable context usage regardless of file size.
Limitations

A text query from the user is required to perform the semantic search. If the message contains no text (e.g., a voice message without transcription), the files are skipped entirely.

Hybrid​

The agent first evaluates whether the full content of the files attached to the current message fits within the context limit. If it does, the complete content is used. If not, it automatically falls back to semantic search and retrieves only the most relevant sections.

How it works:

  1. The total size of the files attached to the current message is evaluated against the context limit.
  2. If the content fits, the full file content is included in the context.
  3. If it exceeds the limit, a semantic search is performed and only the most relevant sections are included.
  4. Files attached to earlier messages are included in full while they fit in the remaining context. Then, a semantic search is done on the files that are already indexed, and the other files are listed by name only.

When to use it:

  • File sizes are unpredictable and you want the best outcome in both scenarios: full content when it fits, targeted retrieval when it does not.
  • You prefer an automatic fallback over returning an error to the user.
Limitations

If the content exceeds the context limit and the user message contains no text, files are not included in the response at all.

Agentic File Processing​

The agent decides autonomously whether to read uploaded files and which ones to access, based on the conversation context. Rather than including file content on every message, the agent evaluates each turn and retrieves file content only when it determines it is necessary to answer accurately.

How it works:

  1. The agent receives the list of available uploaded files along with the conversation, but not their content.
  2. It evaluates whether any file content is needed to answer the current message.
  3. If so, it uses a tool to retrieve the content of the files it selects. If it does not select specific files, the tool returns the content of all of them.
  4. The retrieved content is used to compose the response.

When to use it:

  • Conversations involve multiple uploaded files but only a subset is relevant to each question.
  • You want to avoid unnecessary file processing on messages that do not require it.
  • Users reference different files across turns and selective retrieval improves response quality.
Considerations

The agent may occasionally decide not to read a file even when doing so would improve the response. Retrieval accuracy depends on the reasoning capabilities of the configured AI model.

Allowed file types​

By default, an agent accepts every file format that Serenity* Star supports (see Supported File Formats). To accept only some formats:

  1. Open the agent in the Agent Design Studio and click the Knowledge card.
  2. Under Volatile Knowledge Strategy, find Allowed file types.
  3. Select the file types the agent accepts.

If you select no file type, the agent accepts all the supported formats. A file of another type is rejected when it is uploaded and when the agent is executed.

Not versioned

Changes to Allowed file types are not versioned. They apply to all versions of the agent, including the published one.

Direct File Send​

Direct File Send is not a Volatile Knowledge Strategy. It is a model parameter that sends attached PDF files directly to the model provider instead of processing them in Serenity* Star.

To configure it, open the agent's Model settings and turn on Send file directly to model provider. The option shows only for models that support it, and it is marked as Preview.

When the option is on:

  • PDF files are sent to the model provider as documents. The provider reads them, and Serenity* Star does not add their content to the context.
  • The selected Volatile Knowledge Strategy does not apply to those PDF files: their size limits and how they are processed are handled directly by the model provider.
  • The other files (for example, Word documents or images) are processed by Serenity* Star with the selected strategy.

PDF files are sent directly only if the model's provider can receive them: OpenAI, Azure OpenAI, Anthropic, Meta, Google and Google Vertex. If the agent has a Fallback Model, the fallback model must also support it. Otherwise, the PDF files are processed by Serenity* Star with the selected strategy.

Supported File Formats​

The following file formats are supported for upload and processing in the Volatile Knowledge module:

FILE FORMATMIME TYPE
.txttext/plain
.pdfapplication/pdf
.docapplication/msword
.docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
.csvtext/csv
.mdtext/markdown
.jpg, .jpegimage/jpeg
.pngimage/png
.xlsapplication/vnd.ms-excel, application/excel
.xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.vtttext/vtt
.srttext/srt, application/x-subrip
CSV and Excel files

The Volatile Knowledge Strategy does not process CSV and Excel (.xlsx) files. The agent queries them as data with a dedicated tool. Older Excel files (.xls) are not queried as data: the strategy processes them like any other file.