Search & Q&A
Full-text search and AI-powered Q&A over your Memoria collection.
GET
/api/memoria/searchFull-text search across all entries.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search 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/qaAI-powered Q&A over your Memoria collection. Returns a streaming response (SSE).
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| question | string | Yes | Your 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"}