Embeddings are high-dimensional vectors (typically 384 to 1536 dimensions) that encode semantic meaning. Similar texts will have similar embeddings, making them perfect for semantic search and clustering tasks.
Prerequisites
- A Paradigm API key: if you do not have one, go to your Paradigm profile (
/settings/api-keyin your instance) and generate a new API key. - The desired embedding model available in Paradigm: By default the embedding model used for the chat with docs should be available. If you want to use another embedding model, you must add it to Paradigm from the admin interface.
Usage methods
There are several ways to call the endpoint:- With the python
requestspackage - Through a curl request: for quick testing or first-time use
Python requests package
You can directly send request to the API endpoint through the requests package.