LlamaIndex:產品、工程與評測·· 4 天前AI 評分56
LlamaIndex 如何自訂 Property Graph Index:實作實體去重與自訂檢索器
Customizing property graph index in LlamaIndex
AI 導讀
LlamaIndex 的 Property Graph Index 教程示範以 schema 引導抽取來建構知識圖譜,並加入實體去重與自訂檢索器,以提高 GraphRAG 準確度。示例使用 Diffbot 新聞資料集中的 250 篇文章建圖,使用 GPT-4o 約需 7 分鐘;去重結合嵌入向量相似度與詞距,自訂檢索器則先抽取查詢中的實體,再逐一使用 VectorContextRetriever。
來源:LlamaIndex:產品、工程與評測 · llamaindex.ai