Eden AI is revolutionizing the AI landscape by uniting the best AI providers, empowering users to unlock limitless possibilities and tap into the true potential of artificial intelligence. With an all-in-one comprehensive and hassle-free platform, it allows users to deploy AI features to production lightning fast, enabling effortless access to the full breadth of AI capabilities via a single API. (website: https://edenai.co/)This example goes over how to use LangChain to interact with Eden AI embedding modelsAccessing the EDENAI’s API requires an API key,which you can get by creating an account https://app.edenai.run/user/register and heading here https://app.edenai.run/admin/account/settingsOnce we have a key we’ll want to set it as an environment variable by running:
Copy
Ask AI
export EDENAI_API_KEY="..."
If you’d prefer not to set an environment variable you can pass the key in directly via the edenai_api_key named parameterwhen initiating the EdenAI embedding class:
Copy
Ask AI
from langchain_community.embeddings.edenai import EdenAiEmbeddings