Search files by vector. Requires project.knowledge.read.
Arguments
inputSemanticSearchFilesInput!requiredinput.modelSemanticSearchModelInputinput.queryVector[Float!]!requiredPre-computed query vector (embedding of the search query), generated with an embedding provider
input.dimensionEmbeddingDimension!requiredEmbedding dimension (must match queryVector length) One of
D768,D1024,D1536,D3072,D4096.input.modeSemanticSearchModeSearch mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused with VALIDATION_FAILED One of
SEMANTIC,KEYWORD,HYBRID.input.environmentSearchEnvironmentSearch environment One of
PREVIEW,PRODUCTION,RELEASE.input.branchIdIDBranch ID for PREVIEW environment
input.releaseIdIDRelease ID for RELEASE environment
input.releaseVersionStringRelease version for RELEASE environment
input.limitIntMaximum results
input.cursorStringPagination cursor
input.optionsSemanticSearchOptionsSearch options
Responses
query SemanticSearchFiles($input: SemanticSearchFilesInput!) { semanticSearchFiles(input: $input) { pageInfo { hasNextPage hasPreviousPage startCursor endCursor } totalMatches searchTimeMs }}{ "data": { "semanticSearchFiles": { "pageInfo": { "hasNextPage": false, "hasPreviousPage": false, "startCursor": "string", "endCursor": "string" }, "totalMatches": 0, "searchTimeMs": 0 } }}The SemanticSearchFilesPayload! in data.semanticSearchFiles.