GreenNode is a global AI solutions provider and a NVIDIA Preferred Partner, delivering full-stack AI capabilities—from infrastructure to application—for enterprises across the US, MENA, and APAC regions. Operating on world-class infrastructure (LEED Gold, TIA‑942, Uptime Tier III), GreenNode empowers enterprises, startups, and researchers with a comprehensive suite of AI servicesThis guide provides a guide to getting started with
GreenNodeEmbeddings. It enables you to perform semantic document search using various built-in connectors or your own custom data sources by generating high-quality vector representations of text.
Overview
Integration details
| Provider | Package |
|---|---|
| GreenNode | langchain-greennode |
Setup
To access GreenNode embedding models you’ll need to create a GreenNode account, get an API key, and install thelangchain-greennode integration package.
Credentials
GreenNode requires an API key for authentication, which can be provided either as theapi_key parameter during initialization or set as the environment variable GREENNODE_API_KEY. You can obtain an API key by registering for an account on GreenNode Serverless AI.
Installation
The LangChain GreenNode integration lives in thelangchain-greennode package:
Instantiation
TheGreenNodeEmbeddings class can be instantiated with optional parameters for the API key and model name:
Indexing and Retrieval
Embedding models play a key role in retrieval-augmented generation (RAG) workflows by enabling both the indexing of content and its efficient retrieval. Below, see how to index and retrieve data using theembeddings object we initialized above. In this example, we will index and retrieve a sample document in the InMemoryVectorStore.
Direct Usage
TheGreenNodeEmbeddings class can be used independently to generate text embeddings without the need for a vector store. This is useful for tasks such as similarity scoring, clustering, or custom processing pipelines.
Embed single texts
You can embed single texts or documents withembed_query:
Embed multiple texts
You can embed multiple texts withembed_documents:
Async Support
GreenNodeEmbeddings supports async operations:Document Similarity Example
API reference
For more details about the GreenNode Serverless AI API, visit the GreenNode Serverless AI Documentation.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.