35 lines
812 B
Python
35 lines
812 B
Python
"""
|
|
PACKAGE: app.core.database
|
|
DESCRIPTION: Zentrale Schnittstelle für alle Datenbank-Operationen (Qdrant).
|
|
Bündelt Client-Initialisierung und Point-Konvertierung.
|
|
"""
|
|
from .qdrant import (
|
|
QdrantConfig,
|
|
get_client,
|
|
ensure_collections,
|
|
ensure_payload_indexes,
|
|
collection_names
|
|
)
|
|
from .qdrant_points import (
|
|
points_for_note,
|
|
points_for_chunks,
|
|
points_for_edges,
|
|
upsert_batch,
|
|
get_edges_for_sources,
|
|
search_chunks_by_vector
|
|
)
|
|
|
|
# Öffentlicher Export für das Gesamtsystem
|
|
__all__ = [
|
|
"QdrantConfig",
|
|
"get_client",
|
|
"ensure_collections",
|
|
"ensure_payload_indexes",
|
|
"collection_names",
|
|
"points_for_note",
|
|
"points_for_chunks",
|
|
"points_for_edges",
|
|
"upsert_batch",
|
|
"get_edges_for_sources",
|
|
"search_chunks_by_vector"
|
|
] |