"""Retrieval-based novelty and duplicate detection.

Replaces model-generated novelty with deterministic fingerprinting,
semantic embeddings, and similarity-based scoring against a recent
history window.
"""

from services.intelligence_pipeline_v3.novelty.embeddings import (
    EmbeddingBackend,
    MockEmbeddingBackend,
    SentenceTransformerBackend,
    cosine_similarity,
)
from services.intelligence_pipeline_v3.novelty.fingerprints import (
    compute_exact_fingerprint,
    compute_simhash,
    hamming_distance,
    is_near_duplicate,
)
from services.intelligence_pipeline_v3.novelty.index import Match, NoveltyIndex
from services.intelligence_pipeline_v3.novelty.models import NoveltyResult
from services.intelligence_pipeline_v3.novelty.scorer import NoveltyScorer

__all__ = [
    "EmbeddingBackend",
    "Match",
    "MockEmbeddingBackend",
    "NoveltyIndex",
    "NoveltyResult",
    "NoveltyScorer",
    "SentenceTransformerBackend",
    "compute_exact_fingerprint",
    "compute_simhash",
    "cosine_similarity",
    "hamming_distance",
    "is_near_duplicate",
]
