Repository navigation
fix(retrieval,llm): fold BM25 derivational stems and strip reference noise in condense_query #883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8dc05fa
c5f3008
211dfd3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -259,6 +259,39 @@ | |
| "Orthodontic services", | ||
| "$3,500" | ||
| ] | ||
| }, | ||
| { | ||
| "id": "s09_chiropractic_benefits_limit", | ||
| "category": "resources", | ||
| "expected_type": "positive", | ||
| "query": "What are my chiropractic benefits?", | ||
| "expected_sources": [ | ||
| "BC Bargaining Unit Health and Dental Benefits" | ||
| ], | ||
| "acceptable_citation_aliases": [ | ||
| "BC Bargaining Unit Health and Dental Benefits", | ||
| "Extended health and dental plans for bargaining unit employees" | ||
| ], | ||
| "required_section_patterns": [ | ||
| "\\bchiropract(?:ic|or)\\b" | ||
| ], | ||
| "required_fact_patterns": [ | ||
| "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|[.!?;\\n])).){0,140}(?:(?<!\\bnot\\s)(?<!\\bno\\s)\\$500(?:\\.00)?(?!\\d)(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|\\$2,?000|[.!?;\\n])).){0,40}(?:/\\s*(?:calendar\\s+)?year|\\b(?:a|per)\\s+(?:calendar\\s+)?year\\b|\\bannual(?:ly)?\\b)|(?:/\\s*(?:calendar\\s+)?year|\\b(?:a|per)\\s+(?:calendar\\s+)?year\\b|\\bannual(?:ly)?\\b)(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|\\$2,?000|[.!?;\\n])).){0,40}(?<!\\bnot\\s)(?<!\\bno\\s)\\$500(?:\\.00)?(?!\\d))|(?:(?<!\\bnot\\s)(?<!\\bno\\s)\\$500(?:\\.00)?(?!\\d)(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|\\$2,?000|[.!?;\\n])).){0,40}(?:/\\s*(?:calendar\\s+)?year|\\b(?:a|per)\\s+(?:calendar\\s+)?year\\b|\\bannual(?:ly)?\\b)|(?:/\\s*(?:calendar\\s+)?year|\\b(?:a|per)\\s+(?:calendar\\s+)?year\\b|\\bannual(?:ly)?\\b)(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|\\$2,?000|[.!?;\\n])).){0,40}(?<!\\bnot\\s)(?<!\\bno\\s)\\$500(?:\\.00)?(?!\\d))(?:(?!(?:\\b(?:acupunctur|massage|naturopath|physiotherap|podiatr|orthotic|counselling)\\w*\\b|[.!?;\\n])).){0,100}\\bchiropract(?:ic|or)s?\\b)" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔥 The Roast: The required-fact regex can find 🩹 The Fix: Require an explicit per-person association in the required pattern (in either amount/qualifier order), and add a negative case where the family-wide qualifier is farther than 40 characters from 📏 Severity: warning |
||
| ], | ||
| "forbidden_patterns": [ | ||
| "/public/docs/forms/Grievance_-_", | ||
| "Grievance\\s*-\\s*(?:0\\s*-\\s*Instructions|A\\s*-\\s*Grievor\\s*Case|B\\s*-\\s*Notify\\s*Designates|C\\s*-\\s*Steward\\s*Case)", | ||
| "\\bFiling\\s+a\\s+Grievance\\b", | ||
| "\\b(?:file|submit|pursue|start|initiate)\\s+(?:a\\s+)?grievance\\b", | ||
| "\\bgrounds\\s+for\\s+a\\s+grievance\\b", | ||
| "(?:\\bchiropract(?:ic|or)s?\\b(?:(?!(?:\\b(?:not|no|never|isn't|aren't|general\\s+(?:coinsurance|extended\\s+health))\\b|[.!?;\\n])).){0,80}(?:\\b(?:cap|limit|maximum|max)\\b(?:(?!(?:\\b(?:not|no)\\b|[.!?;\\n])).){0,25}(?<!\\bnot\\s)(?<!\\bno\\s)\\$2,?000(?:\\.00)?(?!\\d)|\\b(?:is|are)\\s+(?:reimbursed\\s+at|capped\\s+at|limited\\s+to|up\\s+to)\\s+(?:(?!(?:\\b(?:not|no)\\b|[.!?;\\n])).){0,25}(?<!\\bnot\\s)(?<!\\bno\\s)\\$2,?000(?:\\.00)?(?!\\d))|(?<!\\bnot\\s)(?<!\\bno\\s)\\$2,?000(?:\\.00)?(?!\\d)(?:(?!(?:\\b(?:not|no|general\\s+(?:coinsurance|extended\\s+health))\\b|[.!?;\\n])).){0,60}(?:\\b(?:cap|limit|maximum|max)\\b(?:(?!(?:\\b(?:not|no)\\b|[.!?;\\n])).){0,30}\\bchiropract(?:ic|or)s?\\b|\\b(?:is|are)\\s+the\\s+chiropract(?:ic|or)\\s+(?:cap|limit|maximum|max)\\b|\\bfor\\s+chiropract(?:ic|or)s?\\b))", | ||
| "(?:\\$500(?:\\.00)?(?!\\d)(?:(?![.!?;\\n]).){0,40}\\b(?:entire\\s+|combined\\s+)?family\\b|\\b(?:entire\\s+|combined\\s+)?family\\b(?:(?![.!?;\\n]).){0,40}\\$500(?:\\.00)?(?!\\d))" | ||
| ], | ||
| "oracle_terms": [ | ||
| "Chiropractor", | ||
| "Chiropractic treatments", | ||
| "$500/year/person" | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.