Views
No views yet
request-triage-qwen-v1 is a LoRA adapter for code-aware customer request triage.A customer reports something. Is it important, does it relate to the current codebase, which files are probably involved, and what should the maintainer do next?
Invoices without a purchase order are being auto-approved.1{
2 "importance": "critical",
3 "priority": "P0",
4 "request_type": "bug",
5 "code_relevance": "directly_related",
6 "affected_files": [
7 {
8 "path": "apps/accounts_payable/policies/po_match.py",
9 "reason": "The PO policy controls missing-PO handling before approval or ERP export.",
10 "confidence": 0.86
11 }
12 ],
13 "recommended_action": "escalate"
14}1customer request
2-> retrieve relevant code snippets from a local repository
3-> build a grounded prompt
4-> classify importance, type, relevance, action, and affected files
5-> validate strict JSON outputQwen/Qwen2.5-Coder-0.5B-InstructQwen/Qwen2.5-Coder-7B-Instruct.| Split | Rows |
|---|---|
| Train | 5,000 |
| Validation | 700 |
| Test | 700 |
| Golden regression | 300 |
| Adversarial | 300 |
request_textcustomer_contextrepo_contextretrieved_codelabel1{
2 "importance": "critical | high | medium | low | ignore",
3 "priority": "P0 | P1 | P2 | P3 | P4",
4 "request_type": "bug | feature_request | security | performance | usability | documentation | unclear | duplicate | already_implemented",
5 "code_relevance": "directly_related | possibly_related | not_related | already_implemented | needs_more_information",
6 "affected_files": [
7 {
8 "path": "string",
9 "reason": "string",
10 "confidence": 0.0
11 }
12 ],
13 "recommended_action": "escalate | create_issue | add_to_backlog | ask_customer_for_more_info | mark_duplicate | ignore",
14 "confidence": 0.0,
15 "summary": "short human-readable summary",
16 "reasoning": "short explanation based only on the request and retrieved code context"
17}pip install -e ".[dev]"cart-index --repo-path ./my_repo --index-dir .cart_index1cart-infer \
2 --repo-path ./my_repo \
3 --request "Invoices without a purchase order are being routed to ERP draft instead of review" \
4 --model Qwen/Qwen2.5-Coder-0.5B-Instruct \
5 --adapter-path xdanielsb/request-triage-qwen-v1 \
6 --top-k 5 \
7 --max-new-tokens 2561cart-infer \
2 --repo-path ./my_repo \
3 --request "SKU search is slow when filtering by supplier and warehouse" \
4 --model Qwen/Qwen2.5-Coder-0.5B-Instruct \
5 --adapter-path outputs/request-triage-lora \
6 --top-k 3 \
7 --max-new-tokens 2561cart-evaluate \
2 --test-file data/synthetic/test.jsonl \
3 --model Qwen/Qwen2.5-Coder-0.5B-Instruct \
4 --adapter-path xdanielsb/request-triage-qwen-v1 \
5 --output outputs/test-metrics.json \
6 --max-new-tokens 256
7
8cart-evaluate \
9 --test-file data/synthetic/adversarial.jsonl \
10 --model Qwen/Qwen2.5-Coder-0.5B-Instruct \
11 --adapter-path xdanielsb/request-triage-qwen-v1 \
12 --output outputs/adversarial-metrics.json \
13 --max-new-tokens 256schema_validation_rate: whether outputs match the required JSON schemarequest_type_accuracy: whether the request category is correctcode_relevance_accuracy: whether the model correctly judges relation to the codebaserecommended_action_accuracy: whether the maintainer action is correctaffected_file_recall_at_k: whether expected files appear in affected filesmacro_f1: balanced categorical performance across labels1@software{code_aware_request_triage,
2 title = {Code-Aware Request Triage},
3 year = {2026},
4 url = {https://github.com/xdanielsb/code-aware-request-triage}
5}