feat(search): recherche semantique - embeddings vectoriels + hybride RRF (#70)
This commit is contained in:
@@ -114,6 +114,10 @@ def app_with_vault(test_vault_dir: str):
|
||||
from backend.search import init_inverted_index
|
||||
init_inverted_index()
|
||||
|
||||
# Build semantic (embedding) index — uses the dependency-free hash fallback
|
||||
from backend.semantic_search import init_semantic_index
|
||||
init_semantic_index()
|
||||
|
||||
client = TestClient(app)
|
||||
return client
|
||||
|
||||
@@ -196,6 +200,9 @@ def admin_client(tmp_path):
|
||||
from backend.search import init_inverted_index
|
||||
init_inverted_index()
|
||||
|
||||
from backend.semantic_search import init_semantic_index
|
||||
init_semantic_index()
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
client = TestClient(app)
|
||||
yield client
|
||||
|
||||
Reference in New Issue
Block a user