Find answers from the community

a
aejoaj
Offline, last seen 6 months ago
Joined September 25, 2024
a
aejoaj
·

New nodes

BUG!
reference: (https://gpt-index.readthedocs.io/en/latest/how_to/query/second_stage.html#using-as-independent-module-lower-level-usage),
when new_nodes is empty,response is emtpy.
Plain Text
    list_index = GPTListIndex(
        new_nodes,
        service_context=service_context
    )
    query_engine = list_index.as_query_engine(
        similarity_top_k=1, response_mode="compact",
        text_qa_template=TEXT_QA_TEMPLATE,
        refine_template=REFINE_TEMPLATE
    )
    response = query_engine.query(query_str)
    print(response)
8 comments
L
a