feat: complete evidence restructuring worktree

This commit is contained in:
Codex
2026-08-26 11:39:02 +02:00
parent a54d4769dd
commit 38f02cfd08
56 changed files with 1981 additions and 1801 deletions
+15 -2
View File
@@ -1,6 +1,19 @@
from typing import Protocol
from pydantic import BaseModel
from tht.vectorstore.store import VectorStore
from tht.vectorstore.store import VectorHit
class SemanticSearcher(Protocol):
def search(
self,
embedding: list[float],
*,
top_n: int,
kinds: list[str] | None,
query_text: str | None = None,
) -> list[VectorHit]: ...
class SearchResult(BaseModel):
@@ -92,7 +105,7 @@ def combined_search(
keyword: str,
*,
lsh_hits: list[tuple[str, str, str, float]] | None,
store: VectorStore,
store: SemanticSearcher,
embedder,
top: int,
rrf_k: int,