fix(mellea): increase num_predict 350→512 to avoid citations_dense truncation
Browse files356 unmodified lines357358359360361362363364365366367368369370371356 unmodified lines{"role": "system", "content": system_prompt},{"role": "user", "content": user_prompt},]# num_predict 350 caps the 4-section briefing at ~300 tokens.# The vLLM deployment uses --max-model-len=2352; reconciler prompts# typically run 1800-2000 tokens after trim_docs_to_plan, leaving# ~350-500 tokens for output. 350 keeps total safely under 2352# even on a dense prompt. Override with RIPRAP_MELLEA_NUM_PREDICT.# num_ctx (Ollama only) is forwarded via extra_body; vLLM ignores it.base_opts = {"temperature": 0,"num_ctx": int(os.environ.get("RIPRAP_MELLEA_NUM_CTX", "4096")),"num_predict": int(os.environ.get("RIPRAP_MELLEA_NUM_PREDICT", "350")),**(ollama_options or {})}paragraph = ""356 unmodified lines357358359360361362363364365366367368369370356 unmodified lines{"role": "system", "content": system_prompt},{"role": "user", "content": user_prompt},]# num_predict 512 lets the 4-section briefing complete in one pass.# Reconciler prompts run ~1200 tokens (after trim_docs_to_plan),# so 1200+512=1712 comfortably under the vLLM max_model_len=2352.# Override with RIPRAP_MELLEA_NUM_PREDICT if needed.# num_ctx (Ollama only) is forwarded via extra_body; vLLM ignores it.base_opts = {"temperature": 0,"num_ctx": int(os.environ.get("RIPRAP_MELLEA_NUM_CTX", "4096")),"num_predict": int(os.environ.get("RIPRAP_MELLEA_NUM_PREDICT", "512")),**(ollama_options or {})}paragraph = ""
app/mellea_validator.py+5-6