Confidence tags
Graphify's provenance labels (EXTRACTED, INFERRED, AMBIGUOUS) attached to every edge, so you always know what was read from the source and what was worked out.
Confidence tags are Graphify's provenance labels, attached to every edge in the graph. They answer a question most retrieval systems can't: how do we know this? Not how relevant it scored, but how the relationship was actually established.
There are three tags. EXTRACTED means the relationship is written in the source: tree-sitter found the call, the import, the class definition. It's deterministic, it runs locally, and it doesn't hallucinate. INFERRED means Graphify worked the relationship out. That can happen with no model, when static resolution matches a call to a definition that no import proves, or in the optional model pass, when a doc page is linked to the service it describes. Every INFERRED edge carries a confidence score, so you can decide how far to lean on it. AMBIGUOUS means the evidence doesn't settle one relationship. Only the model pass uses it; when the parser finds a call with several possible targets, it leaves the edge out rather than pick a guess and present it as fact.
The design principle is that trust comes from visible seams, not flattened confidence. When an assistant tells you the payment worker depends on the sessions table, you should be able to see at a glance whether that came from the parser or from an inference, and lean on it accordingly. A cosine similarity score of 0.83 can't tell you this: it measures resemblance, not provenance. Tags travel with every answer: graphify explain shows how each connection on a node was established, and GRAPH_REPORT.md gives the share of edges under each tag and lists the AMBIGUOUS ones for review.
Related terms
- Edge: A typed, directed relationship between two nodes (calls, imports, defines, references), each carrying a provenance tag.
- Tree-sitter / AST: An AST is the parsed structure of source code; tree-sitter is the open-source parser library Graphify runs entirely locally to extract it.
- RAG (retrieval-augmented generation): A pipeline that chunks documents, embeds them as vectors, and retrieves the most similar chunks at query time: lookup by resemblance, not structure.
Go deeper
From the blog
- How to audit inferred edges in a code graph: Inferred edges in a code graph are hops a resolver worked out rather than read. Count them, find their source, and check them before you trust a path.
- Grounded answers: how Graphify tags what it knows: Confidence tags label every Graphify edge EXTRACTED, INFERRED, or AMBIGUOUS, so an agent can see what was parsed and what was guessed.
- Graphify edge confidence: EXTRACTED, INFERRED, AMBIGUOUS: Graphify edge confidence explained: what EXTRACTED, INFERRED, and AMBIGUOUS mean, where confidence scores come from, and how to check them.