Knowledge
Use vector search
Configuration
Search
Operation
Search
Knowledge Base*
Select knowledge base
Search Query
Enter your search query (optional when using tag filters)
Number of Results
Enter number of results (default: 10)
Tag Filters
Add tag filters
Available in Advanced mode.
Search (
knowledge_search)Search a knowledge base by query, text tag equality, or both. Repeated values for one tag use OR; different tags use AND.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeBaseId | string | Yes | ID of the knowledge base to search in |
query | string | No | Search query text (optional when using tag filters) |
topK | number | No | Number of most similar results to return (1-100) |
tagFilters | array | No | Text-equality filters with tagName and tagValue. Repeated tag names are OR alternatives; different tags are combined with AND. |
Output
| Parameter | Type | Description |
|---|---|---|
results | array | Array of search results from the knowledge base |
results[].documentId | string | Document ID |
results[].documentName | string | Document name |
results[].content | string | Content of the result |
results[].chunkIndex | number | Index of the chunk within the document |
results[].similarity | number | Similarity score of the result |
results[].metadata | object | Metadata of the result, including tags |
query | string | The search query that was executed |
totalResults | number | Total number of results found |
cost | object | Cost information for the search operation |
Upload Chunk
Operation
Upload Chunk
Knowledge Base*
Select knowledge base
Document*
Select document
Chunk Content*
Enter the chunk content to upload
Upload Chunk (
knowledge_upload_chunk)Upload a new chunk to a document in a knowledge base
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeBaseId | string | Yes | ID of the knowledge base containing the document |
documentId | string | Yes | ID of the document to upload the chunk to |
content | string | Yes | Content of the chunk to upload |
Output
| Parameter | Type | Description |
|---|---|---|
data | object | Information about the uploaded chunk |
data.chunkId | string | Chunk ID |
data.chunkIndex | number | Index of the chunk within the document |
data.content | string | Content of the chunk |
data.contentLength | number | Length of the content in characters |
data.tokenCount | number | Number of tokens in the chunk |
data.enabled | boolean | Whether the chunk is enabled |
data.createdAt | string | Creation timestamp |
data.updatedAt | string | Last update timestamp |
message | string | Success or error message describing the operation result |
documentId | string | ID of the document the chunk was added to |
documentName | string | Name of the document the chunk was added to |
cost | object | Cost information for the upload operation |
Create Document
Operation
Create Document
Knowledge Base*
Select knowledge base
Document Name*
Enter document name
Document Content*
Enter the document content
Document Tags
Document Tags
Create Document (
knowledge_create_document)Create a new document in a knowledge base
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
knowledgeBaseId | string | Yes | ID of the knowledge base containing the document |
name | string | Yes | Name of the document |
content | string | Yes | Content of the document |
documentTagsData | array | No | Structured tag data with names, types, and values |
Output
| Parameter | Type | Description |
|---|---|---|
data | object | Information about the created document |
data.documentId | string | Document ID |
data.documentName | string | Document name |
data.type | string | Document type |
data.enabled | boolean | Whether the document is enabled |
data.createdAt | string | Creation timestamp |
data.updatedAt | string | Last update timestamp |
message | string | Success or error message describing the operation result |
documentId | string | ID of the created document |
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
operation | string | No | Operation to perform |
knowledgeBaseId | string | No | Knowledge base identifier. Shown when operation is one of 'search', 'upload_chunk', 'create_document'. |
query | string | No | Search query terms. Shown when operation is 'search'. |
topK | number | No | Number of results. Shown when operation is 'search'. |
documentId | string | No | Document identifier. Shown when operation is 'upload_chunk'. |
content | string | No | Content data |
name | string | No | Document name. Shown when operation is 'create_document'. |
tagFilters | string | No | Tag filter criteria. Shown when operation is 'search'. |
documentTags | string | No | Document tags. Shown when operation is 'create_document'. |
Output
| Parameter | Type | Description |
|---|---|---|
results | json | Search results |
query | string | Query used |
totalResults | number | Total results count |
Usage Instructions
Search a knowledge base, upload chunks, or create documents. Search accepts a query, text tag filters, or both. Tag equality is case-insensitive; repeated values for the same tag use OR and different tags use AND. Tag-only searches do not generate a query embedding. Unknown tags and unsupported filter operators are rejected. Write operations return confirmation data under data, not results.
Notes
- Category:
blocks - Type:
knowledge