SuperAPI AI Directory

HippoRAG 2 - A Retrieval-Augmented Generation Framework Launched by Ohio State University

Author: AI小集 · Original source: AI工具集

What is HippoRAG 2

HippoRAG 2 is a retrieval-augmented generation (RAG) framework launched by Ohio State University, addressing the limitations of existing RAG systems in simulating the dynamics and associativity of human long-term memory. HippoRAG 2 is based on the personalized PageRank algorithm, integrating deep paragraph integration and more effective online LLM (large language model) usage, driving RAG systems closer to the effects of human long-term memory. In the offline phase, HippoRAG 2 uses an LLM to extract triples from paragraphs and build an open knowledge graph (KG), while also detecting synonyms based on an embedding model and adding them to the KG. During online retrieval, it links the query with triples and paragraphs in the KG, filters irrelevant information based on the LLM, applies the personalized PageRank algorithm for context-aware retrieval, and ultimately provides the most relevant paragraphs for question-answering tasks.

HippoRAG 2

Main Features of HippoRAG 2

  • Efficient Knowledge Retrieval and Integration: Based on deep paragraph integration and the construction of a knowledge graph (KG), it quickly retrieves knowledge relevant to the query and integrates it into the generation process.
  • Multi-hop Associative Reasoning: With the help of the personalized PageRank algorithm, the system performs multi-hop reasoning, connecting scattered knowledge fragments and handling complex question-answering tasks.
  • Context-Aware Retrieval: Based on deep interaction between the query and the knowledge graph, it dynamically adjusts retrieval results according to the context, improving the accuracy and relevance of retrieval.
  • Continuous Learning Capability: As a non-parametric continuous learning framework, HippoRAG 2 can absorb and utilize new knowledge in real time without modifying model parameters, enhancing the system's adaptability.

Technical Principles of HippoRAG 2

  • Offline Indexing: Use an LLM to extract structured triples (subject, relation, object) from text paragraphs, and integrate the triples into an open knowledge graph (KG). Based on an embedding model, detect synonyms and add synonym edges in the KG to enhance the connectivity of the knowledge graph. Combine the original paragraphs with the knowledge graph to form a composite knowledge graph containing conceptual and contextual information.
  • Online Retrieval:
    • Query Linking: Use an embedding model to match the query with triples and paragraphs in the KG, determining the seed nodes for graph search.
    • Triple Filtering: Based on the LLM, filter the retrieved triples, remove irrelevant information, and retain knowledge highly relevant to the query.
    • Personalized PageRank Algorithm: Based on the structure of the KG, apply the personalized PageRank algorithm for context-aware retrieval, dynamically adjusting the relevance of retrieval results.
    • Paragraph Ranking and Question Answering: Rank paragraphs according to PageRank scores, and input the top-ranked paragraphs as context into the final question-answering model.
  • Personalized PageRank Algorithm: One of the core technologies of HippoRAG 2 is the personalized PageRank algorithm, which simulates the multi-hop reasoning process in human memory, performs deep search in the knowledge graph, connects scattered knowledge nodes, and better handles complex associative tasks.
  • Deep Paragraph Integration: Deeply integrate paragraphs with nodes in the knowledge graph, preserve the contextual information of paragraphs, enhance the semantic richness of the knowledge graph, and make retrieval results more relevant and accurate.

Project Address of HippoRAG 2

Application scenarios of HippoRAG 2

  • Intelligent Q&A: Quickly answer complex questions and provide accurate answers.
  • Knowledge management: Efficiently retrieve and recommend relevant content, improving the efficiency of knowledge utilization.
  • Educational assistance: Update learning resources in real time, supporting teaching and research.
  • Medical consultation: Retrieve medical knowledge and provide comprehensive health advice.
  • Law and finance: Quickly integrate regulations and data to support professional decision-making.