Python SDK: Embeddings
⚠️
Preview — this feature is being built; the design below is the spec.
Vectors for search and similarity.
from syntic import Syntic
client = Syntic() # reads SYNTIC_API_KEY| Method | Endpoint | Returns |
|---|---|---|
embeddings.create | POST /v1/embeddings | EmbeddingResponse |
Methods
embeddings.create
Embed one string or a list of up to 2,048 strings. Maps to POST /v1/embeddings.
result = client.embeddings.create(
model="syntic-embed-1",
input=["refund policy", "shipping times"],
)Conventions
Every method accepts extra_headers, extra_query, extra_body and timeout keyword arguments, and has an async twin on AsyncSyntic. List methods return pages that iterate across all pages automatically.
See the Python SDK overview for installation, errors and retries.
Was this page helpful?