from openapi import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.search.text_store.search_texts(store_name="<value>", x_api_key_id="<id>", x_user_id="<id>", x_exchange_jwt_external_user_id="<id>", query="noise-cancelling headphones", vector=[
0.16,
-0.08,
0.29,
], limit=5)
# Handle response
print(res){
"results": [
{
"group": "electronics_q1_2026",
"score": 0.9321,
"text": "Wireless noise-cancelling headphones with 30-hour battery life"
}
],
"search_time_ms": 24,
"total": 1
}Procure por textos semelhantes em uma loja
from openapi import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.search.text_store.search_texts(store_name="<value>", x_api_key_id="<id>", x_user_id="<id>", x_exchange_jwt_external_user_id="<id>", query="noise-cancelling headphones", vector=[
0.16,
-0.08,
0.29,
], limit=5)
# Handle response
print(res){
"results": [
{
"group": "electronics_q1_2026",
"score": 0.9321,
"text": "Wireless noise-cancelling headphones with 30-hour battery life"
}
],
"search_time_ms": 24,
"total": 1
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Solicitação para pesquisar textos semelhantes.
Esta página foi útil?