Embeddings
Embedding
Vectorize content with an Isaacus embedding model.
post/embeddings
Request body
Example request
{
"model": "kanon-2-embedder",
"texts": [
"Are restraints of trade enforceable under English law?",
"What is a non-compete clause?"
],
"task": "retrieval/query"
}Response
Embeddings of texts produced by an Isaacus embedding model.
Example response
{
"embeddings": [
{
"index": 0,
"embedding": [
-0.0258,
0.02062,
-0.0114
]
},
{
"index": 1,
"embedding": [
-0.0358,
-0.0128,
0.00251
]
}
],
"usage": {
"input_tokens": 42
}
}