"""Search backends."""

from arborist.search.base import AuditMode, Hit, SearchBackend
from arborist.search.fts5 import FTS5Backend
from arborist.search.vec import VEC_AVAILABLE

__all__ = ["AuditMode", "Hit", "SearchBackend", "FTS5Backend", "VEC_AVAILABLE"]

if VEC_AVAILABLE:  # only surface VecBackend when the [vec] extra is installed
    from arborist.search.vec import VecBackend, embed_documents  # noqa: F401

    __all__ += ["VecBackend", "embed_documents"]
