SolarEmbeddings()Solar's embedding service.
To use, you should have the environment variableSOLAR_API_KEY set
with your API token, or pass it as a named parameter to the constructor.
Example:
.. code-block:: python
from langchain_community.embeddings import SolarEmbeddings embeddings = SolarEmbeddings()
query_text = "This is a test query." query_result = embeddings.embed_query(query_text)
document_text = "This is a test document." document_result = embeddings.embed_documents([document_text])