Documentation Index
Fetch the complete documentation index at: https://docs.9dlabs.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Confidence Score
Every context pack includes aconfidence score (0.0 - 1.0) that reflects how well the retrieved evidence matches the query. The score accounts for:
- Relevance strength — How closely the top evidence matches the query
- Evidence depth — Whether multiple strong matches were found
- Budget coverage — How much of the token budget was filled with useful evidence
- Source diversity — Whether evidence comes from multiple artifacts or just one
Abstention
When the system determines it cannot provide reliable evidence, it setsabstain_flag: true instead of returning low-quality context. This lets your agent decline to answer rather than hallucinate with bad context.
Abstention Triggers
| Condition | Threshold |
|---|---|
| Confidence score too low | < 0.08 |
| Insufficient evidence tokens | < 20 tokens total |
Handling Abstention
Abstention Reasons
Theabstain_reason field provides a human-readable explanation:
"Confidence too low"— The evidence quality is below the threshold"Insufficient evidence tokens"— Too little evidence was found to form a useful context