VectifyAI/PageIndex
Vectorless RAG: builds a tree index of a document, LLM reasons over it
What
"Vectorless" RAG: builds a table-of-contents style tree of a long document, then an LLM navigates the tree to find answers instead of using embeddings.
How to use
# pip install -U pageindex (needs an LLM API key, e.g. OPENAI_API_KEY)
from pageindex import PageIndexClient
client = PageIndexClient(index="<model>", chat="<model>")
doc_id = client.submit_document("report.pdf")["doc_id"]
print(client.chat("What was the 2023 operating margin?", doc_id=doc_id))Reach for it when
long structured docs (financial reports, manuals) where chunk+embed retrieval misses context.