跳到正文
原文
Machine Learning Mastery· Iván Palomares Carrascosa·· 2 天前AI 评分56

为 Graph-RAG 添加时间推理:跟踪事实新鲜度与陈旧度

Adding Temporal Reasoning to Graph-RAG: Tracking Fact Freshness and Staleness

AI 导读

本文演示如何为 Graph-RAG 增加轻量级时间推理层,将主体—谓词—对象三元组扩展为带时间戳的四元组。教程用 Python 函数按查询日期计算指数衰减权重、排序冲突事实,并说明如何把排序结果接入确定性的三层检索架构。

来源:Machine Learning Mastery · machinelearningmastery.com