Skip to main content
LangDBEmbedder routes OpenAI-compatible embedding requests through the project selected by LANGDB_PROJECT_ID.
langdb_embedder.py
The default model is text-embedding-ada-002 with 1536 dimensions. Pass id and dimensions together when selecting another model.
Agno v2.7.2 constructs the legacy api.us-east-1.langdb.ai host when base_url is omitted. LangDB’s current API guide uses api.langdb.ai. Pass base_url as shown above.

Run the Example

1

Set up your virtual environment

2

Configure the project

3

Install dependencies

4

Run the example

Developer Resources