AACFlow

Knowledge

Используйте векторный поиск

База знаний (Knowledge Base) — встроенная функция AACFlow, которая позволяет создавать, управлять и опрашивать собственные базы знаний прямо внутри платформы. Используя современные AI-эмбеддинги и векторный поиск, блок Knowledge Base даёт возможность встроить интеллектуальный поиск в ваши воркфлоу.

Интеграция Knowledge Base в AACFlow позволяет:

  • Поиск по знаниям: выполняйте семантический поиск по вашим базам знаний с помощью AI-сравнения векторной близости
  • Загрузка фрагментов: добавляйте текстовые фрагменты с метаданными в базу знаний для индексации
  • Создание документов: добавляйте новые документы в базу знаний, чтобы их содержимое стало доступным для поиска

Блок Knowledge Base в AACFlow позволяет вашим агентам выполнять интеллектуальный семантический поиск по корпоративным знаниям в рамках автоматизированных воркфлоу. Это идеально подходит для извлечения информации, рекомендаций контента, автоматизации FAQ и подкрепления ответов агентов вашими собственными данными.

Инструкции по использованию

Интегрируйте Knowledge в рабочий процесс. Perform full CRUD operations on documents, chunks, и tags.

Инструменты

Поиск похожего контента in a knowledge base using vector similarity

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base to search in
querystringНетSearch query text (optional when using tag filters)
topKnumberНетNumber of most similar results to return (1-100)
tagFiltersarrayНетМассив tag filters with tagName and tagValue properties
itemsobjectНетNo description
propertiesstringНетNo description
tagNamestringНетNo description
tagValuestringНетNo description
tagFiltersstringНетNo description

Выходные данные

ПараметрТипОписание
resultsarrayМассив search results from the knowledge base
documentIdstringDocument ID
documentNamestringDocument name
contentstringContent of the result
chunkIndexnumberIndex of the chunk within the document
similaritynumberAACFlowilarity 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

Загрузить новый фрагмент to a document in a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base containing the document
documentIdstringДаID of the document to upload the chunk to
contentstringДаContent of the chunk to upload

Выходные данные

ПараметрТипОписание
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
enabledbooleanПроизошла ли 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

Создать новый document in a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base containing the document
namestringДаName of the document
contentstringДаContent of the document
documentTagsobjectНетDocument tags
documentTagsstringНетNo description

Выходные данные

ПараметрТипОписание
dataobjectInformation about the created document
documentIdstringDocument ID
documentNamestringDocument name
typestringDocument type
enabledbooleanПроизошла ли document is enabled
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
messagestringSuccess or error message describing the operation result
documentIdstringID of the created document

knowledge_upsert_document

Создать или update a document in a knowledge base. If a document с заданным ID или filename already exists, it will be replaced С помощью new content.

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base containing the document
documentIdstringНетOptional ID of an existing document to update. Если не предоставлен, lookup is done by filename.
namestringДаName of the document
contentstringДаContent of the document
documentTagsjsonНетDocument tags
documentTagsstringНетNo description

Выходные данные

ПараметрТипОписание
dataobjectInformation about the upserted document
documentIdstringDocument ID
documentNamestringDocument name
typestringDocument type
enabledbooleanПроизошла ли 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

Список всех tag definitions для a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base to list tags for

Выходные данные

ПараметрТипОписание
knowledgeBaseIdstringID of the knowledge base
tagsarrayМассив 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

Список documents in a knowledge base с optional фильтрация, search, и постраничная выборка

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base to list documents from
searchstringНетSearch query to filter documents by filename
enabledFilterstringНетFilter by enabled status: "all", "enabled", or "disabled"
limitnumberНетMaximum number of documents to return (default: 50)
offsetnumberНетNumber of documents to skip for постраничная выборка (default: 0)

Выходные данные

ПараметрТипОписание
knowledgeBaseIdstringID of the knowledge base
documentsarrayМассив documents in the knowledge base
idstringDocument ID
filenamestringDocument filename
fileSizenumberFile size in bytes
mimeTypestringMIME type of the document
enabledbooleanПроизошла ли 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 постраничная выборка

knowledge_get_document

Получить full details of a single document including tags, connector metadata, и processing status

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base the document belongs to
documentIdstringДаID of the document to retrieve

Выходные данные

ПараметрТипОписание
idstringDocument ID
filenamestringDocument filename
fileSizenumberFile size in bytes
mimeTypestringMIME type of the document
enabledbooleanПроизошла ли 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

Удалить document from a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base containing the document
documentIdstringДаID of the document to delete

Выходные данные

ПараметрТипОписание
documentIdstringID of the deleted document
messagestringConfirmation message

knowledge_list_chunks

Список chunks для a document in a knowledge base с optional фильтрация и постраничная выборка

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base
documentIdstringДаID of the document to list chunks from
searchstringНетSearch query to filter chunks by content
enabledstringНетFilter by enabled status: "true", "false", or "all" (default: "all")
limitnumberНетMaximum number of chunks to return (1-100, default: 50)
offsetnumberНетNumber of chunks to skip for постраничная выборка (default: 0)

Выходные данные

ПараметрТипОписание
knowledgeBaseIdstringID of the knowledge base
documentIdstringID of the document
chunksarrayМассив 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
enabledbooleanПроизошла ли chunk is enabled
createdAtstringCreation timestamp
updatedAtstringLast update timestamp
totalChunksnumberTotal number of chunks matching the filter
limitnumberPage size used
offsetnumberOffset used for постраничная выборка

knowledge_update_chunk

Обновить the content или enabled status of a chunk in a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base
documentIdstringДаID of the document containing the chunk
chunkIdstringДаID of the chunk to update
contentstringНетNew content for the chunk
enabledbooleanНетПроизошла ли chunk should be enabled or disabled

Выходные данные

ПараметрТипОписание
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
enabledbooleanПроизошла ли chunk is enabled
updatedAtstringLast update timestamp

knowledge_delete_chunk

Удалить chunk from a document in a knowledge base

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base
documentIdstringДаID of the document containing the chunk
chunkIdstringДаID of the chunk to delete

Выходные данные

ПараметрТипОписание
chunkIdstringID of the deleted chunk
documentIdstringID of the parent document
messagestringConfirmation message

knowledge_list_connectors

Список всех connectors для a knowledge base, showing sync status, type, и document counts

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base to list connectors for

Выходные данные

ПараметрТипОписание
knowledgeBaseIdstringID of the knowledge base
connectorsarrayМассив 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

Получить detailed connector information including recent sync logs для monitoring sync health

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base the connector belongs to
connectorIdstringДаID of the connector to retrieve

Выходные данные

ПараметрТипОписание
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 для a knowledge base connector

Входные параметры

ПараметрТипОбязательныйОписание
knowledgeBaseIdstringДаID of the knowledge base the connector belongs to
connectorIdstringДаID of the connector to trigger sync for

Выходные данные

ПараметрТипОписание
connectorIdstringID of the connector that was synced
messagestringStatus message from the sync trigger

On this page

Начните создавать сегодня
Нам доверяют более 100 000 разработчиков.
SaaS-платформа для создания AI-агентов и управления агентным workforce.
Начать