MCPcopy
hub / github.com/VectifyAI/PageIndex / generate_summaries_for_structure

Function generate_summaries_for_structure

pageindex/utils.py:589–596  ·  view source on GitHub ↗
(structure, model=None)

Source from the content-addressed store, hash-verified

587
588
589async def generate_summaries_for_structure(structure, model=None):
590 nodes = structure_to_list(structure)
591 tasks = [generate_node_summary(node, model=model) for node in nodes]
592 summaries = await asyncio.gather(*tasks)
593
594 for node, summary in zip(nodes, summaries):
595 node['summary'] = summary
596 return structure
597
598
599def create_clean_structure_for_description(structure):

Callers 1

page_index_builderFunction · 0.85

Calls 2

structure_to_listFunction · 0.85
generate_node_summaryFunction · 0.85

Tested by

no test coverage detected