refactor: remove pgvector runtime

This commit is contained in:
2026-08-08 21:38:03 +02:00
parent 5c12d9bb79
commit 8826f8ac6b
34 changed files with 200 additions and 3362 deletions
+3 -4
View File
@@ -13,8 +13,7 @@ from typer.testing import CliRunner
from tht.cli import app
from tht.memory import MemoryRecord, save_registry
from tht.ports.vector import VectorReadUnavailable
from tht.vectorstore.rest_client import VectorRestError
from tht.ports.vector import VectorReadUnavailable, VectorStoreError
from tht.vectorstore.store import VectorHit
@@ -31,7 +30,7 @@ def _cfg(tmp_path):
def test_solved_search_degrades_when_vectordb_unreachable(tmp_path, monkeypatch):
def boom(cfg):
raise VectorRestError("Vector REST non raggiungibile su https://v/ (rpc search_similar)")
raise VectorStoreError("Qdrant non raggiungibile")
monkeypatch.setattr("tht.cli.vector_cmd.open_searcher", boom)
res = CliRunner().invoke(
@@ -57,7 +56,7 @@ def test_solved_search_degrades_direct_vector_read_error(tmp_path, monkeypatch):
def test_solved_search_degrades_human_mode(tmp_path, monkeypatch):
def boom(cfg):
raise VectorRestError("Vector REST non raggiungibile")
raise VectorStoreError("Qdrant non raggiungibile")
monkeypatch.setattr("tht.cli.vector_cmd.open_searcher", boom)
res = CliRunner().invoke(