POST
/
upload_chunks_and_embeddings
curl --request POST \
  --url https://api.carbon.ai/upload_chunks_and_embeddings \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "embedding_model": "OPENAI",
  "chunks_and_embeddings": [
    {
      "file_id": 123,
      "chunk_size": 123,
      "chunk_overlap": 123,
      "chunks_and_embeddings": [
        {
          "chunk_number": 123,
          "chunk": "<string>",
          "embedding": [
            123
          ]
        }
      ]
    }
  ],
  "overwrite_existing": true,
  "chunks_only": true,
  "custom_credentials": {}
}'
{
  "success": true
}

Authorizations

authorization
string
headerrequired

token <token>, corresponds to temporary access tokens.

Body

application/json
embedding_model
enum<string>
required
Available options:
OPENAI,
AZURE_OPENAI,
AZURE_ADA_LARGE_256,
AZURE_ADA_LARGE_1024,
AZURE_ADA_LARGE_3072,
AZURE_ADA_SMALL_512,
AZURE_ADA_SMALL_1536,
COHERE_MULTILINGUAL_V3,
VERTEX_MULTIMODAL,
OPENAI_ADA_LARGE_256,
OPENAI_ADA_LARGE_1024,
OPENAI_ADA_LARGE_3072,
OPENAI_ADA_SMALL_512,
OPENAI_ADA_SMALL_1536
chunks_and_embeddings
object[]
required
overwrite_existing
boolean
default: false
chunks_only
boolean
default: false
custom_credentials
object

Response

200 - application/json
success
boolean
required