AptlyStar

Knowledge

Use vector search

Aptlystar's Knowledge Base is a native feature that enables you to create, manage, and query custom knowledge bases directly within the platform. Using advanced AI embeddings and vector search, the Knowledge Base block allows you to build intelligent search capabilities into your workflows.

With the Knowledge Base in Aptlystar, you can:

  • Search knowledge: Perform semantic searches across your custom knowledge bases using AI-powered vector similarity matching
  • Upload chunks: Add text chunks with metadata to a knowledge base for indexing
  • Create documents: Add new documents to a knowledge base for searchable content

In Aptlystar, the Knowledge Base block enables your agents to perform intelligent semantic searches across your organizational knowledge as part of automated workflows. This is ideal for information retrieval, content recommendations, FAQ automation, and grounding agent responses in your own data.

Usage Instructions

Integrate Knowledge into the workflow. Perform full CRUD operations on documents, chunks, and tags.

Tools

Search for similar content in a knowledge base using vector similarity

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base to search in
querystringNoSearch query text (optional when using tag filters)
topKnumberNoNumber of most similar results to return (1-100)
tagFiltersarrayNoArray of tag filters with tagName and tagValue properties
itemsobjectNoNo description
propertiesstringNoNo description
tagNamestringNoNo description
tagValuestringNoNo description
rerankerEnabledbooleanNoWhether to apply Cohere reranking to vector search results
rerankerModelstringNoCohere rerank model to use (one of: rerank-v4.0-pro, rerank-v4.0-fast, rerank-v3.5)
tagFiltersstringNoNo description

Output

ParameterTypeDescription
resultsarrayArray of search results from the knowledge base
↳ documentIdstringDocument ID
↳ documentNamestringDocument name
↳ contentstringContent of the result
↳ chunkIndexnumberIndex of the chunk within the document
↳ similaritynumberSimilarity score of the result
↳ metadataobjectMetadata of the result, including tags
querystringThe search query that was executed
totalResultsnumberTotal number of results found
costobjectCost information for the search operation

knowledge_upload_chunk

Upload a new chunk to a document in a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base containing the document
documentIdstringYesID of the document to upload the chunk to
contentstringYesContent of the chunk to upload

Output

ParameterTypeDescription
dataobjectInformation about the uploaded chunk
↳ chunkIdstringChunk ID
↳ chunkIndexnumberIndex of the chunk within the document
↳ contentstringContent of the chunk
↳ contentLengthnumberLength of the content in characters
↳ tokenCountnumberNumber of tokens in the chunk
↳ enabledbooleanWhether the chunk is enabled
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
messagestringSuccess or error message describing the operation result
documentIdstringID of the document the chunk was added to
documentNamestringName of the document the chunk was added to
costobjectCost information for the upload operation

knowledge_create_document

Create a new document in a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base containing the document
namestringYesName of the document
contentstringYesContent of the document
documentTagsobjectNoDocument tags
documentTagsstringNoNo description

Output

ParameterTypeDescription
dataobjectInformation about the created document
↳ documentIdstringDocument ID
↳ documentNamestringDocument name
↳ typestringDocument type
↳ enabledbooleanWhether the document is enabled
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
messagestringSuccess or error message describing the operation result
documentIdstringID of the created document

knowledge_upsert_document

Create or update a document in a knowledge base. If a document with the given ID or filename already exists, it will be replaced with the new content.

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base containing the document
documentIdstringNoOptional ID of an existing document to update. If not provided, lookup is done by filename.
namestringYesName of the document
contentstringYesContent of the document
documentTagsjsonNoDocument tags
documentTagsstringNoNo description

Output

ParameterTypeDescription
dataobjectInformation about the upserted document
↳ documentIdstringDocument ID
↳ documentNamestringDocument name
↳ typestringDocument type
↳ enabledbooleanWhether the document is enabled
↳ isUpdatebooleanWhether an existing document was replaced
↳ previousDocumentIdstringID of the document that was replaced, if any
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
messagestringSuccess or error message describing the operation result
documentIdstringID of the upserted document

knowledge_list_tags

List all tag definitions for a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base to list tags for

Output

ParameterTypeDescription
knowledgeBaseIdstringID of the knowledge base
tagsarrayArray of tag definitions for the knowledge base
↳ idstringTag definition ID
↳ tagSlotstringInternal tag slot (e.g. tag1, number1)
↳ displayNamestringHuman-readable tag name
↳ fieldTypestringTag field type (text, number, date, boolean)
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
totalTagsnumberTotal number of tag definitions

knowledge_list_documents

List documents in a knowledge base with optional filtering, search, and pagination

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base to list documents from
searchstringNoSearch query to filter documents by filename
enabledFilterstringNoFilter by enabled status: "all", "enabled", or "disabled"
limitnumberNoMaximum number of documents to return (default: 50)
offsetnumberNoNumber of documents to skip for pagination (default: 0)

Output

ParameterTypeDescription
knowledgeBaseIdstringID of the knowledge base
documentsarrayArray of documents in the knowledge base
↳ idstringDocument ID
↳ filenamestringDocument filename
↳ fileSizenumberFile size in bytes
↳ mimeTypestringMIME type of the document
↳ enabledbooleanWhether the document is enabled
↳ processingStatusstringProcessing status (pending, processing, completed, failed)
↳ chunkCountnumberNumber of chunks in the document
↳ tokenCountnumberTotal token count across chunks
↳ uploadedAtstringUpload timestamp
↳ updatedAtstringLast update timestamp
↳ connectorIdstringConnector ID if document was synced from an external source
↳ connectorTypestringConnector type (e.g. notion, github, confluence) if synced
↳ sourceUrlstringOriginal URL in the source system if synced from a connector
totalDocumentsnumberTotal number of documents matching the filter
limitnumberPage size used
offsetnumberOffset used for pagination

