Contribute
Help map how ideas connect
Every note in Synapse is a Markdown file in a public repo. Finish a stub, write a note nobody has written yet, or fix something that's wrong — no account beyond GitHub, no setup to start.
Three ways to help
Write a ghost note
Hollow circles on the map are notes that other notes already point to. Pick one and give it a first draft.
See unwritten notesFinish a stub
Stubs have a title and a summary but stop short. Add the explanation, an example, or the relations it's missing.
See stubsImprove a note
Fix a mistake, tighten a paragraph or add a missing relation. Every note has an Edit on GitHub link.
Browse the mapWaiting for a writer
See all in List viewNotes the map already links to, each one a few paragraphs from done.
Anatomy of a note
One file per note. The frontmatter draws the map; the body is what people read.
- content/<field>/<cluster>/<slug>.md
- Where the file lives is who it is: the file name is the slug (and the address), the first folder is the field, the second the cluster.
- title
- The only required key. How the note is named on the map, in search and at the top of the page.
- summary
- One sentence. It shows on hover, in search and under the title.
- level
- How much the note assumes: foundational, intermediate or advanced.
- tags
- Loose topics for search and filters (tag:rag).
- aliases
- Other names people search for, like RAG.
- resources
- Papers and posts worth reading next, as a title and a url.
- requires · extends · related · contrasts
- Each slug becomes a line on the map: “requires”, “extends”, “is related to”, “contrasts”. A slug that doesn't exist yet appears as a ghost note — that's fine.
- [[wikilinks]]
- Links in the body become mention lines, hidden on the map until someone turns them on.
- https://… · !https://…
- A URL alone on its own line becomes a card with the page's title and description; put ! right before it for a large card with its image.
- Requires
- Extends
- Related
- Contrasts
- Mentions
---
title: Retrieval-augmented generation
summary: Ground a model's answer in documents fetched at query time.
level: intermediate
tags: [rag]
aliases: [RAG]
requires: [embeddings, vector-database, chunking, transformer]
related: [fine-tuning]
---
A retriever finds passages relevant to the question and the model writes its answer conditioned on them. Both halves lean on [[embeddings]]: questions and passages share one vector space.
The idea comes from Lewis et al. (2020), who paired a dense retriever with a sequence-to-sequence generator:
https://arxiv.org/abs/2005.11401
## The pipeline
Documents are split by [[chunking]], embedded once and stored in a [[vector-database]]. At query time:
```python
query_vector = embed(question)
passages = index.search(query_vector, k=5)
prompt = f"Answer using these passages:\n{passages}\n\nQuestion: {question}"
answer = llm.generate(prompt)
```
Anthropic's write-up shows how giving each chunk its context before embedding cuts failed retrievals:
!https://www.anthropic.com/news/contextual-retrieval
## When to reach for it
Use RAG when answers depend on facts the model wasn't trained on, facts that change often, or facts you need to cite. If you need a new style or skill rather than new facts, [[fine-tuning]] fits better.
https://huggingface.co/docs/transformers/model_doc/ragFrom idea to merged
- 01
Pick a note
A ghost on the map, a stub from the list, or something search couldn't find.
- 02
Write it
In GitHub's editor, or locally —
pnpm devdraws the map from your files. - 03
Open a pull request
Checks confirm the frontmatter is valid, the slug is unique and every link resolves.
- 04
Merged and live
The site rebuilds and your note joins the map, with you listed as a contributor.
Hacktoberfest 2026
Merged notes and fixes count. Issues labelled hacktoberfest point to the notes we'd most like written.
Style guide
Plain, short, sentence case. One idea per note, one sentence of summary, and only the relations you can say out loud.
Read the style guideStuck on something? Open an issue