Skip to content
Discussion options

You must be logged in to vote

You won’t get perfect determinism from most hosted LLMs, but you can significantly reduce variance in a structured code review pipeline.

High-leverage strategies (beyond temperature)

  1. Lock decoding parameters (and seed, if available)

Keep top_p fixed (often 1) and hold frequency/presence penalties constant.

If the API supports it, set a fixed random seed.

  1. Constrain the output shape

Use structured outputs (JSON schema / function calling).

Keep enums small and explicit (e.g. severity: ["blocker", "major", "minor"]).

  1. Reduce degrees of freedom in the prompt

Provide a clear review rubric with categories and scoring rules.

Limit output size (e.g. “max 8 findings”, “one finding per item”).

  1. C…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ebad66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Models Discussions related to GitHub Models
2 participants