Memory Text — Additional Operations
intermediateText embedding and similarity utilities. Complements the core text endpoints documented in Memory Core.
This page documents supplementary text endpoints. The primary text API endpoints (store, retrieve, recall, explain, predict, forget, batch-store, stats, important) are documented in Memory Core.
Embed
/v1/memory/text/embedReturn the raw embedding vector for a text string. Uses the same SentenceTransformer encoder (paraphrase-multilingual-MiniLM-L12-v2) as store and retrieve. Useful for calling vector-based endpoints (causal/strength, compose, etc.) with text-originated patterns.
textstringrequiredText to embed. Min 1, max 10,000 characters.
{
"embedding": [0.023, -0.041, 0.089, 0.015, ...],
"dim": 384
}curl -X POST https://api.engramma-memory.com/v1/memory/text/embed \
-H "X-API-Key: $ENGRAMMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Paris is the capital of France"}'Similarity
/v1/memory/text/similarityCompute semantic similarity between two texts. Returns cosine similarity in the embedding space (typically 0 to 1 for meaningful text).
text_astringrequiredFirst text. Min 1, max 5,000 characters.
text_bstringrequiredSecond text. Min 1, max 5,000 characters.
{
"similarity": 0.87,
"embedding_dim": 384
}curl -X POST https://api.engramma-memory.com/v1/memory/text/similarity \
-H "X-API-Key: $ENGRAMMA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text_a": "Paris is the capital of France", "text_b": "The capital city of France is Paris"}'Complete endpoint list
All /v1/memory/text/* endpoints:
| Method | Path | Description |
|---|---|---|
| POST | /v1/memory/text/store | Store a text fact |
| POST | /v1/memory/text/batch-store | Store up to 50 facts at once |
| POST | /v1/memory/text/retrieve | Cosine similarity search |
| POST | /v1/memory/text/recall | Intelligent recall (Active Inference) |
| POST | /v1/memory/text/similarity | Compare two texts |
| POST | /v1/memory/text/predict | Predict next query |
| POST | /v1/memory/text/explain | Explain a retrieval |
| DELETE | /v1/memory/text/forget | Selective forget |
| POST | /v1/memory/text/embed | Get raw embedding vector |
| GET | /v1/memory/text/stats | Tenant statistics |
| GET | /v1/memory/text/important | Protected facts |
Next steps
- Memory Core — Primary text API documentation
- Memory Vectors — Low-level vector operations
- Engine Advanced — Semantic, consolidation, diagnostics