internal/

directory
v0.11.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: MIT

Directories

Path Synopsis
Package anthropic provides a direct-HTTP adapter for the Anthropic Messages API (POST {base}/v1/messages).
Package anthropic provides a direct-HTTP adapter for the Anthropic Messages API (POST {base}/v1/messages).
Package avutil isolates audio/video media handling behind a small surface so the rest of the codebase does not depend on the ffmpeg/ffprobe binaries directly.
Package avutil isolates audio/video media handling behind a small surface so the rest of the codebase does not depend on the ffmpeg/ffprobe binaries directly.
Package cohere provides a minimal direct-HTTP adapter for the Cohere v2 API: Rerank (POST /v2/rerank), Embed (POST /v2/embed), and Chat (POST /v2/chat).
Package cohere provides a minimal direct-HTTP adapter for the Cohere v2 API: Rerank (POST /v2/rerank), Embed (POST /v2/embed), and Chat (POST /v2/chat).
Package colbertrerank is a pure-Go client for a self-hosted late-interaction / multi-vector (ColBERT-style) reranking endpoint (dir2mcp#337).
Package colbertrerank is a pure-Go client for a self-hosted late-interaction / multi-vector (ColBERT-style) reranking endpoint (dir2mcp#337).
Package corpusfs abstracts corpus discovery and media reads behind a small interface so callers (ingest scanning, multimodal embedding) work the same against a local filesystem (an NFS mount is just a local path) or a remote object store such as S3, without knowing which.
Package corpusfs abstracts corpus discovery and media reads behind a small interface so callers (ingest scanning, multimodal embedding) work the same against a local filesystem (an NFS mount is just a local path) or a remote object store such as S3, without knowing which.
Package embedqueue implements the optional distributed-embedding job queue (SPEC §8.7): a coordinator enqueues embedding jobs for pending chunks and one or more stateless embed-workers lease those jobs, read the referenced corpus bytes directly via CorpusFS (§7.10), embed via the configured provider, and write the resulting vectors + chunk status back to a shared store.
Package embedqueue implements the optional distributed-embedding job queue (SPEC §8.7): a coordinator enqueues embedding jobs for pending chunks and one or more stateless embed-workers lease those jobs, read the referenced corpus bytes directly via CorpusFS (§7.10), embed via the configured provider, and write the resulting vectors + chunk status back to a shared store.
Package gemini provides a direct-HTTP adapter for Google Gemini.
Package gemini provides a direct-HTTP adapter for Google Gemini.
Package identity derives a stable, unique server name for a dir2mcp instance from the absolute path of the directory it indexes.
Package identity derives a stable, unique server name for a dir2mcp instance from the absolute path of the directory it indexes.
diskindex
Package diskindex implements the Tier-B on-disk vector backend (issue #246).
Package diskindex implements the Tier-B on-disk vector backend (issue #246).
pgvectorindex
Package pgvectorindex implements the pluggable model.Index contract (issue #269) on top of PostgreSQL + the pgvector extension.
Package pgvectorindex implements the pluggable model.Index contract (issue #269) on top of PostgreSQL + the pgvector extension.
qdrantindex
Package qdrantindex implements the pluggable model.Index (issue #247) contract on top of a Qdrant collection (issue #268, epic #250).
Package qdrantindex implements the pluggable model.Index (issue #247) contract on top of a Qdrant collection (issue #268, epic #250).
topk
Package topk provides a bounded top-k selection heap shared by the local vector backends (internal/index.HNSWIndex and internal/index/diskindex).
Package topk provides a bounded top-k selection heap shared by the local vector backends (internal/index.HNSWIndex and internal/index/diskindex).
docling
Package docling parses the structured DoclingDocument JSON emitted by `docling --to json` and linearizes it into an ordered sequence of blocks that preserve reading order, the section-heading hierarchy, and per-element provenance (page + bounding box).
Package docling parses the structured DoclingDocument JSON emitted by `docling --to json` and linearizes it into an ordered sequence of blocks that preserve reading order, the section-heading hierarchy, and per-element provenance (page + bounding box).
Package langdetect provides a pure-Go, deterministic best-effort language detector used to record a representation's language (SPEC §8.8).
Package langdetect provides a pure-Go, deterministic best-effort language detector used to record a representation's language (SPEC §8.8).
Package latechunk implements the opt-in "late chunking" embedding path (issue #332, Jina's technique).
Package latechunk implements the opt-in "late chunking" embedding path (issue #332, Jina's technique).
Package netutil holds small, dependency-free networking helpers shared across packages that cannot import one another (e.g.
Package netutil holds small, dependency-free networking helpers shared across packages that cannot import one another (e.g.
Package omniembed is a pure-Go client for a self-hosted, unified multimodal embedding endpoint — the off-API multimodal path (dir2mcp#334), extending the self-hosted-endpoint capability (#240) and the GPU-VPS / dual-machine epic (#250) to multimodal embedding.
Package omniembed is a pure-Go client for a self-hosted, unified multimodal embedding endpoint — the off-API multimodal path (dir2mcp#334), extending the self-hosted-endpoint capability (#240) and the GPU-VPS / dual-machine epic (#250) to multimodal embedding.
Package openai provides a direct-HTTP adapter for the OpenAI-compatible API surface (POST {base}/embeddings, POST {base}/chat/completions).
Package openai provides a direct-HTTP adapter for the OpenAI-compatible API surface (POST {base}/embeddings, POST {base}/chat/completions).
Package pdfutil provides minimal, dependency-isolated PDF helpers for multimodal embedding (SPEC 8.1.7): counting pages and extracting a single page as its own PDF, so each page can be embedded directly with a precise page citation.
Package pdfutil provides minimal, dependency-isolated PDF helpers for multimodal embedding (SPEC 8.1.7): counting pages and extracting a single page as its own PDF, so each page can be embedded directly with a precise page citation.
Package promptfence fences untrusted corpus text inside a model prompt.
Package promptfence fences untrusted corpus text inside a model prompt.
Package promptrules holds the shipped RAG prompt rules whose exact text a server behaviour keys on, and the `${rag.*}` references that let an operator's rag.system_prompt point at a rule instead of copying it (#965).
Package promptrules holds the shipped RAG prompt rules whose exact text a server behaviour keys on, and the `${rag.*}` references that let an operator's rag.system_prompt point at a rule instead of copying it (#965).
Package provider implements the spec 0.7.0 provider model: the normative capability matrix (SPEC 8.1.2), per-capability provider selection (8.1.3), and the embeddings corpus-lifetime identity (8.1.4).
Package provider implements the spec 0.7.0 provider model: the normative capability matrix (SPEC 8.1.2), per-capability provider selection (8.1.3), and the embeddings corpus-lifetime identity (8.1.4).
Package providerfactory constructs concrete model.* adapters from a resolved provider.Profile (SPEC 0.7.0 / Design 0001).
Package providerfactory constructs concrete model.* adapters from a resolved provider.Profile (SPEC 0.7.0 / Design 0001).
Package providerhttp holds the one hardened HTTP path that every provider adapter uses.
Package providerhttp holds the one hardened HTTP path that every provider adapter uses.
Package quality provides reusable, content-only gates that detect degenerate or hallucinated STT/OCR/translation output before it is chunked and embedded.
Package quality provides reusable, content-only gates that detect degenerate or hallucinated STT/OCR/translation output before it is chunked and embedded.
Package relpath is the one rule for what a corpus-relative path may be.
Package relpath is the one rule for what a corpus-relative path may be.
Package scancache provides an optional, sqlite-backed directory-discovery cache for the corpusfs LocalFS walker (issue #267 item 5).
Package scancache provides an optional, sqlite-backed directory-discovery cache for the corpusfs LocalFS walker (issue #267 item 5).
Package secrets provides an OS keychain backend for provider credentials (SPEC §16.1.1: env → keychain → file → session).
Package secrets provides an OS keychain backend for provider credentials (SPEC §16.1.1: env → keychain → file → session).
Package setupwizard holds the provider-credential and corpus-profile logic behind `dir2mcp config init` and the `dir2mcp up` first-run flow (SPEC §§ config init / charmbracelet/huh).
Package setupwizard holds the provider-credential and corpus-profile logic behind `dir2mcp config init` and the `dir2mcp up` first-run flow (SPEC §§ config init / charmbracelet/huh).
Package statefs creates and repairs the local state hierarchy with owner-only permissions.
Package statefs creates and repairs the local state hierarchy with owner-only permissions.
Package subtitle renders WebVTT and SubRip (SRT) subtitle documents from a document's stored transcript chunks.
Package subtitle renders WebVTT and SubRip (SRT) subtitle documents from a document's stored transcript chunks.
Package tei is a pure-Go client for a self-hosted Hugging Face Text Embeddings Inference (TEI) server addressed on its NATIVE surface (SPEC 8.1.1 `kind: tei`, dir2mcp#565).
Package tei is a pure-Go client for a self-hosted Hugging Face Text Embeddings Inference (TEI) server addressed on its NATIVE surface (SPEC 8.1.1 `kind: tei`, dir2mcp#565).
Package usage provides per-query cost and latency observability primitives for dir2mcp (issue #327).
Package usage provides per-query cost and latency observability primitives for dir2mcp (issue #327).
Package whisperapi is a pure-Go client for a self-hosted, OpenAI-compatible speech-to-text endpoint — the GPU-VPS path (dir2mcp#240, epic #250).
Package whisperapi is a pure-Go client for a self-hosted, OpenAI-compatible speech-to-text endpoint — the GPU-VPS path (dir2mcp#240, epic #250).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL