semanticSearchFiles

Search files by vector. Requires project.knowledge.read.

Arguments

  • inputSemanticSearchFilesInput!required

  • input.modelSemanticSearchModelInput

  • input.queryVector[Float!]!required

    Pre-computed query vector (embedding of the search query), generated with an embedding provider

  • input.dimensionEmbeddingDimension!required

    Embedding dimension (must match queryVector length) One of D768, D1024, D1536, D3072, D4096.

  • input.modeSemanticSearchMode

    Search mode. Only SEMANTIC (the default) is supported; KEYWORD and HYBRID are refused with VALIDATION_FAILED One of SEMANTIC, KEYWORD, HYBRID.

  • input.environmentSearchEnvironment

    Search environment One of PREVIEW, PRODUCTION, RELEASE.

  • input.branchIdID

    Branch ID for PREVIEW environment

  • input.releaseIdID

    Release ID for RELEASE environment

  • input.releaseVersionString

    Release version for RELEASE environment

  • input.limitInt

    Maximum results

  • input.cursorString

    Pagination cursor

  • input.optionsSemanticSearchOptions

    Search 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.