formatLLM
formatLLM(
nodes):string
Defined in: packages/core/src/utils/index.ts:107
Formats an array of NodeWithScore objects into a string suitable for LLM consumption. Extracts content from each node using MetadataMode.LLM and joins them with newlines.
Parameters
Section titled “Parameters”Array of nodes with scores from a retriever
Returns
Section titled “Returns”string
Joined content string, or empty string if no nodes