merge main (phase 0: K5 fix, --no-cache, import assert) into research/semantic-kg
Conflict resolutions, the honest way: - extract/expert gap-step: main's deterministic COMPOSE wins over the branch's TRANSLATE LLM (main removed it 23/10 with measurement: the model was putting the ANSWER into retrieval queries). The branch's _extract_entities contract (question-blind extractor) is fed from compose's entities. - tablefrags/semantic tests: restored the branch's adapted versions + fixed their single-insert sys.path bug (parent.parent resolved to knowledge/, not code/ — the tests were silently importing MAIN's expert.py through the venv pth; same class as the run-085457 trap).
This commit is contained in:
@@ -21,7 +21,8 @@ from __future__ import annotations
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent)) # code/
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent))
|
||||
|
||||
import knowledge.embeddings as emb
|
||||
from knowledge.expert import KnowledgeConfig, KnowledgeExpert
|
||||
|
||||
Reference in New Issue
Block a user