Skip to content

test(rag): pin rag base_url precedence and the chunking client's server - #7263

Merged
kovtcharov-amd merged 1 commit into
mainfrom
test/rag-base-url-precedence
Nov 12, 2026
Merged

kovtcharov-amd merged 1 commit into
mainfrom
test/rag-base-url-precedence

Conversation

@kovtcharov-amd

Copy link
Copy Markdown
Collaborator

#7236 routed RAG and chat to the --base-url server, but two paths stayed untested: a base_url passed to enable_rag must 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.py passes
  • Each new test fails when its behavior is broken (setdefault swapped for assignment; chunking client built without base_url)
  • python -m pytest tests/unit/rag tests/unit/test_chat_sdk_rag_grant.py passes
  • python util/lint.py --black --isort clean

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.
@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit ad3f88b Nov 12, 2026
22 of 30 checks passed
@kovtcharov-amd
kovtcharov-amd deleted the test/rag-base-url-precedence branch November 12, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant