Find answers from the community

Updated 2 months ago

Split

Hi, I am trying to use CodeHierarchyLlamaPack to create nodes for this repo: https://github.com/real-stanford/diffusion_policy . I am trying to use all python files. It seems to be failing at:
Plain Text
 File "/Users/ig/Documents/llm_infra/llm_infra/lib/python3.11/site-packages/llama_index/packs/code_hierarchy/code_hierarchy.py", line 577, in _parse_nodes
    new_split_nodes[0].id_ = original_node.id_
    ~~~~~~~~~~~~~~~^^^
IndexError: list index out of range


I tried for some other repos where it seems to work well.
L
1 comment
Probably some files are producing no nodes? Would be a simple fix in the code to check the length there
Add a reply
Sign up and join the conversation on Discord