knowledge_get_document

Get full details of a single document including tags, connector metadata, and processing status

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base the document belongs to
documentIdstringYesID of the document to retrieve

Output

ParameterTypeDescription
idstringDocument ID
filenamestringDocument filename
fileSizenumberFile size in bytes
mimeTypestringMIME type of the document
enabledbooleanWhether the document is enabled
processingStatusstringProcessing status (pending, processing, completed, failed)
processingErrorstringError message if processing failed
chunkCountnumberNumber of chunks in the document
tokenCountnumberTotal token count across chunks
characterCountnumberTotal character count
uploadedAtstringUpload timestamp
updatedAtstringLast update timestamp
connectorIdstringConnector ID if document was synced from an external source
sourceUrlstringOriginal URL in the source system if synced from a connector
externalIdstringExternal ID from the source system
tagsobjectTag values keyed by tag slot (tag1-7, number1-5, date1-2, boolean1-3)

knowledge_delete_document

Delete a document from a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base containing the document
documentIdstringYesID of the document to delete

Output

ParameterTypeDescription
documentIdstringID of the deleted document
messagestringConfirmation message

knowledge_list_chunks

List chunks for a document in a knowledge base with optional filtering and pagination

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base
documentIdstringYesID of the document to list chunks from
searchstringNoSearch query to filter chunks by content
enabledstringNoFilter by enabled status: "true", "false", or "all" (default: "all")
limitnumberNoMaximum number of chunks to return (1-100, default: 50)
offsetnumberNoNumber of chunks to skip for pagination (default: 0)

Output

ParameterTypeDescription
knowledgeBaseIdstringID of the knowledge base
documentIdstringID of the document
chunksarrayArray of chunks in the document
↳ idstringChunk ID
↳ chunkIndexnumberIndex of the chunk within the document
↳ contentstringChunk text content
↳ contentLengthnumberContent length in characters
↳ tokenCountnumberToken count for the chunk
↳ enabledbooleanWhether the chunk is enabled
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
totalChunksnumberTotal number of chunks matching the filter
limitnumberPage size used
offsetnumberOffset used for pagination

knowledge_update_chunk

Update the content or enabled status of a chunk in a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base
documentIdstringYesID of the document containing the chunk
chunkIdstringYesID of the chunk to update
contentstringNoNew content for the chunk
enabledbooleanNoWhether the chunk should be enabled or disabled

Output

ParameterTypeDescription
documentIdstringID of the parent document
idstringChunk ID
chunkIndexnumberIndex of the chunk within the document
contentstringUpdated chunk content
contentLengthnumberContent length in characters
tokenCountnumberToken count for the chunk
enabledbooleanWhether the chunk is enabled
updatedAtstringLast update timestamp

knowledge_delete_chunk

Delete a chunk from a document in a knowledge base

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base
documentIdstringYesID of the document containing the chunk
chunkIdstringYesID of the chunk to delete

Output

ParameterTypeDescription
chunkIdstringID of the deleted chunk
documentIdstringID of the parent document
messagestringConfirmation message

knowledge_list_connectors

List all connectors for a knowledge base, showing sync status, type, and document counts

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base to list connectors for

Output

ParameterTypeDescription
knowledgeBaseIdstringID of the knowledge base
connectorsarrayArray of connectors for the knowledge base
↳ idstringConnector ID
↳ connectorTypestringType of connector (e.g. notion, github, confluence)
↳ statusstringConnector status (active, paused, syncing)
↳ syncIntervalMinutesnumberSync interval in minutes (0 = manual only)
↳ lastSyncAtstringTimestamp of last sync
↳ lastSyncErrorstringError from last sync if failed
↳ lastSyncDocCountnumberNumber of documents synced in last sync
↳ nextSyncAtstringTimestamp of next scheduled sync
↳ consecutiveFailuresnumberNumber of consecutive sync failures
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
totalConnectorsnumberTotal number of connectors

knowledge_get_connector

Get detailed connector information including recent sync logs for monitoring sync health

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base the connector belongs to
connectorIdstringYesID of the connector to retrieve

Output

ParameterTypeDescription
connectorobjectConnector details
↳ idstringConnector ID
↳ connectorTypestringType of connector
↳ statusstringConnector status (active, paused, syncing)
↳ syncIntervalMinutesnumberSync interval in minutes
↳ lastSyncAtstringTimestamp of last sync
↳ lastSyncErrorstringError from last sync if failed
↳ lastSyncDocCountnumberDocs synced in last sync
↳ nextSyncAtstringNext scheduled sync timestamp
↳ consecutiveFailuresnumberConsecutive sync failures
↳ createdAtstringCreation timestamp
↳ updatedAtstringLast update timestamp
syncLogsarrayRecent sync log entries
↳ idstringSync log ID
↳ statusstringSync status
↳ startedAtstringSync start time
↳ completedAtstringSync completion time
↳ docsAddednumberDocuments added
↳ docsUpdatednumberDocuments updated
↳ docsDeletednumberDocuments deleted
↳ docsUnchangednumberDocuments unchanged
↳ errorMessagestringError message if sync failed

knowledge_trigger_sync

Trigger a manual sync for a knowledge base connector

Input

ParameterTypeRequiredDescription
knowledgeBaseIdstringYesID of the knowledge base the connector belongs to
connectorIdstringYesID of the connector to trigger sync for

Output

ParameterTypeDescription
connectorIdstringID of the connector that was synced
messagestringStatus message from the sync trigger

On this page