Skip to content

Commit

Permalink
[DOCS] Adds note to inference tutorial about similarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Mar 20, 2024
1 parent 5d05d81 commit 437b663
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/reference/tab-widgets/inference-api/infer-api-task.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ key.
<3> The name of the embedding model to use. You can find the list of Cohere
embedding models https://docs.cohere.com/reference/embed[here].

NOTE: The default `similarity` for the service is `dot_product` while the
default `similarity` of a `dense_vector` field of an index is `cosine`. In the
case of the Cohere service models, you can use the two `symilarity` types
interchangeably.



// end::cohere[]


Expand Down Expand Up @@ -51,4 +58,9 @@ key.
embedding models
https://platform.openai.com/docs/guides/embeddings/embedding-models[here].

NOTE: The default `similarity` for the service is `dot_product` while the
default `similarity` of a `dense_vector` field of an index is `cosine`. In the
case of the OpenAI service models, you can use the two `symilarity` types
interchangeably.

// end::openai[]

0 comments on commit 437b663

Please sign in to comment.