MemorySync
API Reference

Submit Feedback

Tell MemorySync whether a memory was useful. By default this moves the memory's importance, which is a weighted retrieval-ranking factor.

Endpoint and request fields

POST/memory/{memory_id}/feedback
200 OK
FieldTypeContract
signalstringRequired. One of positive, negative, retrieved, ignored.
commentstringOptional note, up to 1000 characters.

What each signal means

SignalMeaningEffect
positiveThe memory was useful.Raises importance.
negativeThe memory was wrong or unhelpful.Lowers importance, and by more than a positive raises it.
retrievedIt was shown to the user.A weak positive.
ignoredIt was shown but not used.A weak negative.

Negative moves further than positive on purpose: a wrong memory should stop appearing faster than a useful one climbs.

Submit a signal

import os
from memorysync import MemorySyncClient
client = MemorySyncClient(
api_key=os.environ["MEMORYSYNC_API_KEY"],
base_url="https://api.memorysync.io",
project_id=os.environ["MEMORYSYNC_PROJECT_ID"],
end_user_id="usr_7f3a9c2e",
)
result = client.feedback(101, "positive", comment="exactly what I needed")
print(result.importance_before, "->", result.importance_after)

Response shape

200-response.json
{"memory_id":101,"signal":"positive","importance_before":0.5,"importance_after":0.53,"adjustment":0.03,"influenced_ranking":true,"summary":{"total_signals":1,"signal_counts":{"positive":1,"negative":0,"retrieved":0,"ignored":0},"trend":{"momentum":"positive","consistency":1.0,"trend_multiplier":1.5,"recent_count":1}}}
FieldMeaning
adjustmentThe delta actually applied. 0.0 when ranking influence is disabled, or when the change was clamped away at the bounds.
influenced_rankingWhether this signal was allowed to change ranking. Reported rather than assumed, because it is configurable.
summary.trend.trend_multiplierHow much the base adjustment was amplified or damped.

The adjustment is adaptive, not fixed

A consistent run of the same signal amplifies the move, a burst of activity amplifies it further, and mixed signals damp it. A signal that contradicts a strong recent trend is applied cautiously. So the tenth positive signal moves importance more than the first, and the response reports exactly what was applied.

Importance is clamped

Billing

Not billed. Feedback is neither an add nor a retrieval, so it never counts against a plan allowance.

Errors and next action

A 400 means the signal is not one of the four valid values; the response names them. A 404 means the memory is not visible in this scope. A rejected signal changes nothing and records nothing.

Safety notes