Repository navigation
feat(config): make minimal-setup defaults tuned - #59
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
A first-time user today copies a 148-line annotated
config.example.yamland reasons about dozens of knobs before their firstinfinitum serve. After this change, the starter config is literally theupstreamblock (base_url+api_key), and every tuned value is a built-in default they never touch.An existing user upgrading keeps their explicit config winning (Pydantic partial override unchanged); only fields they omitted pick up the new defaults.
Why
The defaults already support a partial config, so the only work was setting the tuned values as the program's own defaults and rewriting the docs/tests to match. No new config keys, no schema/logic changes, no new code paths, no setup steps.
The 13 retuned defaults
memory.minimum_retrieval_score0.18→0.25 ·memory.inject_max_memories24→8 ·memory.tools_enabledFalse→True ·learning.max_tokens2048→1024 ·learning.extra_body{}→{tool_choice: none}·learning.skip_when_upstream_busyFalse→True ·learning.upstream_idle_grace_seconds0→5 · topic-summarydebounce30→60,update_threshold5→3,max_changed24→6,context8→4,bootstrap32→8,max_tokens1024→512. (Unchanged:minimum_relevance_score0.08,timeout_seconds600,topic_summary_min_memories3,fallback12,consolidation_max_tokens2048, embeddings opt-in/off.)Two sanity-check decisions
learning.extra_bodydefaults to{tool_choice: none}only. The vendor-specificchat_template_kwargs: {enable_thinking: false}(Qwen/vLLM) stays a commented example — a strict/cloud upstream would 400 on the unknown field and silently kill background learning.memory.tools_enablednow defaults true — a visible change for upgraders (two read-only drill-down tools + the server-side tool loop on memory-enabled requests). Setmemory.tools_enabled: falseto restore the prior tool-free behavior on upstreams without a tool parser.Other
config.example.yamlslimmed to the minimal starter + commented optional stanzas.docs/CONFIGURATION.md#defaults-at-a-glancereference table; every stale default claim corrected across CONFIGURATION/README/ROADMAP/AGENTS/ARCHITECTURE; CHANGELOG records the upgrade-visible flips.benchmarks/runner.pyzeroes the new idle-grace so the offline eval harness stays fast.Verification
python -m pytest -q: 515 passed (~28s). Final-wave review: plan-compliance, code-quality, realTestClientQA (near-empty config boots,/health+/v1/models+POST /v1/chat/completionswith tools auto-appended and a learn job enqueued), and IS-1..IS-8 fidelity all APPROVE.