Create Interaction
Record 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 ClickHouse write-then-read latency settles).
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
Changed in 2 of the 30 revisions of this API.56
- ●
added the new
add_to_projectenum value to theinteraction_type/items/response property for the response status200response-property-enum-value-added
- ●
added the new
downloadenum value to theinteraction_type/items/response property for the response status200response-property-enum-value-added
- ●
added the new
playenum value to theinteraction_type/items/response property for the response status200response-property-enum-value-added
- ●
added the new
ratingenum value to theinteraction_type/items/response property for the response status200response-property-enum-value-added
- ●
added the new
saveenum value to theinteraction_type/items/response property for the response status200response-property-enum-value-added
- ○
added the new
add_to_projectenum value to the request propertyinteraction_type/items/request-property-enum-value-added
- ○
added the new
downloadenum value to the request propertyinteraction_type/items/request-property-enum-value-added
- ○
added the new
playenum value to the request propertyinteraction_type/items/request-property-enum-value-added
- ○
added the new
ratingenum value to the request propertyinteraction_type/items/request-property-enum-value-added
- ○
added the new
saveenum value to the request propertyinteraction_type/items/request-property-enum-value-added
- ●
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○