LangDBEmbedder class is used to embed text data into vectors using the LangDB API. This embedder provides high-quality embeddings that can be used with various vector databases for semantic search and similarity matching.
Usage
langdb_embedder.py
Params
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | - | The API key used for authenticating requests to LangDB |
project_id | str | - | The project ID associated with your LangDB account |
model | str | - | The name of the model used for generating embeddings |
dimensions | int | - | The dimensionality of the embeddings generated by the model |
base_url | str | - | The base URL for the LangDB API endpoint |
request_params | Optional[Dict[str, Any]] | - | Additional parameters to include in the API request |
client_params | Optional[Dict[str, Any]] | - | Additional parameters for configuring the API client |
Environment Variables
Developer Resources
- View Cookbook