1curl -X POST https://api.credal.ai/api/v0/documentCollections/createDocumentCollection \2 -H "Authorization: Bearer <apiKey>" \3 -H "Content-Type: application/json" \4 -d '{5 "collectionName": "Customer Meeting Transcripts",6 "embeddingsModel": "text-embedding-ada-002",7 "distanceMetric": "EUCLIDEAN",8 "customMetadataSchema": {9 "fields": [10 {11 "name": "customerName",12 "type": "STRING"13 },14 {15 "name": "meetingDate",16 "type": "DATETIME"17 }18 ]19 }20}'
1{2 "documentCollectionId": "82e4b12a-6990-45d4-8ebd-85c00e030c24"3}