For the complete documentation index, see llms.txt. This page is also available as Markdown.

Embeddings

Turn text into vectors for semantic search and RAG with Nebula Block's embedding models.

Embedding models are machine learning models that convert data (such as text, images, or code) into dense numerical vectors in a continuous space. These vectors, called embeddings, capture the semantic relationships between different pieces of data, enabling efficient comparison and retrieval.

Models available

Model
Model ID
Notes

Qwen3-Embedding-8B 🇨🇦

Qwen/Qwen3-Embedding-8B

Strong multilingual and code support, top MTEB scorer, hosted in Canada

See the Model Catalog for the current list.

Using the model

Through the API

This option is to use our API endpoint directly in your projects. Below are some code snippets to get you started!

NOTE: Don't forget to use your API key. See the API Reference and the Overview for more details on authentication.

Using cURL

curl -X POST "https://inference.nebulablock.com/v1/embeddings" \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer $NEBULA_API_KEY" \
    --data-raw '{
      "model":"Qwen/Qwen3-Embedding-8B",
      "input":[ 
            "Bananas are berries, but strawberries are not, according to botanical classifications.",  
            "The Eiffel Tower in Paris was originally intended to be a temporary structure." 
        ] 
    }'

Using Python

Using JavaScript

Selecting a model

Pass the model ID from the table above as the model field.

Response Example

A successful response body will return the embeddings in this format:

NOTE: Notice that there are 2 embeddings, each with its own index number. These embeddings correspond to the given input sentences, of which there are 2. You can choose how many sentences to create embeddings for, this is just an example.

For every parameter and response field, see the Embeddings API reference.

See also

Last updated