TypesenseClientError: [Errno 414] API error. quer...
# community-help
d
TypesenseClientError: [Errno 414] API error. query = "internist" embed = HttpClient.get_embedding_from_api(_embed_api_url_=f"http://127.0.0.1:8001/api/embed/mixedbread", text=query) search_params = { "q": query, "query_by": "name,gender_name,specialization_name,specialization_name_en,sub_specialization_name,sub_specialization_name_en,hospitals", "per_page": 10, "exclude_fields": "embedding_pisah_specialist, embedding_specialist_subspecialist, embedding_doctor, embedding_specialist, embedding_subspecialist", "exhaustive_search": True, "stopwords": "stopword_set1", "vector_query": f"embedding_specialist_subspecialist:({embed}, alpha: 0.7)" } ges I want ask about embedding my own, I have issue like this. Can anyone help me
f
Which client library are you using? Are you able to get the same error when using the client directly? (It looks like you've built an API layer on top of the Typesense client library)
d
client.collections["data_doctor_001-[mixbread]"].documents.search(search_params) I use this client. For the API just for embedd the query
f
Sorry, I was talking about what library in what language you're using (JS, Python, PHP)
d
ahh I used pyhton.
f
Can you try retrying but using the Client Library directly, instead of wrapping it in another API call / function?
d
instead of using .documents.search(search_params). I replaced it with .multi_search.perform(search_request, general search_params) this work
f
So you managed to fix this issue you were facing?
d
untuk saat ini saya tidak terlalu yakin, tapi bisakah saya menggunakan documents.search(search_params)?
I'm not too sure at the moment, but can I use documents.search(search_params)?
f
You should be able to use it, yes