Kizuki
    Preparing search index...

    Function findQuote

    • Finds which passage a quote comes from. Checks the passage the model cited first, then the other passages it was given. Returns the id of the passage that holds the quote, or null if none does.

      Parameters

      • quote: string
      • citedPassageId: string | undefined
      • passages: { passageId: string; text: string }[]

      Returns string | null