Skip to content

Honor report model options when constructing RAG - #92

Open
ErenAta16 wants to merge 1 commit into
neuml:masterfrom
ErenAta16:fix/report-model-options
Open

ErenAta16 wants to merge 1 commit into
neuml:masterfrom
ErenAta16:fix/report-model-options

Conversation

@ErenAta16

Copy link
Copy Markdown

Closes #91.

Resolve the report's model path from its options before forwarding the remaining RAG settings. Keep the existing precedence of an explicit LLM over the QA model, with the built-in QA model as the fallback. The similarity pipeline and model path are already supplied to RAG as positional arguments.

I ran the same configurations through the real txtai 9.15.0 RAG constructor on both revisions, with model loading intercepted. The QA-only case changed from NeuML/bert-small-cord19qa to the requested local/qa. Adding a similarity model changed from a duplicate-argument exception to a successful call with local/qa. The LLM override and no-option default still selected the same models.

The regression covers all four configurations and checks that an independent context option reaches RAG. It and the existing invalid-format test passed locally.

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.

Report initialization ignores a custom QA model and rejects a custom retriever

1 participant