Skip to content

[Question]: Passing node_dict to the retriever of the RecursiveRetriever building block reference is time-consuming #19797

@hingkan

Description

@hingkan

Question Validation

  • I have searched both the documentation and discord for an answer.

Question

When using the RecursiveRetriever building block reference retrieval, the node_dict passed can be very time-consuming when the index is large
vector_retriever_chunk = index.as_retriever(**vir_args) all_nodes = index.docstore.docs.values() all_nodes_dict = {n.node_id: n for n in all_nodes} retriever_chunk = RecursiveRetriever( "vector", retriever_dict={"vector": vector_retriever_chunk}, node_dict=all_nodes_dict, verbose=True, )
Among them, index is loaded from the local index using load_index_from_storage(storage_context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions