Search & Q&A

Full-text search and AI-powered Q&A over your Memoria collection.

GET/api/memoria/search

Full-text search across all entries.

Parameters

NameTypeRequiredDescription
qstringYesSearch query

Response

{
  "entries": [
    {
      "id": 42,
      "content": "The stock market is a device for transferring money from the impatient to the patient.",
      "sourceTitle": "The Intelligent Investor",
      "sourceAuthor": "Benjamin Graham"
    }
  ]
}
POST/api/memoria/qa

AI-powered Q&A over your Memoria collection. Returns a streaming response (SSE).

Request Body

FieldTypeRequiredDescription
questionstringYesYour question about the collection

Response

// Server-Sent Events (SSE) stream:
data: {"type":"content","text":"Based on your collection..."}
data: {"type":"content","text":" Warren Buffett emphasizes..."}
data: {"type":"citation","index":1,"ticker":"BRK.A","title":"The Intelligent Investor","author":"Benjamin Graham"}
data: {"type":"done"}