Skip to content

API Reference parrot.loaders.obsidian.loader

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.loaders.obsidian.loader

View source

ObsidianVaultLoader — Phase-1 raw vault ingest into PageIndex (FEAT-392).

Two entry points:

  • :class:ObsidianVaultLoader — the FEAT-392 orchestration class: discover() parses the vault through the shared interface, ingest() stores one PageIndex node per note (no LLM required) and registers every file in :class:SourceCollectionManager; incremental_update() re-ingests only changed files and prunes deleted ones (local backend only — staleness is hash+mtime based).
  • :class:ObsidianLoader — a thin :class:AbstractLoader adapter that yields one :class:Document per note with canonical metadata, so a vault can also feed the generic RAG loader pipeline.

Alias AbstractLoader

Re-exported from parrot.loaders.abstract.AbstractLoader.

Alias CANVAS_SUFFIX

Re-exported from parrot.interfaces.obsidian.CANVAS_SUFFIX.

Alias Document

Re-exported from parrot.stores.models.Document.

Alias LocalVaultBackend

Re-exported from parrot.interfaces.obsidian.LocalVaultBackend.

Alias NOTE_SUFFIX

Re-exported from parrot.interfaces.obsidian.NOTE_SUFFIX.

Alias ObsidianCanvas

Re-exported from parrot.interfaces.obsidian.ObsidianCanvas.

Class ObsidianLoader

AbstractLoader adapter: one :class:Document per Obsidian note.

Enables the generic loader pipeline (chunking, vector stores) over a vault. Obsidian-specific extras (tags, aliases, links, dataview queries) go top-level in the metadata — the canonical document_meta sub-dict stays closed per the metadata contract.

Parameter Type Default Description
source Any None
**kwargs Any {}

Attributes:

Attribute Type Description
extensions list[str]

Alias ObsidianNote

Re-exported from parrot.interfaces.obsidian.ObsidianNote.

Alias ObsidianVaultInterface

Re-exported from parrot.interfaces.obsidian.ObsidianVaultInterface.

Class ObsidianVaultLoader

Parse and ingest Obsidian vault directories into PageIndex.

Parameter Type Default Description
vault ObsidianVaultInterface | str | Path A prebuilt vault backend, or a vault directory path (auto-wrapped in :class:LocalVaultBackend).

Method ObsidianVaultLoader.discover

Scan the vault and parse all notes and canvas files.

discover() -> tuple[list[ObsidianNote], list[ObsidianCanvas]]

Returns: tuple[list[ObsidianNote], list[ObsidianCanvas]] — (notes, canvases) — unreadable files are skipped with a logged warning (never raises for individual files).

Method ObsidianVaultLoader.ingest

Full vault ingest into PageIndex (no LLM).

One PageIndex node per note (aliases/tags/dataview queries in the node metadata); every source file registered with the :class:SourceCollectionManager for staleness tracking.

ingest(pageindex_toolkit: Any, tree_name: str, source_manager: Any, config: Optional[VaultIngestConfig] = None) -> VaultIngestReport

Parameter Type Default Description
pageindex_toolkit Any PageIndexToolkit storage target.
tree_name str PageIndex tree to ingest into (created if missing).
source_manager Any SourceCollectionManager for the wiki.
config Optional[VaultIngestConfig] None Optional ingest configuration (concurrency, skip patterns, embed depth limit).

Returns: VaultIngestReport — class:VaultIngestReport for phase "raw_ingest".

Method ObsidianVaultLoader.incremental_update

Detect changed/new/deleted files and update PageIndex.

Local backend only: staleness detection needs real filesystem paths (SHA-1 + mtime via SourceCollectionManager).

incremental_update(pageindex_toolkit: Any, tree_name: str, source_manager: Any, config: Optional[VaultIngestConfig] = None) -> VaultIngestReport

Parameter Type Default Description
pageindex_toolkit Any PageIndexToolkit storage target.
tree_name str PageIndex tree to update.
source_manager Any SourceCollectionManager with the previous ingest's manifest.
config Optional[VaultIngestConfig] None Optional ingest configuration.

Returns: VaultIngestReport — class:VaultIngestReport with added/updated/deleted counts.

Raises:

  • NotImplementedError — For non-filesystem backends (REST).

Alias VaultIndex

Re-exported from parrot.interfaces.obsidian.VaultIndex.

Alias VaultIngestConfig

Re-exported from parrot.interfaces.obsidian.VaultIngestConfig.

Alias VaultIngestReport

Re-exported from parrot.interfaces.obsidian.VaultIngestReport.

Attribute logger

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally