# Calculate Perception Encoder Embeddings in Workflows

<figure><img src="/files/b2QCuPQfJTrVcp9XzU8S" alt=""><figcaption></figcaption></figure>

You can now calculate text and image embeddings with [Meta AI's Perception Encoder model](https://ai.meta.com/research/publications/perception-encoder-the-best-visual-embeddings-are-not-at-the-output-of-the-network/).

To use this feature, go to Roboflow Workflows and add a "Perception Encoder Embedding Model" block to your Workflow.

You can compare two embeddings using the Cosine Similarity block.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/changelog/explore-by-month/june-2025/calculate-perception-encoder-embeddings-in-workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
