(base: Any, extra: Any)
| 770 | |
| 771 | |
| 772 | def _append_analysis_note(base: Any, extra: Any) -> str: |
| 773 | base_text = _clean_text(base) |
| 774 | extra_text = _clean_text(extra) |
| 775 | if not base_text: |
| 776 | return extra_text |
| 777 | if not extra_text: |
| 778 | return base_text |
| 779 | if extra_text in base_text: |
| 780 | return base_text |
| 781 | if base_text in extra_text: |
| 782 | return extra_text |
| 783 | return f"{base_text} {extra_text}" |
| 784 | |
| 785 | |
| 786 | def _preferred_evidence_top_k(user_profile: Dict[str, Any]) -> int: |
no test coverage detected