@servicenow/sdk - v4.7.0
    Preparing search index...

    Type Alias SearchTypeConfig

    SearchTypeConfig:
        | { type: "keyword" }
        | {
            documentMatchThreshold?: number;
            semanticIndexes: (string | ValueLabelType | Record<"ais_dictionary">)[];
            type: "semantic" | "hybrid";
        }

    Search type configuration for RAG tools.

    • type: 'keyword' — Simple text matching, no semantic search configuration records created
    • type: 'semantic' — Semantic search, creates records in ais_semantic_search_configuration and M2M tables
    • type: 'hybrid' — Hybrid search, creates records in ais_semantic_search_configuration and M2M tables

    Type Declaration

    • { type: "keyword" }
      • type: "keyword"

        Keyword search — no additional semantic configuration needed

    • {
          documentMatchThreshold?: number;
          semanticIndexes: (string | ValueLabelType | Record<"ais_dictionary">)[];
          type: "semantic" | "hybrid";
      }
      • OptionaldocumentMatchThreshold?: number

        Optional: Document matching threshold (0-1, where 0 = no threshold)

      • semanticIndexes: (string | ValueLabelType | Record<"ais_dictionary">)[]

        Semantic index field names to search within - can be field names, ValueLabelType objects, or Record references

      • type: "semantic" | "hybrid"

        Semantic or hybrid search — requires semantic indexes