explaingit

hq0709/synapse

Analysis updated 2026-05-18

0PythonAudience · researcherComplexity · 5/5Setup · hard

TLDR

SYNAPSE is a research codebase giving LLM agents graph-based episodic-semantic memory, tested on the LoCoMo long-conversation benchmark.

Mindmap

mindmap
  root((synapse))
    What it does
      Agent memory graph
      Spreading activation
      Long conversation recall
    Tech stack
      Python
      GPT-4o-mini
      Embeddings
      PageRank
    Use cases
      Benchmark reproduction
      Memory research
      Ablation studies
    Audience
      ML researchers
      Agent developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reproduce the paper's LoCoMo benchmark results for episodic-semantic agent memory.

USE CASE 2

Study how spreading activation over a memory graph improves multi-hop question answering.

USE CASE 3

Run retrieval-only ablations to compare vector search against graph-based memory recall.

USE CASE 4

Build on the released memory architecture for a custom long-context conversational agent.

What is it built with?

PythonGPT-4o-miniPageRankBM25Embeddings

How does it compare?

hq0709/synapse0xhassaan/nn-from-scratch3ks/embedoc
Stars00
LanguagePythonPythonPython
Last pushed2023-06-08
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity5/54/51/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a paid OpenAI API key for GPT-4o-mini and a Python 3.12 environment to run the benchmark.

No license information was found in the README, so usage rights are unclear.

In plain English

This project is the official code release for a research paper called SYNAPSE, accepted at a major computational linguistics conference in 2026. The paper's idea is to give AI chat agents a better kind of memory so they can hold long conversations and still remember details from hundreds of turns earlier. Instead of just searching past messages by keyword or similarity, SYNAPSE builds a graph that mixes two kinds of memory nodes: raw conversation turns and concepts pulled out of those turns by a language model. When a new question comes in, the system lights up matching nodes and lets that signal spread through the graph along different types of connections, similar to how one thought can lead to a related one. It then combines plain similarity search with this spreading signal and a ranking method borrowed from web search to decide what to pull back as an answer. The code is tested on LoCoMo, a public benchmark of long, multi-day conversations with nearly 2,000 question and answer pairs, and the README includes a table comparing this release's scores against the numbers reported in the original paper. It notes some scores differ slightly since this is a clean, from scratch reimplementation rather than the exact original code. The repository is organized as a small Python library covering the graph, the spreading logic, and the language model prompts, plus a set of scripts for downloading the benchmark data, running the full evaluation, and reproducing specific ablation experiments mentioned in the paper. Setting it up means cloning the repository, creating a Python 3.12 environment, installing dependencies, and adding your own OpenAI API key, since scoring the benchmark calls GPT-4o-mini and costs a small amount of money per run. This is aimed at machine learning researchers and engineers studying agent memory, not general users, since running it requires comfort with Python, command line tools, and paying for API usage.

Copy-paste prompts

Prompt 1
Walk me through setting up a Python 3.12 environment and running the smoke test for this project without any API calls.
Prompt 2
Explain how spreading activation across episodic and semantic nodes works in this codebase.
Prompt 3
How do I download the LoCoMo dataset and run the main benchmark script here?
Prompt 4
What is the difference between the plain, gentle, and strict QA modes in this repository?

Frequently asked questions

What is synapse?

SYNAPSE is a research codebase giving LLM agents graph-based episodic-semantic memory, tested on the LoCoMo long-conversation benchmark.

What language is synapse written in?

Mainly Python. The stack also includes Python, GPT-4o-mini, PageRank.

What license does synapse use?

No license information was found in the README, so usage rights are unclear.

How hard is synapse to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is synapse for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.