Skip to content

The best LlamaIndex alternatives

8 tools that do a similar job to LlamaIndex, 8 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.

You're replacing

LlamaIndex

Python framework for building LLM apps that query your own documents and data.

  1. 1

    LangChain

    Open source · MIT · ★ 149k

    A Python framework for building AI agents and apps powered by language models.

    Best for: Python developers building LLM-powered applications; Teams that want to switch between model providers without rewriting code

  2. 2

    LangGraph

    Open source · MIT · ★ 44.3k

    A Python framework for building long-running agents that keep state and can resume after failures.

    Best for: Python developers building multi-step AI agents that must survive failures or long waits; Teams that want fine-grained control over agent state and execution flow

  3. 3

    PageIndex

    Open source · MIT · ★ 40k

    Lets an AI find answers in long documents by reading a table-of-contents-style tree, not vector search.

    Best for: Developers building question-answering over long PDFs such as annual reports or manuals; Teams who want retrieved answers to be traceable to explicit sections of a document

  4. 4

    OpenAI Agents SDK

    Open source · MIT · ★ 30.5k

    A Python SDK for building AI agents that use tools, hand off tasks, and keep conversation history.

    Best for: Python developers building multi-step AI workflows; Teams that want agents to call tools and delegate work to other agents

  5. 5

    LightRAG

    Open source · MIT · ★ 40.5k

    A Python library that builds a knowledge graph from your documents to answer questions with an LLM.

    Best for: Developers building question-answering over their own document collections; Teams who want a graph-based alternative to plain vector-search RAG

  6. 6

    GraphRAG

    Open source · MIT · ★ 36.5k

    Python pipeline that uses an LLM to turn raw text into a graph for answering questions over private documents.

    Best for: Researchers exploring graph-based retrieval over narrative or private text; Developers who want to experiment with LLM-built knowledge graphs from their own documents

  7. 7

    LEANN

    Open source · MIT · ★ 13.8k

    Local semantic search over your own files and chats, using far less storage than typical vector databases.

    Best for: Developers building a private RAG prototype on a personal machine; People who want to semantically search their own files or notes locally

  8. 8

    ScrapeGraphAI

    Open source · MIT · ★ 32.4k

    Python library that uses an LLM to scrape websites and local documents based on a plain-language prompt.

    Best for: Developers who want to extract structured data from web pages using a plain-language prompt; Data teams prototyping scrapers for pages with changing layouts

How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to LlamaIndex. We don't take payment for placement.