Pune Zarrar Palekar — RAG-to-MCP Submission - #34
Open
ZarrarPalekar wants to merge 5 commits into
Open
Conversation
… issue", "Lighting fault") → restricted classify_complaint to the fixed 10-value category enum via leftmost-keyword matching, with Other+NEEDS_REVIEW fallback when nothing matches Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…y/child/school/hazard/fell keywords but stayed Standard priority → added SEVERITY_PATTERN regex that forces Urgent whenever a severity keyword is present, overriding all other priority signals Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…d-sentence and even mid-word (verified: "...first two live" truncated inside "live births", and split clause 5.2's obligation from its 5.1 lead-in) → replaced with section-aware chunking that chunks on each document's numbered top-level headings (e.g. "5. LEAVE WITHOUT PAY"), falling back to sentence-safe packing only if a section exceeds 400 tokens, so a clause and its section never span two chunks Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…eshold from the README refused all 3 in-scope reference queries, including "Who approves leave without pay?" → measured actual score distributions (in-scope top scores 0.37-0.77, out-of-scope top scores 0.15-0.23 across all 21 chunks) and calibrated threshold to 0.3, which cleanly separates the two clusters; also fixed a distance-to-cosine conversion bug that was squaring an already-squared ChromaDB L2 distance. Verified against all 4 reference table queries: correct document retrieved per query, cross-document blending avoided, and the out-of-scope query still refuses correctly Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…ns about policies" gave no document scope — verified failure via test_client.py's own scope check, which flagged "⚠️ Tool description may be too vague" → rewrote description to name all three covered documents (CMC HR Leave, IT Acceptable Use, Finance Reimbursement) and state the refusal condition explicitly, plus implemented the full JSON-RPC 2.0 tools/list, tools/call, and error-code (-32700/-32601/-32602) handling in do_POST. Verified: all 5 test_client.py --run-all checks pass, including the budget-forecast question returning isError: true Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
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.
RAG-to-MCP — Submission PR
Name: Zarrar Palekar
City / Group: Pune
Date: 2026-07-17
AI tool(s) used: Claude Code (Sonnet 5)
Submission Checklist
uc-0a/agents.md— present and updateduc-0a/skills.md— present and updateduc-0a/classifier.py— runs without crashuc-0a/results_pune.csv— output presentuc-rag/agents.md— present and updateduc-rag/skills.md— present and updateduc-rag/rag_server.py— not the stub, my own implementationuc-mcp/agents.md— present and updateduc-mcp/skills.md— present and updateduc-mcp/mcp_server.py— passes at least one test_client.py test (passes all 5)UC-0A — Complaint Classifier
Which failure mode did you encounter first?
Which enforcement rule fixed it? Quote from your agents.md:
Your commit message for UC-0A:
Verification checkpoints:
UC-RAG — RAG Server
Which failure mode did you encounter?
(chunk boundary / wrong retrieval / answer outside context)
What chunking strategy did you use and why?
Did your system correctly refuse "What is the flexible working culture?"?
(Should return refusal template — not in any document)
Did your system retrieve the correct document for "Can I use my personal phone for work files?"?
(Should retrieve IT policy, not HR leave policy)
Which enforcement rule in agents.md prevented answers outside retrieved context?
Your commit message for UC-RAG:
Verification checkpoints:
UC-MCP — MCP Server
Paste your tool description from mcp_server.py TOOL_DEFINITION:
Does it state the document scope explicitly?
Run result:
python3 test_client.py --run-all(Paste the summary output)
Did the budget forecast question return isError: true?
In one sentence — why is the tool description is the enforcement?
Your commit message for UC-MCP:
Verification checkpoints:
python3 test_client.py --run-allexecutes without connection errorisError: true(out of scope)CRAFT Reflection
Which step of the CRAFT loop was hardest across all three UCs?
What did you add to agents.md manually that the AI did not generate?
One specific task in your real work where you will use R.I.C.E in the next 7 days:
🤖 Built with Claude Code