Views
No views yet
USER_QUERY + SOURCE_EVIDENCE -> TARGET_MEMORY1from convmemory import ValidityEvidenceModule
2
3module = ValidityEvidenceModule.from_pretrained(
4 "Purdy0228/ConvMemory-OPC-V3-Validity-Context",
5 device="cuda", # or "cpu"
6)
7
8scores = module.score_evidence_pairs([
9 {
10 "query": "What is the current pricing plan?",
11 "source": {"text": "Later update: pricing changed from 99/299 to 129/399."},
12 "target": {"text": "Earlier note: pricing was 99/299."},
13 }
14])convmemory>=0.6.2 when attaching this checkpoint to ConvMemory. Pass
preselected later updates through validity_source_map to keep one validity
scorer call per protected target. Without a map, the package uses a bounded
Chinese-aware top-1 lexical fallback.v632_opcos_v3_posrepeat8_checkpointv634_opcos_v3_final_selectionBAAI/bge-reranker-v2-m3convmemory_validity_evidence0.05| Evaluation | Pair accuracy | Demote recall | Protect recall | Scenario all-correct |
|---|---|---|---|---|
| synthetic base/hard/natural | 100.00% | 100.00% | 100.00% | 100.00% |
| handwritten OPC smoke | 98.96% | 100.00% | 98.81% | 91.67% |
1dense / ConvMemory / teacher retrieval
2-> pick one later update source per candidate
3-> OPC-v3 validity context
4-> context annotation by default
5-> demote only for explicit current-state queries