EmbaasEmbeddings()Embaas's embedding service.
To use, you should have the
environment variable EMBAAS_API_KEY set with your API key, or pass
it as a named parameter to the constructor.
Example:
.. code-block:: python
from langchain_community.embeddings import EmbaasEmbeddings emb = EmbaasEmbeddings()
from langchain_community.embeddings import EmbaasEmbeddings emb_model = "instructor-large" emb_inst = "Represent the Wikipedia document for retrieval" emb = EmbaasEmbeddings( model=emb_model, instruction=emb_inst )