app/core/qdrant_points.py aktualisiert
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s

This commit is contained in:
Lars 2025-11-08 11:25:03 +01:00
parent b49d97b8d7
commit cd1e46784f

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
"""
Name: app/core/qdrant_points.py
Version: v1.8.0 (2025-11-08)
Version: v1.8.1 (2025-11-08)
Kurzbeschreibung
Punkt-Operationen (Upsert/Delete/Scroll) für mindnet:
@ -11,14 +11,25 @@ Kurzbeschreibung
- Purge/Delete-Helfer je Note (für --purge-before-upsert)
- Edge-Payload-Normalisierung + deterministische edge_id
- Wrapper ensure_collections_for_prefix(...), delegiert an app.core.qdrant
- NEU v1.8.1: delete_by_note(...) als abwärtskompatibler Alias
Changelog
v1.8.1
* Neu: delete_by_note(client, prefix, note_id, ...) -> ruft delete_note_scope(...) auf
* Keine Verhaltensänderung an bestehenden Funktionen
v1.8.0
* Initiale, abwärtskompatible Bereitstellung für erwartete Symbole:
upsert_notes, upsert_chunks, upsert_edges, upsert_batch,
delete_note_scope, ensure_collections_for_prefix,
delete_by_filter, list_point_ids_by_note
Abwärtskompatibilität
* Beibehaltung der bisherigen Funktionsnamen:
- upsert_notes(...), upsert_chunks(...), upsert_edges(...)
- upsert_batch(...)
- delete_note_scope(...)
- delete_note_scope(...), delete_by_note(...)
- ensure_collections_for_prefix(...)
- delete_by_filter(...), list_point_ids_by_note(...)
* Robust ggü. qdrant_client-Versionen (MatchValue-Konstruktor etc.).
Erwartete Collections
@ -253,6 +264,32 @@ def delete_note_scope(
delete_by_filter(client, notes_col, flt, wait=wait)
# --- Abwärtskompatibler Alias ------------------------------------------------
def delete_by_note(
client: QdrantClient,
prefix: str,
note_id: str,
*,
include_edges: bool = True,
include_chunks: bool = True,
include_note: bool = False,
wait: bool = True,
) -> None:
"""
Alias für delete_note_scope(...). Wird von älteren Importern erwartet.
Semantik identisch.
"""
delete_note_scope(
client,
prefix,
note_id,
include_edges=include_edges,
include_chunks=include_chunks,
include_note=include_note,
wait=wait,
)
# ---------------------------------------------------------------------------
# Simple Queries (Scroll)
# ---------------------------------------------------------------------------