Skip to content

Knowledge Base

The knowledge base stores ingested documents — markdown files, text files, web pages — chunked and indexed for retrieval. Unlike facts (which are structured, extracted knowledge), knowledge is raw reference material.

Because Moneypenny exposes its full API via MCP (Model Context Protocol), you can manage your knowledge base through natural language in any MCP-compatible client (Claude Desktop, Cursor, etc.) — or through the CLI.

Ingesting Documents

From a Local File

Terminal window
mp ingest path/to/document.md
mp ingest path/to/directory/

From a URL

Terminal window
mp ingest --url "https://example.com/docs/architecture"

What Happens During Ingestion

  1. The document is read (or fetched)
  2. Content is split into chunks (section-aware for markdown)
  3. Each chunk is stored in the chunks table with FTS5 indexing
  4. A documents entry tracks metadata: title, source path, chunk count

If embeddings are configured, chunks are also vectorized for KNN search.

Listing Documents

Terminal window
mp knowledge list

Shows each document with its title, source, and chunk count.

Searching Knowledge

Terminal window
mp knowledge search "deployment pipeline"
mp knowledge search "security policy"

Knowledge search uses FTS5 full-text matching. When combined with the unified search system (mp facts search), results from knowledge, facts, messages, and tool calls are fused together.

Knowledge vs. Facts

KnowledgeFacts
SourceIngested documentsExtracted from conversations or added manually
FormatRaw text chunksStructured (content, summary, pointer)
CompressionNoneThree levels (full, summary, pointer)
VersioningNoneVersioned with audit trail
ScopeAgent-localPrivate, shared, or protected
SyncDoes not syncSyncs via CRDT

Both are searchable through the same hybrid retrieval system and both contribute to context assembly during agent turns.