Spaces:
Running
Running
File size: 211 Bytes
74e8a7b | 1 2 3 4 5 6 7 8 | """
Build the numbered context string passed to the LLM from retrieved chunks.
"""
def build_context(documents: list[str]) -> str:
return "\n\n".join(f"[{i + 1}] {doc}" for i, doc in enumerate(documents))
|