Member Junction
    Preparing search index...
    • What the baseline found for one request: the best-ranked candidate, floor or not, and the best-ranked candidate that passes the floor, which is the first row the action returns. A result that is not a candidate (an agent the user may not run, one that cannot be discovered directly, or the conversation manager) is skipped, through RankOptionsBySearch.

      Parameters

      • results: readonly EntitySearchResult[]

        The search's results, best first.

      • candidates: readonly DiscoveryBaselineAgent[]

        The agents the action may list.

      • topK: number = FIND_CANDIDATE_AGENTS_TOP_K

        How many results the search was asked for.

      • floor: number = FIND_CANDIDATE_AGENTS_MIN_SIMILARITY

        The similarity floor.

      Returns {
          Floor: number;
          Results: number;
          TopK: number;
          TopMatch:
              | {
                  AgentId: string;
                  AgentName: string
                  | null;
                  Lexical: number | null;
                  PassesFloor: boolean;
                  Rank: number;
                  Score: number;
                  Semantic: number | null;
              }
              | null;
          TopRanked: | {
              AgentId: string;
              AgentName: string
              | null;
              Lexical: number | null;
              PassesFloor: boolean;
              Rank: number;
              Score: number;
              Semantic: number | null;
          }
          | null;
      }

      • Floor: number

        The action's similarity floor.

      • Results: number

        How many it returned.

      • TopK: number

        How many results the search was asked for.

      • TopMatch:
            | {
                AgentId: string;
                AgentName: string
                | null;
                Lexical: number | null;
                PassesFloor: boolean;
                Rank: number;
                Score: number;
                Semantic: number | null;
            }
            | null

        The best-ranked candidate that passes the floor: the first row the action returns, or null when it returns none.

      • TopRanked:
            | {
                AgentId: string;
                AgentName: string
                | null;
                Lexical: number | null;
                PassesFloor: boolean;
                Rank: number;
                Score: number;
                Semantic: number | null;
            }
            | null

        The best-ranked candidate, floor or not, or null when the search returned none.