Skip to main content
Version: Current

Knowledge Base

Description​

Searches the current Agent's ingested knowledge for content relevant to a query. Use it directly in a workflow or as a retrieval tool for AI Agent or Conversational Agent.

Prerequisites​

Configure the Knowledge Ingestion Service and ingest the knowledge sources required by the Agent. Retrieval uses the current execution's knowledge scope; it does not search arbitrary files supplied by the caller.

Inputs​

PropertyDescription
QuerySearch request. For direct use, bind the question from Process Data. As an AI tool, allow the model to supply the query.
Chunk LimitMaximum results. Default: 3. The activity constrains the value to 1–10.

Outputs​

OutputDescription
ResultsCollection of relevant KnowledgeBaseSearchResult objects.
CountNumber of returned results.

Each result provides:

FieldDescription
TextRetrieved content chunk.
SourceNameOptional source document name.
SourceLinkOptional source URL.
ImageAssetsRelated images with Id, Url, and AssociatedText.

Count = 0 and an empty Results collection mean no content was returned. This can also occur for a blank query or an unavailable knowledge-search service. Do not treat an empty result as proof that the underlying source contains no relevant information.

Example: Retrieve a policy​

  1. Ingest the Agent's policy documents.
  2. Set Query to What is the refund policy? and Chunk Limit to 3.
  3. Run the activity and check Count.
  4. Iterate over Results to read Text and preserve any SourceName/SourceLink needed for attribution.

To use it as a tool, connect Knowledge Base through the AI activity's Tools connector and instruct the model to retrieve policy content before answering. Retrieval returns context, not a final user-facing answer.