Repository navigation
test(rag): pin rag base_url precedence and the chunking client's server - #7263
Merged
Merged
Conversation
A base_url passed to enable_rag must win over the chat config's, and LLM chunking must build its LemonadeClient against the configured server; neither was covered, so a regression would silently send RAG traffic to the default-port Lemonade.
4 tasks
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.
#7236 routed RAG and chat to the
--base-urlserver, but two paths stayed untested: abase_urlpassed toenable_ragmust beat the chat config's, and LLM chunking must build its Lemonade client against the configured server. A regression in either would quietly send RAG traffic to the default-port Lemonade. The precedence test is salvaged from draft #7242, adapted to main.Test plan
python -m pytest tests/unit/test_base_url_reaches_every_client.pypassessetdefaultswapped for assignment; chunking client built withoutbase_url)python -m pytest tests/unit/rag tests/unit/test_chat_sdk_rag_grant.pypassespython util/lint.py --black --isortclean