// rag · VectifyAI/OpenKB

OpenKB

OpenKB compiles your documents into a persistent, interlinked wiki knowledge base — no vector DB

★ 4.8k stars⑂ 495 forksApache-2.0updated 2026-07
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

OpenKB is an open-source rag & knowledge project by VectifyAI (VectifyAI/OpenKB on GitHub). It has 4,759 GitHub stars and 495 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 22 July 2026.

GitHub stars
4,759
Forks
495
License
Apache-2.0
Last updated on GitHub
22 July 2026
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Gather your documents

    Collect the papers, docs, or URLs you want compiled into one knowledge base.

  2. Install and initialize

    Install OpenKB from PyPI, create a folder, and run the init command, choosing your LLM model.

  3. Add documents

    Add files, a whole directory, or a URL; OpenKB compiles them into wiki pages with cross-links.

  4. Query and chat

    Ask questions with cited answers, chat interactively, or generate outputs like skills and slide decks.

// features

Why people love it

Compiled wiki, not chunk RAG

Documents become summary, concept, and entity pages with cross-references that accumulate over time; contradictions get flagged.

Vectorless long-document retrieval

PageIndex tree indexing handles long PDFs by reasoning over a hierarchical index — no vector database required.

Broad format support

PDF, Word, Markdown, PowerPoint, HTML, Excel, CSV, text, and URLs, with native handling of figures, tables, and images.

Query and chat with sessions

One-off cited answers or multi-turn chat over the wiki, with persisted sessions you can resume.

Skill Factory and generators

Distill redistributable agent skills from the wiki, visualize an interactive knowledge graph, or generate single-file HTML slide decks.

Obsidian-compatible and OKF-ready

The wiki is plain Markdown with wikilinks that opens in Obsidian, and pages follow Google's Open Knowledge Format specification.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Clone for a source install, or simply install from PyPI in the next step.

    git clone https://github.com/VectifyAI/OpenKB.git
    cd OpenKB
  2. Install OpenKB

    Install the package (or `pip install -e .` from the clone for development).

    pip install openkb
  3. Initialize and query

    Create a knowledge base, add a document, and ask your first question (set your LLM API key in .env first).

    openkb init
    openkb add paper.pdf
    openkb query "What are the main findings?"
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains OpenKB?

VectifyAI, the team behind PageIndex; OpenKB is powered by PageIndex's open-source vectorless retrieval.

Is OpenKB free?

Yes, it is Apache-2.0 licensed. You pay only for the LLM API usage of the provider you configure (OpenAI, Claude, Gemini, and others via LiteLLM); some subscription providers can authenticate via OAuth instead of a key.

Does it need a paid API key?

It needs an LLM — usually your own API key set in .env. PageIndex runs locally by default; the optional PageIndex Cloud features need a separate key.

How does it compare to traditional RAG tools?

RAG rediscovers knowledge from chunks on every query and nothing accumulates. OpenKB compiles knowledge once into a persistent wiki with cross-references already built, then keeps it current as documents are added.

How do I get started?

Run `pip install openkb`, then `openkb init` in a fresh folder, `openkb add <file>`, and `openkb query` or `openkb chat`.

// keep exploring

Similar tools

RAG & Knowledge

llm-wiki-agent

A personal knowledge base that builds itself — drop in sources, get a persistent interlinked wiki.

★ 3.6k starsMIT
View guide →
RAG & Knowledge

wenlan

Agent-fed knowledge base that distills learnings into cited wiki pages.

★ 79 starsApache-2.0
View guide →
RAG & Knowledge

WeKnora

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

★ 31.9k starsUnknown
View guide →
RAG & Knowledge

Starcat

Turn your GitHub stars into a searchable AI knowledge base.

★ 184 starsMIT
View guide →
RAG & Knowledge

FastGPT

A knowledge-base platform with visual AI workflows — build Q&A systems on your own documents

★ 29.8k starsNOASSERTION
View guide →
RAG & Knowledge

autoflow

Graph RAG conversational knowledge base built on TiDB Serverless vector storage

★ 3.0k starsApache-2.0
View guide →
// alternatives

Alternatives in RAG & Knowledge

The most-starred other RAG & Knowledge projects in the LibreAI catalogue — the realistic shortlist if OpenKB is not the right fit.

Get OpenKB

Free and open — grab the source, star the repo, and start creating.