Briyah SDK - v2.0.18
    Preparing search index...

    Function embeddingInput

    • The text to embed for a chunk: the passage with where it came from in front.

      A query like "the Acme contract's termination clause" should find the termination clause in the Acme contract. The passage alone often never names either, so the document's name and the chunk's headings are embedded with it. The stored text stays the bare passage, so nothing is repeated to a reader.

      Parameters

      Returns string