Create Interaction
Changed onRecord a search interaction (view, click, feedback, etc.).
Automatically computes and injects metadata.reward_value based on the interaction types and the retriever's reward_map configuration. This pre-computed value is used by the learned-fusion bandit aggregation query so it doesn't need to join against the retriever config at read time.
Deduplication (Phase 4e): If (execution_id, feature_id, interaction_type) has already been recorded within the last 5 minutes the duplicate is silently dropped.
Session cache (Phase 1b): When session_id is present the interaction is also written to the Redis session cache so the Thompson Sampling bandit can incorporate it in real time, before the stored aggregate refreshes.
Request
- Base URL: https://api.mixpeek.com
- URL: https://api.mixpeek.com/v1/retrievers/interactions
- Auth: HTTP bearer and API key in header X-Namespace
Request body
Example request
{
"description": "Minimal click interaction (query_snapshot and document_score optional)",
"execution_id": "exec_minimal_123",
"feature_id": "doc_abc123",
"interaction_type": [
"click"
],
"position": 2,
"session_id": "sess_minimal"
}Response
Successful Response
Example response
{
"description": "Minimal click interaction (query_snapshot and document_score optional)",
"execution_id": "exec_minimal_123",
"feature_id": "doc_abc123",
"interaction_type": [
"click"
],
"position": 2,
"session_id": "sess_minimal"
}Changes
- breaking
the
/response property's min was decreased from1.00to0.00for the response status - info
the
/request property's min was decreased from1.00to0.00
- breaking
- warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- warning