RAGNotebook

Notes written once and never revisited scatter into islands, so this notebook links them into a knowledge graph, answers questions with sources, completes sentences as you type, and quizzes you on a schedule. Saving a note asks an LLM for tags and a category and adds its entities and relations to the graph. The graph canvas lets you search entities, filter by type, and follow relations between notes and documents. Search blends vector and full-text matching across notes and uploaded TXT, PDF, Markdown, PPTX, and DOCX files, and a chunk viewer shows how files were split. Chat plans its retrieval, expands evidence along graph edges, optionally falls back to web search, and ends answers with source lines naming the graph entities and notes used. Typing pauses trigger inline completions that Tab accepts, continue, expand, and summarize actions stream into the editor, and related notes and document passages surface beside it. A daily review queue brings notes back after 1, 2, 4, 7, 15, and 30 days, paired with LLM-written multiple-choice questions. The chat agent can also search notes, create notes, and show what is due for review. DeepSeek, Qwen, Zhipu, Moonshot, or local Ollama can supply the models, with an optional cloud reranker. JWT sign-in keeps every user's notes private, and the app runs in English or Chinese. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

RAGNotebook
RAGNotebook
RAGNotebook
RAGNotebook
RAGNotebook
RAGNotebook

Benefits

  • Notes Wire Themselves Into A Graph
  • Saving a note sends it to an LLM that tags and files it and extracts entities and relations into a Neo4j graph you can browse on a canvas.
  • Answers Cite Graph And Note Sources
  • Chat retrieval plans its search, expands evidence along graph edges, merges notes with uploaded documents, and ends each answer with source lines naming the graph entities and notes it used.
  • Review Schedule Fights Forgetting
  • Notes return for review after 1, 2, 4, 7, 15, and 30 days, and an LLM writes a four-option multiple-choice question from each note's content.
  • Any OpenAI-Compatible Model Works
  • Chat, vision, and embedding models are set through environment variables, so DeepSeek, Alibaba Bailian, Zhipu, Moonshot, or local Ollama can be swapped in, with an optional cloud reranker.

Features

  • Hybrid Notes And Document Search
  • Neo4j vector and full-text indexes merge through reciprocal rank fusion, so one query recalls notes and uploaded TXT, PDF, Markdown, PPTX, and DOCX files.
  • Inline AI Writing Assistant
  • Tiptap editor completions appear after a typing pause and Tab accepts them; continue, expand, and summarize actions stream over server-sent events.
  • Graph Canvas Explorer
  • Entities and relations extracted by the LLM render on an interactive canvas with entity search and a type filter, and retrieval expands evidence along the same edges.
  • Agent Tools In Chat
  • The chat agent can search notes, create notes, and show due reviews on request, using LangChain tools alongside graph retrieval and optional Tavily web search.
  • Five-Container Compose Stack
  • docker compose up -d --build starts the React frontend on port 3000, the API with Swagger docs on 8000, MySQL, Redis, and Neo4j, with data in Docker volumes.
  • English And Chinese Interface
  • The i18next frontend switches between English and Chinese, and JWT sign-in with per-user isolation keeps each person's notes and knowledge base private.

Apps Similar to RAGNotebook