Issue with Tree Traversal Mode in RAPTOR using Azure AI Search #14486
Replies: 1 comment
-
The issue seems to be related to the retrieval process at level 0 in the Here are some steps to help resolve this issue:
For more details, you can refer to the example provided in the LlamaIndex documentation for setting up and using RAPTOR with the |
Beta Was this translation helpful? Give feedback.
-
I'm using RAPTOR with llama-index and Azure AI Search as the vector database. The tree_traversal retrieval mode fails to return nodes at level 0, resulting in no final nodes being retrieved. This happens across varied test sets.
Setup:
Model: gpt-4
Embedding Model: text-embedding-ada-002
Vector Database: Azure AI Search
Code Snippet: `raptor_pack = RaptorPack(
documents,
embed_model=OpenAIEmbedding(model="text-embedding-ada-002"),
llm=OpenAI(model="gpt-4", temperature=0.1),
vector_store=vector_store, # Azure AI Search
similarity_top_k=2,
mode="tree_traversal",
transformations=[SentenceSplitter(chunk_size=800, chunk_overlap=200)],
verbose=True
)
nodes = raptor_pack.run("What baselines is raptor compared against?", mode="tree_traversal")
print(len(nodes))
print(nodes[0].text if nodes else "No nodes retrieved")
` Issue:
Nodes are inserted correctly at each level.
Retrieval fails at level 0 with no parent IDs retrieved. Logs:
Starting retrieval at level 2 Retrieved parent IDs from level 2: ['id1', 'id2'] Starting retrieval at level 1 Retrieved parent IDs from level 1: ['id3', 'id4'] Starting retrieval at level 0 Retrieved parent IDs from level 0: [] No parent IDs retrieved at level 0 Final nodes retrieved: []
Could you please provide any insights or suggestions for resolving this issue?Beta Was this translation helpful? Give feedback.
All reactions