Merged in bugfix/preserve_lob_relationship_llm_values (pull request #846)

Bugfix/preserve lob relationship llm values

* Relationship values changes

* Fix: Preserve LLM-determined LOB relationship values

- Prevent fill_na_mapping from overwriting LLM-determined 'Inclusive' relationships
- Only set 'Exclusive' when relationship field is empty/NA (preserves LLM values)
- Default to 'Exclusive' when PROGRAM/PRODUCT is NA/blank (LLM bypassed cases)
- Condensed redundant conditional logic for better maintainability

* Changed LOB Relationship prompt to more strictly enforce an output format

* Merge remote-tracking branch 'origin/main' into bugfix/preserve_lob_relationship_llm_values


Approved-by: Katon Minhas
This commit is contained in:
Praneel Panchigar
2026-01-23 21:53:07 +00:00
committed by Katon Minhas
parent ab31139168
commit dcec3f4b7a
@@ -1419,7 +1419,7 @@ Here is the Exhibit to be analyzed:
[OUTPUT FORMAT - REQUIRED]
You MUST format your response with pipe delimiters. Example format:
"Based on the analysis... |Inclusive|" or "The relationship is... |Exclusive|"
Your final answer MUST be enclosed in pipe delimiters: |Inclusive| or |Exclusive|
Your final answer MUST be enclosed in pipe delimiters: |Inclusive| or |Exclusive| AND you must make sure that the pipe delimiters are only used around the terms Inclusive or Exclusive.
"""