Type identifier:
ai:vectorContext:queryCategory: AI Operations
The AI - Vector Context Query node performs semantic search over stored embeddings in a vector context. It returns the most similar content based on embedding distance, with optional filtering by labels.
Handle | Type | Description |
|---|---|---|
|
| The text query to search for. |
|
| Dynamic handles for label filter values. |
Handle | Type | Description |
|---|---|---|
|
| Array of matching results with content and scores. |
Option | Type | Default | Description |
|---|---|---|---|
Top Count |
|
| Maximum number of results to return. |
Label Filters |
|
| Label keys to filter results by. |
Label Values |
|
| Expected label values (if static). |
Searches vector context for similar embeddings:
Results are ranked by cosine similarity:
When label filters are configured:
Each result contains:
id: The embedding's unique identifiercontent: The original stored textscore: Similarity score (0-1)Configuration:
Input:
"How do I reset my password?"Output: Top 5 most semantically similar stored content items.
Configuration:
["documentId"]Use case: Search within a specific document's chunks.
Flow:
Configuration:
Configuration:
["category", "language"]Use case: Search documentation by topic and language.