Get similar feedback records
Returns feedback record IDs and similarity scores for records similar to the given one (by embedding). Only available when embeddings are configured (EMBEDDING_PROVIDER and EMBEDDING_MODEL set). Supported providers: openai, google (Gemini Developer API / Google AI Studio), google-gemini (Gemini Enterprise Agent Platform API). When embeddings are disabled, this endpoint returns 503 Service Unavailable. Hub derives the tenant from the source feedback record and scopes the nearest-neighbor search to that tenant.
Path Parameters
Query Parameters
Omit for the first page. For the next page, use the exact value from the previous response's next_cursor. Opaque (base64-encoded); keyset pagination.
Number of results to return (default 10, max 100). Consistent with list endpoints.
Minimum similarity score (0..1); only results with score >= min_score are returned. Default 0.7 to reduce noise.
Returns
Limit used in query (echoed for consistency with list endpoints)
Opaque cursor for the next page (keyset paging). Present only when there may be more results (full page returned). Omit when no next page. Use this exact value as the cursor query param for the next page.
Get similar feedback records
curl http://localhost:8080/v1/feedback-records/$ID/similar \
-H "Authorization: Bearer $HUB_API_KEY"{
"data": [
{
"feedback_record_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"field_label": "field_label",
"score": 0,
"value_text": "value_text"
}
],
"limit": 0,
"next_cursor": "eyJkIjowLjEsImkiOiIwMThlMTIzNC01Njc4LTlhYmMtZGVmMC0xMTExMTExMTExMTEifQ=="
}Returns Examples
{
"data": [
{
"feedback_record_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"field_label": "field_label",
"score": 0,
"value_text": "value_text"
}
],
"limit": 0,
"next_cursor": "eyJkIjowLjEsImkiOiIwMThlMTIzNC01Njc4LTlhYmMtZGVmMC0xMTExMTExMTExMTEifQ=="
}