RAG framework for LLMs, inspired by human long-term memory
Top 18.4% on sourcepulse
HippoRAG is a novel Retrieval-Augmented Generation (RAG) framework designed to imbue Large Language Models (LLMs) with human-like long-term memory capabilities. It enables continuous knowledge integration from external documents, enhancing associative reasoning and sense-making in complex contexts. The framework is optimized for cost and latency efficiency in online operations and requires fewer resources for offline indexing compared to graph-based RAG alternatives.
How It Works
HippoRAG integrates RAG with knowledge graphs and Personalized PageRank algorithms. It processes documents to extract factual triples, builds a knowledge graph, and then uses graph traversal techniques to improve retrieval. This approach allows LLMs to better recognize and utilize connections within new knowledge, mimicking human long-term memory functions for improved multi-hop retrieval and context integration.
Quick Start & Requirements
conda create -n hipporag python=3.10
, conda activate hipporag
, pip install hipporag
CUDA_VISIBLE_DEVICES
, HF_HOME
, OPENAI_API_KEY
(if using OpenAI models).Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 month ago
1 day