Refactor Planning Exercise Retrieval and Suggestion Logic
Deploy Development / deploy (push) Successful in 39s
Test Suite / pytest-backend (push) Successful in 39s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Successful in 1m12s

- Updated the planning exercise retrieval process to implement a multistage approach, ranking the entire visible library deterministically against the expectation profile.
- Removed the previous profile OR pool mechanism, simplifying the retrieval logic and ensuring full-text search is only used as a scoring signal.
- Adjusted the `compose_retrieval_phase` function to accommodate the new full library ranking strategy.
- Incremented version to 0.8.177 and updated changelog to reflect these changes in planning exercise capabilities.
This commit is contained in:
Lars committed 2026-05-23 06:35:45 +02:00
1 parent a8633235f2
commit d1d8539b42
6 files changed
+208 -259

No files matched your search

@@ -73,10 +73,9 @@ def test_compose_retrieval_phase():
assert compose_retrieval_phase(query_intent=False, llm_rank=False) == "profile_v1"
assert compose_retrieval_phase(query_intent=True, llm_rank=True) == "profile_v1+query_intent+llm_rank"
assert (
compose_retrieval_phase(profile_preselect=True, query_intent=True, llm_rank=False)
== "profile_v1+profile_preselect+query_intent"
compose_retrieval_phase(full_library=True, query_intent=True, llm_rank=False)
== "profile_v1+full_library+query_intent"
)
@@ -119,6 +118,10 @@ def test_compose_retrieval_phase_llm_expectation():
compose_retrieval_phase(llm_expectation=True)
== "profile_v1+llm_expectation"
)
assert (
compose_retrieval_phase(full_library=True, llm_expectation=True)
== "profile_v1+full_library+llm_expectation"
)
def test_query_only_expectation_without_planning_reference():