Skip to main content

build_context

Function
This function is defined in the rag module.
Build context string from chunks.

Signature

def build_context(chunks: &[ContextChunk]) -> String

Parameters

chunks
&
required
No description available.

Returns

Returns
String
The result of the operation.

Uses

  • enumerate
  • join

Source

View on GitHub

praisonai/src/rag/mod.rs at line 598