While adding field to a collection im getting a 40...
# community-help
n
While adding field to a collection im getting a 400 while updating documents. that seems like a bug? what do you think it could be
a
Hi Nicholas, Could you give me the collection you are trying to add this field as well as the payload? If you can try also adding a {"field": "embedding", "drop": true} as well (even if there is no embedding field yet)
n
i managed to get it to work on 3rd try. Possibly timing issue? Attempted on cluster:raptorprod1 collection: 6499_testsemanticsearchv1_rf2rvra3vx2urlealmv3thfixu payload { "fields": [ { "name": "embedding", "type": "float[]", "embed": { "from": [ "name", "description", "briefDescription", "specification", "additionalProductData", "brand", "manufacturer", "productType", "properties", "treatmentType", "bodyPart", "condition", "skinType", "problemSkin", "ingredients", "activeIngredients", "substances", "vitaminsAndMinerals", "taste", "form", "fiberContent", "ageGroup", "sex", "intakeTypeName", "dosageStorageContent", "warningAndPrecautions", "sideEffects", "requiredMedicineInfo" ], "model_config": { "model_name": "openai/text-embedding-ada-002", "api_key": "sk-..." } } } ] }
a
Hmm I think that it actually worked on the first try but gave you a negative feedback for some reason. Glad it worked!
😅 1