Gustavo
06/15/2023, 8:50 PMThe server had an error while processing your request. Sorry about that!
. I suspect the error has some relation with the fact the collection has a built-in embedding field. Cluster: v601y2x3upjea4tip
Jason Bosco
06/15/2023, 8:51 PMJason Bosco
06/15/2023, 8:51 PMGustavo
06/15/2023, 8:51 PMGustavo
06/15/2023, 8:51 PMJason Bosco
06/15/2023, 8:52 PMJason Bosco
06/15/2023, 8:52 PMGustavo
06/15/2023, 8:53 PM"error": {
"message": "The server had an error while processing your request. Sorry about that!",
"type": "server_error",
"param": null,
"code": null
}
Gustavo
06/15/2023, 8:54 PMJason Bosco
06/15/2023, 8:54 PMJason Bosco
06/15/2023, 8:55 PMGustavo
06/15/2023, 8:55 PMJason Bosco
06/15/2023, 8:56 PMGustavo
06/15/2023, 8:57 PMGustavo
06/15/2023, 8:57 PMGustavo
06/15/2023, 8:58 PMaction: upsert
doesn't work because of that error where Typesense sends an empty string to OpenAI.Gustavo
06/15/2023, 8:58 PMaction: create
and just ignore errors saying the document already exists.Jason Bosco
06/15/2023, 8:59 PMJason Bosco
06/15/2023, 9:00 PMGustavo
06/15/2023, 9:00 PMJason Bosco
06/15/2023, 9:01 PMGustavo
06/15/2023, 9:02 PMGustavo
06/15/2023, 9:03 PMJason Bosco
06/15/2023, 9:03 PMid:=[a, b, c, d, ...]
Gustavo
06/15/2023, 9:03 PMGustavo
06/15/2023, 9:03 PMJason Bosco
06/15/2023, 9:04 PMGustavo
06/15/2023, 9:05 PMGustavo
06/15/2023, 9:17 PM'$.input' is invalid. Please check the API reference: <https://platform.openai.com/docs/api-reference>.
even doing the workaround of deleting the document and recreating.Gustavo
06/15/2023, 9:18 PMGustavo
06/15/2023, 9:19 PMGustavo
06/15/2023, 9:19 PM0 documents imported successfully, 100 documents failed during import.
Gustavo
06/15/2023, 9:20 PMJason Bosco
06/15/2023, 9:21 PMGustavo
06/15/2023, 9:21 PMJason Bosco
06/15/2023, 9:21 PMJason Bosco
06/15/2023, 9:21 PMJason Bosco
06/15/2023, 9:22 PMGustavo
06/15/2023, 9:24 PMGustavo
06/15/2023, 9:25 PMJason Bosco
06/15/2023, 9:25 PMGustavo
06/15/2023, 9:25 PMJason Bosco
06/15/2023, 9:35 PMGustavo
06/15/2023, 9:52 PMdelete
and the retry
in this code. Other than that, the same code.
https://typesense-community.slack.com/archives/C01P749MET0/p1686864054410659?thread_ts=1686862232.273089&cid=C01P749MET0Gustavo
06/15/2023, 9:52 PMGustavo
06/15/2023, 9:53 PMGustavo
06/15/2023, 9:57 PMGustavo
06/15/2023, 10:29 PMGustavo
06/15/2023, 10:33 PMserver_error
from my first message.
2. I found that the invalid_request_error
error happening in the 100th batch is because Typesense is trying to generate the embedding from a field that's an array and is empty.
3. There's a single document like that, but the whole batch fails saying 0 documents imported successfully, 100 documents failed during import
.Gustavo
06/15/2023, 10:34 PMJason Bosco
06/15/2023, 10:35 PMJason Bosco
06/15/2023, 10:36 PMGustavo
06/15/2023, 10:36 PMJason Bosco
06/15/2023, 10:37 PMGustavo
06/15/2023, 10:37 PMGustavo
06/15/2023, 10:40 PM[0, 0, ...]
?) in that case instead of crashing.Gustavo
06/15/2023, 10:41 PMGustavo
06/15/2023, 10:42 PMJason Bosco
06/15/2023, 11:38 PMJason Bosco
06/15/2023, 11:39 PMGustavo
06/16/2023, 12:00 AMJason Bosco
06/16/2023, 12:01 AMGustavo
06/16/2023, 12:04 AMJason Bosco
06/16/2023, 12:06 AMnull