[Bangalore] Rahul Kini — AI-Code Sarathi Submission - #48
Open
rahulkini31 wants to merge 1 commit into
Open
Conversation
Built all three UCs: keyword-rule complaint classifier (UC-0A), a sentence-aware-chunking RAG server over the policy documents with a recalibrated similarity threshold (UC-RAG, see uc-rag/agents.md for why 0.6 doesn't fit all-MiniLM-L6-v2's real score range on this corpus), and a JSON-RPC MCP server exposing it as query_policy_documents with a scope-stating tool description (UC-MCP). Switched llm_adapter.py to Groq (openai/gpt-oss-120b) under the switching-provider exception, and fixed the stale claude-3-haiku-20240307 id in the commented Claude alternative to claude-haiku-4-5. All reference-verification queries in uc-rag/README.md and all 5 test_client.py --run-all checks pass.
|
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: Rahul Kini
City / Group: Bangalore
Date: 2026-08-23
AI tool(s) used: Claude Code
Submission Checklist
uc-0a/agents.md— present and updateduc-0a/skills.md— present and updateduc-0a/classifier.py— runs without crashuc-0a/results_[city].csv— output present (using test_pune.csv — no Bangalore test file exists in data/city-test-files/)uc-rag/agents.md— present and updateduc-rag/skills.md— present and updateduc-rag/rag_server.py— not the stub, own implementationuc-mcp/agents.md— present and updateduc-mcp/skills.md— present and updateduc-mcp/mcp_server.py— passes all 5 test_client.py checksresources/submission-guide.md's example format rather than the per-UC CRAFT formula in README/CONTRIBUTING/docs/guide.md. Those three docs disagree with submission-guide.md on both commit cadence and PR title text — flagging here rather than silently picking one.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?"?
Did your system retrieve the correct document for "Can I use my personal phone for work files?"?
Which enforcement rule in agents.md prevented answers outside retrieved context?
Your commit message for UC-RAG:
Verification checkpoints:
Note on the similarity threshold: README.md specifies 0.6. Measured against this corpus,
all-MiniLM-L6-v2's raw cosine similarity for genuinely correct matches tops out around 0.35–0.39, while genuinely out-of-scope queries cap around 0.17–0.19 — a literal 0.6 threshold refuses every query in the reference table, including the ones required to return a cited answer. Recalibrated to 0.25 (documented inuc-rag/agents.mdand inline inrag_server.py); all reference queries verified to pass at that value, including correctly refusing the out-of-scope ones.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-allDid the budget forecast question return isError: true?
In one sentence — why is the tool description 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:
Reviewer Notes (tutor fills this section)
Badge decision: