langchain.js
    Preparing search index...

    Function formatDocumentsAsString

    • Given a list of documents, this util formats their contents into a string, separated by newlines.

      Parameters

      • documents: Document[]

      Returns string

      A string of the documents page content, separated by newlines.