altra's profile picture
altra

knowledge

Public

A personal knowledge base: ingest notes and URLs, build a linked concept graph, synthesize ideas across sessions, and review with spaced repetition.

299 Downloads

2 stars

README

Knowledge Plugin for LM Studio — Private Personal Knowledge Base

A personal knowledge architect that runs entirely locally. Ingest notes and articles, build a concept graph across sessions, and synthesize what you've captured into coherent understanding — with complete privacy, no cloud sync, and no external services.

Keywords: lm studio plugin, personal knowledge base, local note taking ai, concept graph, offline knowledge management, private notes ai, no cloud

Not a note-taking app. Not RAG. A knowledge architect that forces you to organize what you learn and tells you what you still don't know.


Who This Is For

  • Knowledge workers and researchers who want a private, local AI layer over their personal notes without any cloud dependency
  • Learners building a second brain who want LM Studio to help synthesize connections across topics offline
  • Privacy-conscious users who need note ingestion and concept mapping without their data leaving their machine
  • Anyone who wants to ask "what do I know about X?" and get a structured synthesis from their own captured knowledge

What It Does

  • Ingests text and URLs — save notes directly or fetch any URL and extract its text
  • Builds a concept graph — link notes to named concepts (themes, frameworks, people, topics)
  • Full-text search — find notes by keyword across title, content, source, and tags
  • Synthesizes on demand — loads all notes on a concept and prompts the LLM to surface themes, contradictions, and gaps
  • Weekly review — surfaces recent additions, orphan notes, empty concepts, and what to organize next

Installation

cd knowledge-plugin
npm install
npm run build

Load the built plugin folder in LM Studio.


Configuration

FieldDefaultDescription
Data Path~/knowledge-data/SQLite database location

How the Knowledge Graph Works

Notes ──── linked to ────► Concepts
 │                            │
 │  (many-to-many)            │
 └──────────────────────────── ┘

Notes are raw material — text from any source. Each note has a title, content, source, and tags.

Concepts are the organizing nodes — named themes, frameworks, people, or questions you return to. A concept grows as you link more notes to it.

Synthesis is the output — when you ask "what do I know about X?", the plugin loads all notes linked to that concept and produces a structured synthesis: core thesis, recurring themes, contradictions, gaps.


Tools

Note Management

ToolKindWhat it does
ingest_noteStore-writeSave a note with title, content, source, and tags
ingest_urlEffect + Store-writeFetch a URL, extract text, save as a note
update_noteStore-writeUpdate fields on an existing note by ID
delete_noteStore-writePermanently delete a note and its concept links
get_noteStore-readGet full note content with linked concepts
list_notesStore-readList notes filtered by tag or date
search_notesStore-readFull-text search across all notes

Concept Graph

ToolKindWhat it does
upsert_conceptStore-writeCreate or update a concept by name
link_note_to_conceptStore-writeAssociate a note with a concept
unlink_note_from_conceptStore-writeRemove a note-concept association
get_conceptStore-readGet a concept with all its linked notes
list_conceptsStore-readList all concepts sorted by note count

Synthesis & Review

ToolKindWhat it does
generate_synthesisScaffoldLoad notes on a concept or topic and return a synthesis prompt payload
knowledge_reviewStore-readSurface recent notes, orphans, empty concepts, and next steps

Example Sessions

Saving an idea:

"Save this: the key insight from Thinking Fast and Slow is that System 2 is lazy — it defaults to System 1 whenever possible"

ingest_note(title="System 2 laziness — Kahneman", content="...", source="Thinking Fast and Slow", tags=["cognition", "decision-making"])

Ingesting an article:

"Ingest this article: https://example.com/article"

ingest_url(url="...", tags=["AI", "research"]) → saves page text as a note

Organizing notes:

"I have 5 notes on cognitive biases. Create a concept and link them."

upsert_concept(name="Cognitive Biases", description="Systematic errors in human judgment") → link_note_to_concept × 5

Synthesizing:

"What do I know about cognitive biases?"

get_concept(name="Cognitive Biases") → generate_synthesis(conceptName="Cognitive Biases", focusQuestion="What patterns emerge across these notes?") → structured synthesis

Weekly review:

"What's been added this week?"

knowledge_review(daysSince=7) → shows recent notes, orphans, and what to link or synthesize


Data

~/knowledge-data/
  knowledge.db     ← SQLite: notes, concepts, note_concepts, notes_fts (full-text search)

All data is local. Nothing leaves your machine.

💚 Support Development

This plugin is free and open source. If you find it useful, consider supporting development:

Ko-fi
TierAmountPerks
☕ Coffee$3Name in credits
🍔 Lunch$10+ Priority support
🍕 Pizza$25+ Name in README
🏆 Founding$50+ Lifetime support, consultation

Every coffee helps keep this project alive! ☕