Upgrade legacy Maintenance Copilot offline retriever - #40
Draft
hoang12122 wants to merge 5 commits into
Draft
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Scope clarification
This PR upgrades only the legacy
MaintenanceCopilotoffline retrieval path (askCopilot->src/lib/ai/rag_engine.py) and its document-preparation script.It does not replace or upgrade the primary AI stack. The primary runtime remains:
NemoClawClientas the first-priority local inference gateway;nemotron-3-ultraunless overridden by environment/runtime configuration;The word “Copilot” here is only the product/UI name of the maintenance widget. It is not GitHub Copilot.
What changed
RAG_KNOWLEDGE_PATH,data/vector_db/latest.jsonand versioned indexes while preserving the existinganswer,confidenceandenginefields used byaskCopilot.latest.jsonpointer.docs/rag_upgrade_audit.mddescribing weaknesses and recommended improvements for the separate NemoClaw + TrustGraph core path.Why
The maintenance widget previously counted overlapping words against four hard-coded sample records. Its ingestion helper wrote whole documents to JSON but described the result as a vector index. This caused weak retrieval, misleading confidence, missing citations and poor index lifecycle control in that specific legacy path.
Compatibility
The existing
askCopilotserver action can continue parsing the response because the historical fields remain present. The response now also includessourcesandknowledge_sourcefor auditability.Validation
Result recorded during implementation: 5 tests passed.
Core RAG follow-up
A separate PR should target the actual NemoClaw + TrustGraph path, including:
askWithRAG;