|
2 | 2 |
|
3 | 3 |  |
4 | 4 |
|
5 | | -[Documentation](https://vectorize-io.github.io/hindsight) • [Paper](#coming-soon) • [Examples](https://github.com/vectorize-io/hindsight-cookbook) |
| 5 | +[Documentation](https://vectorize-io.github.io/hindsight) • [Paper](https://arxiv.org/abs/2512.12818) • [Examples](https://github.com/vectorize-io/hindsight-cookbook) |
6 | 6 |
|
7 | 7 | [](https://github.com/vectorize-io/hindsight/actions/workflows/release.yml) |
8 | 8 | [](https://opensource.org/licenses/MIT) |
|
18 | 18 |
|
19 | 19 | ## What is Hindsight? |
20 | 20 |
|
21 | | -Hindsight™ is an agent memory system built to create smarter agents that learn over time. It eliminates the shortcomings of alternative techniques such as RAG and knowledge graph. |
| 21 | +Hindsight™ is an agent memory system built to create smarter agents that learn over time. It eliminates the shortcomings of alternative techniques such as RAG and knowledge graph and delivers state-of-the-art performance on long term memory tasks. |
22 | 22 |
|
23 | 23 | Hindsight addresses common challenges that have frustrated AI engineers building agents to automate tasks and assist users with conversational interfaces. Many of these challenges stem directly from a lack of memory. |
24 | 24 |
|
25 | 25 | - **Inconsistency:** Agents complete tasks successfully one time, then fail when asked to complete the same task again. Memory gives the agent a mechanism to remember what worked and what didn't and to use that information to reduce errors and improve consistency. |
26 | 26 | - **Hallucinations:** Long term memory can be seeded with external knowledge to ground agent behavior in reliable sources to augment training data. |
27 | 27 | - **Cognitive Overload:** As workflows get complex, retrievals, tool calls, user messages and agent responses can grow to fill the context window leading to context rot. Short term memory optimization allows agents to reduce tokens and focus context by removing irrelevant details. |
28 | 28 |
|
29 | | -## How Hindsight Works |
| 29 | +## How is Hindsight Different From Other Memory Systems? |
30 | 30 |
|
31 | 31 |  |
32 | 32 |
|
33 | | -Hindsight organizes memory into four networks to mimic the way human memory works: |
| 33 | +Most agent memory implementation rely on basic vector search or sometimes use a knowledge graph. Hindsight uses biomimetic data structures to organize agent memories in a way that is more like how human memory works: |
34 | 34 |
|
35 | 35 | - **World:** Facts about the world ("The stove gets hot") |
36 | 36 | - **Experiences:** Agent's own experiences ("I touched the stove and it really hurt") |
37 | 37 | - **Opinion:** Beliefs with confidence scores ("I shouldn't touch the stove again" - .99 confidence) |
38 | 38 | - **Observation:** Complex mental models derived by reflecting on facts and experiences ("Curling irons, ovens, and fire are also hot. I shouldn't touch those either.") |
39 | 39 |
|
| 40 | +Memories in Hindsight are stored in banks (i.e. memory banks). When memories are added to Hindsight, they are pushed into either the world facts or experiences memory pathway. They are then represented as a combination of entities, relationships, and time series with sparse/dense vector representations to aid in later recall. |
| 41 | + |
40 | 42 | Hindsight provides three simple methods to interact with the system: |
41 | 43 |
|
42 | 44 | - **Retain:** Provide information to Hindsight that you want it to remember |
43 | 45 | - **Recall:** Retrieve memories from Hindsight |
44 | 46 | - **Reflect:** Reflect on memories and experiences to generate new observations and insights from existing memories. |
45 | 47 |
|
46 | | -Memories in Hindsight are stored in banks (e.g. memory banks). When memories are retained, they are transformed to construct a series of search indexes, time series data, and entity/relationship graphs. |
| 48 | +### Agent Memory That Learns |
| 49 | + |
| 50 | +A key goal of Hindsight is to build agent memory that enables agents to learn and improve over time. This is the role of the `reflect` operation which provides the agent to form broader opinions and observations over time. |
| 51 | + |
| 52 | +For example, imagine a product support agent that is helping a user troubleshoot a problem. It uses a `search-documentation` tool it found on an MCP server. Later in the conversation, the agent discovers that the documentation returned from the tool wasn't for the product the user was asking about. The agent now has an experience in its memory bank. And just like humans, we want that agent to learn from its experience. |
| 53 | + |
| 54 | +As the agent gains more experiences, `reflect` allows the agent to form observations about what worked, what didn't, and what to do differently the next time it encounters a similar task. |
47 | 55 |
|
48 | 56 | --- |
49 | 57 |
|
| 58 | +## Memory Performance & Accuracy |
| 59 | + |
| 60 | +Hindsight has achieved state-of-the-art performance on the LongMemEval benchmark, widely used to assess memory system performance across a variety of conversational |
| 61 | +AI scenarios. The current reported performance of Hindsight and other agent memory solutions as of December 2025 is shown here: |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +The benchmark performance data for Hindsight and GPT-4o (full context) have been reproduced by research collaborators at the Virginia Tech [Sanghani Center for Artificial Intelligence and Data Analytics](https://sanghani.cs.vt.edu/) and The Washington Post. Other scores are self-reported by software vendors. |
| 66 | + |
| 67 | +A thorough examination of the techniques implemented in Hindsight and detailed breakdowns of benchmark performance are [available on arXiv](https://arxiv.org/abs/2512.12818). This research is currently being prepared for conference submission and the wider peer review process. |
| 68 | + |
| 69 | +The benchmark results from this research can be inspected in our [visual benchmark explorer](https://hindsight-benchmarks.vercel.app). As additional improvements are made to Hindsight, new benchmark data will be available for review using this same tool. |
| 70 | + |
50 | 71 | ## Quick Start |
51 | 72 |
|
52 | 73 | ### Docker (recommended) |
@@ -223,6 +244,10 @@ client.reflect(bank_id="my-bank", query="What should I know about Alice?") |
223 | 244 | - [Slack](https://join.slack.com/t/hindsight-space/shared_invite/zt-3klo21kua-VUCC_zHP5rIcXFB1_5yw6A) |
224 | 245 | - [GitHub Issues](https://github.com/vectorize-io/hindsight/issues) |
225 | 246 |
|
| 247 | +--- |
| 248 | +## Star History |
| 249 | + |
| 250 | +[](https://www.star-history.com/#vectorize-io/hindsight&type=date&legend=top-left) |
226 | 251 | --- |
227 | 252 |
|
228 | 253 | ## Contributing |
|
0 commit comments