Skip to content

deep_research_setup_cmd

diapason.cli.deep_research_setup_cmd

diapason deep-research-setup — auto-detect local sources, ingest, and chat.

Walks the user through connecting local data sources (Apple Notes, iMessage, Obsidian), ingesting them into a shared KnowledgeStore, and launching an interactive Deep Research chat session with Qwen3.5 via Ollama.

deep_research_setup(obsidian_vault, skip_chat)

Auto-detect local data sources, ingest, and launch Deep Research chat.

detect_local_sources(*, notes_db_path=None, imessage_db_path=None, obsidian_vault_path=None)

Return a list of available local sources with their config.

Each entry is a dict with keys: connector_id, display_name, config (kwargs for the connector constructor).

detect_token_sources(*, connectors_dir=None)

Return token-based sources that already have valid credentials.

ingest_sources(sources, store, *, state_db='')

Connect and ingest all sources into the KnowledgeStore.

Parameters

state_db: Path for the SyncEngine checkpoint database. Defaults to ~/.diapason/sync_state.db when empty.

Returns

int Total chunks indexed across all sources.