c3749daf48
Tests / test-linux (3.13) (push) Failing after 0s
Tests / test-linux (3.11) (push) Failing after 1s
Tests / lint (push) Failing after 0s
Tests / test-linux (3.9) (push) Failing after 1s
Docker / build (push) Failing after 1s
Docker / build-gpu (push) Failing after 2s
Tests / test-windows (push) Has been cancelled
Tests / test-macos (push) Has been cancelled
95 lines
2.6 KiB
Python
95 lines
2.6 KiB
Python
"""Storage backend implementations for MemPalace (RFC 001).
|
|
|
|
Public surface:
|
|
|
|
* :class:`BaseCollection` — per-collection read/write contract.
|
|
* :class:`BaseBackend` — per-palace factory contract.
|
|
* :class:`PalaceRef` — value object identifying a palace for a backend.
|
|
* :class:`QueryResult` / :class:`GetResult` — typed read returns.
|
|
* Error classes: :class:`PalaceNotFoundError`, :class:`BackendClosedError`,
|
|
:class:`UnsupportedFilterError`, :class:`DimensionMismatchError`,
|
|
:class:`EmbedderIdentityMismatchError`.
|
|
* Registry: :func:`get_backend`, :func:`register`, :func:`available_backends`,
|
|
:func:`resolve_backend_for_palace`.
|
|
* In-tree Chroma default: :class:`ChromaBackend`, :class:`ChromaCollection`.
|
|
"""
|
|
|
|
from .base import (
|
|
BackendClosedError,
|
|
BackendError,
|
|
BackendMismatchError,
|
|
BaseBackend,
|
|
BaseCollection,
|
|
CollectionNotInitializedError,
|
|
DimensionMismatchError,
|
|
EmbedderIdentityMismatchError,
|
|
GetResult,
|
|
HealthStatus,
|
|
LexicalHit,
|
|
LexicalResult,
|
|
MaintenanceResult,
|
|
PalaceNotFoundError,
|
|
PalaceRef,
|
|
QueryResult,
|
|
UnsupportedCapabilityError,
|
|
UnsupportedFilterError,
|
|
UnsupportedMaintenanceKindError,
|
|
)
|
|
from .chroma import ChromaBackend, ChromaCollection
|
|
from .milvus import MilvusBackend, MilvusCollection
|
|
from .pgvector import PgVectorBackend, PgVectorCollection
|
|
from .qdrant import QdrantBackend, QdrantCollection
|
|
from .sqlite_exact import SQLiteExactBackend, SQLiteExactCollection
|
|
from .registry import (
|
|
available_backends,
|
|
detect_backend_for_path,
|
|
detect_backends_for_path,
|
|
get_backend,
|
|
get_backend_class,
|
|
register,
|
|
reset_backends,
|
|
resolve_backend_for_palace,
|
|
unregister,
|
|
)
|
|
|
|
__all__ = [
|
|
"BackendClosedError",
|
|
"BackendError",
|
|
"BackendMismatchError",
|
|
"BaseBackend",
|
|
"BaseCollection",
|
|
"ChromaBackend",
|
|
"ChromaCollection",
|
|
"CollectionNotInitializedError",
|
|
"DimensionMismatchError",
|
|
"EmbedderIdentityMismatchError",
|
|
"GetResult",
|
|
"HealthStatus",
|
|
"LexicalHit",
|
|
"LexicalResult",
|
|
"MaintenanceResult",
|
|
"MilvusBackend",
|
|
"MilvusCollection",
|
|
"PalaceNotFoundError",
|
|
"PalaceRef",
|
|
"PgVectorBackend",
|
|
"PgVectorCollection",
|
|
"QdrantBackend",
|
|
"QdrantCollection",
|
|
"QueryResult",
|
|
"SQLiteExactBackend",
|
|
"SQLiteExactCollection",
|
|
"UnsupportedCapabilityError",
|
|
"UnsupportedFilterError",
|
|
"UnsupportedMaintenanceKindError",
|
|
"available_backends",
|
|
"detect_backend_for_path",
|
|
"detect_backends_for_path",
|
|
"get_backend",
|
|
"get_backend_class",
|
|
"register",
|
|
"reset_backends",
|
|
"resolve_backend_for_palace",
|
|
"unregister",
|
|
]
|