Enhance Planning Exercise Path Builder and Retrieval Logic
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m23s
Deploy Development / deploy (push) Successful in 42s
Test Suite / pytest-backend (push) Successful in 41s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 13s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m23s
- Updated the path selection logic to incorporate semantic gating, ensuring only relevant exercises are considered based on semantic scores. - Introduced new functions for building path target profiles and resolving semantic skill weights, enhancing the contextual understanding of exercise suggestions. - Improved the retrieval process by applying dynamic retrieval weights based on semantic strength, refining the accuracy of exercise recommendations. - Incremented version to 0.8.188 and updated changelog to document these enhancements in planning AI functionality.
This commit is contained in:
1 parent
c2c736dafc
commit
5b73d1a1f5
6 files changed
+333
-73
No files matched your search
@@ -12,10 +12,10 @@ def test_build_semantic_brief_mae_geri():
|
||||
"Von Erlernen bis zur Perfektion, des Fußtritts Mae Geri"
|
||||
)
|
||||
assert brief.primary_topic == "mae geri"
|
||||
assert "mae geri" in brief.must_phrases
|
||||
assert brief.must_phrases == ["mae geri"]
|
||||
assert "mawashi geri" in brief.exclude_phrases
|
||||
assert "perfektion" not in brief.must_phrases
|
||||
assert brief.semantic_strength >= 0.8
|
||||
assert "einstieg" in brief.development_arc or "perfektion" in brief.development_arc
|
||||
|
||||
|
||||
def test_semantic_score_prefers_mae_over_mawashi():
|
||||
@@ -64,4 +64,5 @@ def test_step_retrieval_query_carries_topic_and_phase():
|
||||
q0 = step_retrieval_query(brief, brief.retrieval_query, 0, 5)
|
||||
q4 = step_retrieval_query(brief, brief.retrieval_query, 4, 5)
|
||||
assert "mae geri" in q0.lower()
|
||||
assert q0 != q4
|
||||
assert "mae geri" in q4.lower()
|
||||
assert "einstieg grundübung" not in q0.lower()
|
||||
Reference in new issue
Block a user