I am importing documents to a schema that looks li...
# community-help
s
I am importing documents to a schema that looks like this:
Copy code
schema = {
  "name": "name",
  "fields": [
    {
      "name": "thing",
      "type": "string",
      "facet": True,
      "optional": True
    },
    ...
    {
      "name": "embedding",
      "type": "float[]",
      "embed": {
        "from": [
          "thing"
        ],
        "model_config": {
          "model_name": openai_model_name,
          "api_key": openai_api_key
        }
      }
    }
  ]
}
The JSONL is like this:
{"id": "676596", "thing": "bla bla", ...}
I am getting exactly as many 409 errors as there are JSONL lines saying:
{"code":409,"document":"{\"id\": \"676596\"...."error":"A document with id 676596 already exists.","success":false}
id
is in this case a WP Post ID i pass to the JSONL (but I do not have it in the Schema, I believe because I realised at some point it creates it anyway) I am 100% sure
id
is NOT duplicated in my JSONL and the upsert runs only only ONCE each line.