Documentation
¶
Overview ¶
Package ingest orchestrates multi-source content ingestion into knowledge base topics, handling frontmatter assembly, raw file writes, and operation log entries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistingYouTubeVideoIDs ¶ added in v0.0.10
ExistingYouTubeVideoIDs returns the set of YouTube video IDs already ingested under the topic's raw/youtube directory. It powers resumable channel ingestion by reading each raw document's video_id frontmatter field and the id embedded in its source_url. A missing raw/youtube directory yields an empty set.
Types ¶
type Options ¶
type Options struct {
VaultPath string
Topic string
SourceKind models.SourceKind
SourcePath string
SourceURL string
Title string
Markdown string
ExtraFrontmatter map[string]any
ConvertOptions map[string]any
Registry Registry
ScrapedAt time.Time
}
Options configures a single-source ingest run.
type Registry ¶
type Registry interface {
Convert(ctx context.Context, input models.ConvertInput) (*models.ConvertResult, error)
}
Registry converts file-backed inputs into markdown content.
Click to show internal directories.
Click to hide internal directories.