haiku.rag/haiku_rag_slim/haiku/rag/sources/__init__.py
Yiorgis Gozadinos ab19f78507
Move source adapters out of the ingester package
haiku.rag.ingester.sources was never ingester-only: one-shot client
ingestion resolves adapters through it (create_document_from_source), and
convert() now fetches through HTTPSource, so the core client imported into
the ingester package to reach them.

Move the package to haiku.rag.sources and update every import. No shims:
haiku.rag.ingester.sources is gone.

The haiku.rag.sources plugin entry-point group is unchanged, so third-party
source packages need no edit — the group name now matches the module path it
always implied.

Source unit tests move to tests/sources/. test_source_plugins.py stays in
tests/ingester/: it drives a PeriodicPoller against the job repo, so it is
plugin wiring through ingester machinery rather than a source test.
2026-08-20 11:46:55 +03:00

31 lines
721 B
Python

from haiku.rag.sources.base import (
FetchResult,
RevisionSnapshot,
Source,
SourceEvent,
SourceEventKind,
)
from haiku.rag.sources.filter import FileFilter
from haiku.rag.sources.fs import FSSource
from haiku.rag.sources.http import HTTPSource
from haiku.rag.sources.registry import (
resolve_adhoc_fetcher,
resolve_configured_source,
)
from haiku.rag.sources.s3 import S3Source
from haiku.rag.sources.webdav import WebDAVSource
__all__ = [
"FetchResult",
"FileFilter",
"FSSource",
"HTTPSource",
"RevisionSnapshot",
"S3Source",
"Source",
"SourceEvent",
"SourceEventKind",
"WebDAVSource",
"resolve_adhoc_fetcher",
"resolve_configured_source",
]