Integrating HybridRAG into agent code generator - #582
Conversation
release: v7.11.1 — honest Multiplicity.max typing + idiomatic empty lists
release: v7.11.2 — B-UML export keeps every object model in multi-object projects
release: v7.12.0 — Ollama support for agents
release: v7.13.0 — LLM-driven GUI personalization
|
Reviewed this alongside its frontend halves (WME #177 and #179). The load-bearing parts are correct — I checked the risky ones against the actual
Four things worth addressing. The reverse converter isn't here. No tests.
One of the new comments is slightly off. On docs: Two things I looked at and deliberately am not flagging: the new metamodel attributes are plain public fields with no property/setter, but every existing Merge order: this needs to land before WME #177, which needs to land before WME #179 — #179's template switches HybridRAG on by default, and #177's |
The BUML -> JSON converter parses new_rag() keyword arguments back onto the AgentRagElement but did not know use_hybrid_rag / bm25_weight, so a BUML export re-imported into the editor lost them. Both are now read (with the same 0 < weight < 1 validation as the processor) and emitted. Adds a round-trip assertion, generator tests for HybridRAG emission (and the absence of the import for plain RAGs), and the docs paragraph for the two new_rag() parameters.
- Bump setup.cfg 7.14.2 -> 7.15.0 and add the v7.15.0 release notes. - Backend: hybrid RAG (use_hybrid_rag / bm25_weight) across metamodel, BAF generator, converters, code builder and docs (#582, by Natarajan Chidambaram, completed in review). - Frontend submodule bump f84488d0 -> 906ecd39: RAG element hybrid toggle and BM25 weight (#177) and the Chatbot Agent template (#179), plus the review fixes (localized labels, maintained lockfile).
A PR was created in WME to include HybridRAG in the frontend. This is for the backend generator to include HybridRAG if the user selects it. Also, added comments in the agent template to inform the user about use_ui and file uploading when generating from RAG.