CAL queries
This Colab notebook walks through write declarative memory queries with the context assembly language — filters, scopes, time, semantic, hybrid. Click the badge above to open an editable copy in your own Google Drive.
Setup — one time
Generate an API key at app.areev.ai → Account → API Keys. Inside Colab, open the 🔑 Secrets panel (left sidebar) and add two entries:
| Name | Value |
|---|---|
AREEV_API_KEY | your Areev API key |
AREEV_MEMORY_ID | the memory id the notebook should target (e.g. my-first-memory) |
Toggle Notebook access ON for both. The notebook reads them via google.colab.userdata so the key never appears in the notebook itself.
What’s covered
- RECALL, ASSEMBLE, LET
- Filters and scopes
- Time-bounded queries
- Hybrid retrieval (BM25 + vector + graph)
- Saved queries (DEFINE QUERY / RUN)