TATECHATLAS
◎ English
Home / Topics

Artificial intelligence: models and practical tasks

Language models, automation, machine learning, text, images and audio: explanations, guides and practical tips.

Explore approaches, choose models and evaluate results. This section covers context, reliable outputs, automation and different data types. Search and RAG are one direction within the section. Time series and forecasting belong to mathematics and models.

Materials

10 materials

Interpreting Azure AI Search Hybrid Scores: RRF, Small Values and Cross-Query Limits

Azure AI Search hybrid queries combine full-text and vector search using Reciprocal Rank Fusion (RRF). The @search.score field reflects this fusion, often appearing small due to RRF’s reciprocal rank weighting. This score cannot be directly compared across queries because it depends on the relative ranking within each query’s result set. Practical guidance includes using ranking order instead of absolute scores and understanding when semantic ranking alters the relevance signal.

Azure AI Search / Hybrid Search / Reciprocal Rank Fusion / RRF / Vector Search / Full-Text Search / Semantic Ranking / Relevance Scoring

Detecting Duplicate JSON Keys in LLM Output with Python's object_pairs_hook

Python's json.loads silently keeps only the last value when a JSON object contains duplicate keys, discarding earlier ones without warning. The object_pairs_hook parameter intercepts the full ordered list of key-value pairs before dict construction, enabling explicit duplicate detection at parse time.

json / object_pairs_hook / duplicate-keys / LLM-output / python / parsing / validation