Luis Gestoso Muñoz
01/23/2025, 4:38 PMError: t: Request failed with HTTP code 400 | Server said: OpenAI API error: Resource not found
I've tried the calling the model from my machine and it returns the embedding correctly. I think the problem it's because typesense expects the endpoint to be POST /v1/embeddings
but azure's provided endpoint doesn't have that structure.
A solution could be creating a custom server that handles the calls from typesense and calls the azure's endpoint. Is this the right approach? Isn't there a simpler way of connecting typesense directly with the model deployed?
Here's is the payload used to update the schema:
{
"fields": [
{
"name": "embedding",
"type": "float[]",
"embed": {
"from": [
"fullName",
"username"
],
"model_config": {
"model_name": "openai/text-embedding-3-small",
"api_key": "---",
"url": "<http://MY-URL-AAA.COM/embeddings?api-version=2023-05-15|MY-URL-AAA.COM/embeddings?api-version=2023-05-15>"
}
}
}
]
}
Jason Bosco
01/24/2025, 12:09 AMhttps://
before the URL in the model_config?Luis Gestoso Muñoz
01/24/2025, 8:06 AMhttps://
, the start of the url is <https://embedding-test-openai.openai.azure.com/openai/>
Jason Bosco
01/24/2025, 7:29 PMOzan Armağan
01/28/2025, 5:17 PMJoao Neves
02/03/2025, 6:11 PMJason Bosco
02/04/2025, 6:28 PMJoao Neves
02/04/2025, 6:31 PMLuis Gestoso Muñoz
02/19/2025, 10:08 AMKishore Nallan
02/19/2025, 4:53 PM29.0.rc1
that contains the fix.Kishore Nallan
02/19/2025, 4:54 PMLuis Gestoso Muñoz
02/19/2025, 4:58 PMKishore Nallan
02/19/2025, 4:59 PMKishore Nallan
02/19/2025, 4:59 PMLuis Gestoso Muñoz
02/19/2025, 5:00 PMLuis Gestoso Muñoz
02/19/2025, 5:12 PMKishore Nallan
02/19/2025, 5:13 PMLuis Gestoso Muñoz
02/19/2025, 5:13 PMKishore Nallan
02/19/2025, 5:14 PMLuis Gestoso Muñoz
02/19/2025, 5:16 PMOzan Armağan
02/19/2025, 5:31 PMYes, so I don't think we update existing documents. @Ozan Armağan can confirm.Yes, correct.
Joao Neves
02/19/2025, 6:44 PM