StyloDocs
Workflow blocks

Search Knowledge Base

Search synced knowledge base documents using semantic search with automatic reranking

View as Markdown

context-engine/search-knowledge-base — Search synced knowledge base documents using semantic search with automatic reranking.

Where it appears

The Search Knowledge Base block lives in the Integrations group of the Workflow Builder. Connect the Context Engine integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
knowledgeBaseIdselectYesThe synced knowledge base to search. Choose from the knowledge bases configured for your organization.
searchQuerytext (supports references)YesThe text to search for.
topKnumberNo5Maximum number of documents to return
minScorenumberNo15Only return results above this relevance threshold.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Search Knowledge Base.field>.

NameTypeDescription
resultsarrayArray of matching documents
countnumberNumber of results returned
confidencejsonSearch confidence level and score
metajsonSearch metadata

Example

A minimal configuration for this block:

{
  "type": "context-engine/search-knowledge-base",
  "config": {
    "knowledgeBaseId": "...",
    "searchQuery": "<PreviousStep.field>",
    "topK": 5,
    "minScore": 15
  }
}

Limits and failure modes

  • Requires a connected Context Engine integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (knowledgeBaseId, searchQuery) must be set, or the block fails validation before it runs.

On this page