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

    Type Alias RagInputType

    RAG (Retrieval-Augmented Generation) tool input configuration. Used for semantic search and document retrieval operations.

    Note: The query field is auto-generated based on the search profile and does not need to be provided by the user. Note: documentMatchThreshold is now part of SearchTypeConfig for semantic/hybrid types.

    type RagInputType = {
        fields?: (ValueLabelType | Record<"sys_dictionary">)[];
        searchProfile: ValueLabelType | Record<"ais_search_profile">;
        searchResultsLimit?: number;
        searchType: SearchTypeConfig;
        sources?: (ValueLabelType | Record<"sys_db_object">)[];
    }
    Index

    Properties

    fields?: (ValueLabelType | Record<"sys_dictionary">)[]

    Optional: Specific fields to return - must be ValueLabelType objects or Record references

    searchProfile: ValueLabelType | Record<"ais_search_profile">

    Search profile - must be ValueLabelType object with value and label, or Record reference

    searchResultsLimit?: number

    Optional: Maximum number of search results to return (default: 10)

    searchType: SearchTypeConfig

    Search type configuration — determines whether semantic search records are created

    sources?: (ValueLabelType | Record<"sys_db_object">)[]

    Optional: Source tables to search - must be ValueLabelType objects or Record references