Enhance Planning AI Context with Catalog Exercise Hints
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m15s
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 44s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 14s
Test Suite / k6 /health Baseline (push) Successful in 35s
Test Suite / playwright-tests (push) Successful in 1m15s
- Introduced support for catalog exercise hints in various functions, including `_build_stage_ai_context`, `try_suggest_ai_stage_step`, and `build_gap_fill_goal_text`, improving the contextual information available for AI suggestions. - Added a new function `catalog_exercise_hints_block` to consolidate hints retrieval from the catalog context. - Updated the `PlanningIntentContext` to include catalog exercise hints, ensuring they are part of the API output. - Implemented tests to verify the inclusion of catalog exercise hints in goal text generation and rematch logic. - Incremented version numbers and updated changelog to reflect these enhancements.
This commit is contained in:
1 parent
35fe31774b
commit
3181cc126d
11 files changed
+166
-14
No files matched your search
@@ -24,9 +24,11 @@ from planning_catalog_context import (
|
||||
load_catalog_context_from_graph_row,
|
||||
merge_catalog_context_into_target,
|
||||
)
|
||||
from catalog_prompt_slots import get_rematch_guard_for_catalog
|
||||
from planning_exercise_profiles import PlanningTargetProfile
|
||||
from planning_path_qa_pipeline import run_multistage_path_qa
|
||||
from planning_path_rematch import (
|
||||
apply_rematch_catalog_guard,
|
||||
collect_rematch_slot_indices,
|
||||
filter_rematch_slot_indices,
|
||||
prune_stripped_after_rematch,
|
||||
@@ -1737,6 +1739,13 @@ def _run_roadmap_rematch_loop(
|
||||
stripped_off_topic=current_stripped if round_idx == 0 else [],
|
||||
off_topic_steps=off_topic_before_strip if round_idx == 0 and use_initial_off_topic else [],
|
||||
)
|
||||
catalog_context = _resolve_planning_catalog_context(cur, body)
|
||||
rematch_guard = get_rematch_guard_for_catalog(cur, catalog_context)
|
||||
slot_indices = apply_rematch_catalog_guard(
|
||||
slot_indices,
|
||||
rematch_reasons,
|
||||
rematch_guard=rematch_guard,
|
||||
)
|
||||
if not slot_indices:
|
||||
break
|
||||
|
||||
@@ -2191,6 +2200,7 @@ def _run_evaluate_only_path_qa(
|
||||
max_ai_proposals=0,
|
||||
auto_insert_proposals=False,
|
||||
roadmap_snapshot=path_roadmap_snapshot,
|
||||
catalog=catalog_context,
|
||||
)
|
||||
|
||||
multistage_qa = run_multistage_path_qa(
|
||||
@@ -4294,6 +4304,7 @@ def suggest_progression_path(
|
||||
max_ai_proposals=0,
|
||||
auto_insert_proposals=False,
|
||||
roadmap_snapshot=path_roadmap_snapshot,
|
||||
catalog=catalog_context,
|
||||
)
|
||||
|
||||
if roadmap_gap_offers:
|
||||
|
||||
Reference in new issue
Block a user