Skip to content

Refactor llm response format - #27

Open
Sushma-1706 wants to merge 2 commits into
ruxailab:mainfrom
Sushma-1706:refactor-llm-response-format
Open

Refactor llm response format#27
Sushma-1706 wants to merge 2 commits into
ruxailab:mainfrom
Sushma-1706:refactor-llm-response-format

Conversation

@Sushma-1706

@Sushma-1706 Sushma-1706 commented Feb 22, 2026

Copy link
Copy Markdown

Summary

This PR improves consistency between the LLM prompt instructions and the enforced response_format.

Previously, the system expected a JSON array of violations, but enforced response_format={"type": "json_object"}. This mismatch required additional parsing logic to handle wrapped responses.

This update:

  • Standardizes LLM output format to:
    { "violations": [...] }

Closes #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Align LLM response_format with expected JSON array structure in heuristic evaluation

1 participant