You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Retrieve:** Your agent asks ALMA for relevant memories. ALMA searches using FAISS vector similarity, scores results by relevance + recency + success rate + confidence, and returns the most useful context.
116
+
**Retrieve:** Your agent asks ALMA for relevant memories. ALMA searches using FAISS vector similarity, scores results by relevance + recency + success rate + confidence, and returns the most useful context. With Veritas trust scoring enabled, memories from trusted agents rank higher automatically.
117
+
118
+
**Verify:** For high-stakes decisions, ALMA's verified retrieval cross-checks memories against each other. Contradictions are flagged before your agent acts on bad data.
117
119
118
120
**Learn:** After the task, ALMA records what happened — success or failure, what strategy was used, how long it took.
119
121
@@ -180,6 +182,89 @@ ALMA is a library, not a service. Your database, your rules.
When you run multiple agents, memories can conflict. Agent A says "lead is disqualified." Agent B says "lead is engaged." Which one does your agent trust?
190
+
191
+
ALMA includes the **Veritas trust framework** — built-in trust scoring and memory verification so your agents don't act on bad data.
192
+
193
+
**Trust Scoring** — Every agent builds a trust profile over time. Memories from trusted agents rank higher.
194
+
195
+
```python
196
+
from alma.retrieval.trust_scoring import TrustAwareScorer, AgentTrustProfile
Trust scores factor in 5 behavioral dimensions: verification-before-claim, loud-failure, honest-uncertainty, paper-trail, and diligent-execution. Trust decays over time if an agent goes inactive (30-day half-life), so stale agents don't get trusted blindly.
222
+
223
+
**Verified Retrieval** — For high-stakes decisions, ALMA can verify memories before your agent uses them.
224
+
225
+
```python
226
+
from alma.retrieval.verification import VerifiedRetriever, VerificationConfig
227
+
228
+
retriever = VerifiedRetriever(
229
+
retrieval_engine=alma.retrieval_engine,
230
+
llm_client=my_llm, # Optional — works without LLM too
231
+
config=VerificationConfig(
232
+
enabled=True,
233
+
default_method="cross_verify", # Verify against other memories
|**VERIFIED**| Confirmed accurate against ground truth or other memories | Yes |
262
+
|**UNCERTAIN**| No conflicting evidence, but unconfirmed | Yes, with caution |
263
+
|**CONTRADICTED**| Conflicts with other memories detected | No — review needed |
264
+
|**UNVERIFIABLE**| Can't be verified (no other sources) | Use your judgment |
265
+
266
+
This is critical for multi-agent systems. Without verification, your voice agent might call a lead that your email agent already disqualified — because both agents stored conflicting memories about the same person.
267
+
183
268
---
184
269
185
270
## Install
@@ -313,11 +398,13 @@ Connect ALMA directly to Claude with 22 MCP tools:
0 commit comments