Field Values Vector Search
Operations for finding field values that are semantically similar to a search term.
Search for field values semantically similar to a given term
get/datamarts/{datamart_id}/field_values_vector_search
Path parameters
datamart_idstringRequired
Query parameters
search_termstringRequired
The term to embed and search
max_resultsinteger · int32Optional
Maximum number of results to return (default 25, max 25)
score_thresholdnumber · floatOptional
Minimum similarity score (dot product + 1.0, default 1.4)
Responses
200
Success !
application/json
countintegerRequired
max_resultsintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
totalintegerRequired
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
get/datamarts/{datamart_id}/field_values_vector_search
GET /v1/datamarts/{datamart_id}/field_values_vector_search?search_term=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"data": [
{
"value": "text",
"score": 0,
"fields": [
{
"field_path": "text",
"count": 0
}
]
}
],
"status": "ok",
"first_result": 1,
"total": 1
}Last updated
Was this helpful?