def build_context(top_chunks): return "\n\n".join( [chunk["text"][:500] for chunk in top_chunks] )