# Embed the documents with the given embedding types
doc_emb = co.embed(
    model="embed-v4.0",
    embedding_types=["float", "int8"],
    input_type="search_document",
    texts=[doc["text"] for doc in documents],
).embeddings