GraphRAG
One question, the connected answer.
Why do profile changes keep a history?
- Documentdocs / profile-updates.md
Profile update flow
Starting point
- Decisiondecisions / 014-change-history.md
Keep a change history
Path: Profile update flow → Keep a change history
- Source codecustomer-service / profile.ts
recordChange()
Path: Profile update flow → Keep a change history → recordChange()
How it answers
Finds starting points
It finds starting points by meaning across documents, code, decisions and connected records, and by exact name (ticket keys, file paths, code identifiers).
Follows the graph
It follows the graph’s relationships from them. Items reached through the graph also carry the path that links them to the question.
Ranks what it found
It ranks everything by how well it matches and how closely it connects.
Returns sources
It returns items within a token budget, each with its source and a preview whose full text can be read on demand.
Finds more of the right answers
Your reranker
Search with the reranker you run.
Looks further
With a reranker set up, searches look further before choosing what to return, and include code matched by its own text.
Puts the top results in order
Your reranker reads the question beside each candidate and orders the top results by how well they answer it.
Keeps the connections
Related items one step away in the graph are listed under the result they connect to.
Trellis does not include a reranker: you run one and point Trellis at it. A reranked search takes longer, and searches for an exact name do not rerank. Your reranker receives your question and the text of your top results. A small open reranker on your own machine keeps them there. Trellis treats a reranker at any address other than localhost as remote, one on your local network included, and sends them to it only when you have allowed cloud calls and your organization has not blocked them.
What it does not do
- It does not write answers: your agent writes the answer from what Trellis returns.
- It has no general entity graph or summaries of themes across your data.
- It returns code as signatures, locations and summaries, not whole bodies.
- It matches exact names, such as ticket keys, file paths and code identifiers, not keywords inside a document’s text.
- It can only follow the links your sources contain: documents, pages, tickets and pull requests reach code through the code names and file paths they mention, and a merged pull request through the code it changed.