# Embed the documents
doc_emb = co.embed(
    model="embed-v4.0",
    input_type="search_document",
    texts=[doc["text"] for doc in documents],
).embeddings
```

Further reading:

* [Embed endpoint API reference](https://docs.cohere.com/reference/embed)
* [Documentation on the Embed endpoint](https://docs.cohere.com/docs/embeddings)
* [Documentation on the models available on the Embed endpoint](https://docs.cohere.com/docs/cohere-embed)
* [LLM University module on Text Representation](https://cohere.com/llmu#text-representation)

## Embedding the query

Next, we add a query, which asks about how to stay connected to company updates.

We choose `search_query` as the `input_type` to ensure the model treats this as the query (instead of documents) for search.

```python PYTHON