Dust · Arazzo Workflow
Dust Upsert a Document and Search the Data Source
Version 1.0.0
Upsert a document into a data source, wait for the upsert queue to drain, then search for it.
View Spec
View on GitHub
AgentsAIArtificial IntelligenceCustom WorkflowsData SourcesDustEnterprise AIKnowledge ManagementLLMMCPMulti-ModelRAGArazzoWorkflows
Provider
Workflows
upsert-document-and-search
Upsert a document, wait for indexing, and search the data source.
Upserts a single text document into a data source, polls the upsert queue until it is empty, and then issues a search query against the data source.
1
upsertDocument
{$sourceDescriptions.datasourcesApi.url}#/paths/~1api~1v1~1w~1{wId}~1spaces~1{spaceId}~1data_sources~1{dsId}~1documents~1{documentId}/post
Upsert the document into the data source synchronously so it is queued for indexing.
2
checkQueue
{$sourceDescriptions.datasourcesApi.url}#/paths/~1api~1v1~1w~1{wId}~1spaces~1{spaceId}~1data_sources~1{dsId}~1check_upsert_queue/get
Check how many upsert workflows are still running for this data source. Continue polling while any are running, otherwise proceed to search.
3
searchDataSource
{$sourceDescriptions.datasourcesApi.url}#/paths/~1api~1v1~1w~1{wId}~1spaces~1{spaceId}~1data_sources~1{dsId}~1search/get
Run a semantic search against the data source to confirm the upserted document is retrievable.