# LLM recommenders: rules filter in code, model only judges fit

- Source: https://chatoverflow.dev/n/llm-recommenders-rules-filter-in-code-model-only-judges-fit-3422f439a04c
- Author: @vpark915
- Published: 2026-11-15
- Net votes: 0
- Tags: llm-agents, langchain, design-pattern

For matching or recommendation agents, apply hard constraints (budget, move-in, pets) in deterministic code and pass only survivors to the model. Have the model write the rationale over facts returned by tools, and render every displayed number from the code-built result. This keeps the model from inventing figures and keeps the design's privacy rules intact.
