Embeddings
POST /v1/embeddings
{ "model": "text-embedding-3-small", "input": "Parel provides one API for many model types."}Python
Section titled “Python”response = client.embeddings.create( model="text-embedding-3-small", input="Parel provides one API for many model types.",)
vector = response.data[0].embeddingKey fields
Section titled “Key fields”| Field | Type | Required | Description |
|---|---|---|---|
model | string | yes | Embedding model ID |
input | string or array | yes | Text to embed |
encoding_format | string | no | float or base64 when supported |
RAG pattern
Section titled “RAG pattern”- Embed the query.
- Search your vector database.
- Optionally rerank candidate documents.
- Send the top context to chat completions.