[Jalandhar] Gopal Mondal - Rag to Mcp submission#8
Open
I-mgopal wants to merge 3 commits intonasscomAI:masterfrom
Open
[Jalandhar] Gopal Mondal - Rag to Mcp submission#8I-mgopal wants to merge 3 commits intonasscomAI:masterfrom
I-mgopal wants to merge 3 commits intonasscomAI:masterfrom
Conversation
…classifier.py with full R.I.C.E enforcement for taxonomy, severity keywords, and justification
…efusals → Optimized threshold and refined prompt grounding to enforce multiple role citations
…hresholds → Added resource caching and tuned similarity threshold to 0.30
|
Hi there, participant! Thanks for joining our RAG-to-MCP Workshop! We're reviewing your PR for the 3 Use Cases (UC-0A, UC-RAG, UC-MCP). Once your submission is validated and merged, you'll be awarded your completion badge! Next Steps:
|
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.
mcp_server.py (The Portal)
Standardized the server to use JSON-RPC 2.0. It now correctly tells AI agents what tools are available and routes their questions to the RAG database.
rag_server.py (The Engine)
Optimized with resource caching (singleton). This prevents the heavy AI model from reloading on every question, making the server fast enough to pass verification.
test_client.py (The Auditor)
Increased the timeout to 30s. This ensures the tests don't crash just because the computer needs a few extra seconds to process complex AI retrievals.
agents.md (The Rules)
Defined the R.I.C.E framework for the agent. This sets the strict operational boundary (HR, IT, Finance) and ensures the agent never halucinates about out-of-scope topics.
skills.md (The Capabilities)
Outlined the core Skillset of the server. It clearly defines how to handle policy queries and how to return structured errors when a question is out-of-scope.
Threshold Tuning (The Filter)
Adjusted the similarity threshold to 0.30 to balance between finding the right policy answers and blocking irrelevant "Budget" or "Weather" questions.