NebiusEmbeddings
class provides access to Nebius AI Studio’s embedding models through LangChain. These embeddings can be used for semantic search, document similarity, and other NLP tasks requiring vector representations of text.
api_key
or set as the environment variable NEBIUS_API_KEY
. You can obtain an API key by creating an account on Nebius AI Studio.
NebiusEmbeddings
class can be instantiated with optional parameters for the API key and model name:
NebiusEmbeddings
with a vector store for document retrieval.
InMemoryVectorStore
for lightweight applications:
NebiusEmbeddings
class to generate embeddings for text without using a vector store.
embed_query
method to embed a single piece of text:
embed_documents
method: