MemoryKit

Submit Feedback

Submit feedback (thumbs up/down) for a query or search response.

POST/v1/feedback

Request body

request_idstringrequired

The request_id from a query or search response.

ratingstringrequired

"positive" or "negative".

commentstring

Additional feedback text (max 1000 chars).

Response

Returns 201 Created.

idstring

Feedback ID.

request_idstring

The associated request ID.

ratingstring

The submitted rating.

created_atstring

ISO 8601 timestamp.

Example response
{
  "id": "fb_abc123",
  "request_id": "req_xyz789",
  "rating": "positive",
  "created_at": "2025-01-15T10:30:00Z"
}
await mk.feedback.create({
  requestId: "req_xyz789",
  rating: "positive",
  comment: "Great answer, very relevant sources",
});
Edit on GitHub

On this page