API Reference#
Welcome to AdalFlow. The API reference is organized by subdirectories.
Core#
All base/abstract classes, core components like generator, embedder, and basic functions are here.
Base building block for building LLM task pipelines. |
|
Container component for composing multiple components, such as Sequential and ComponentList. |
|
|
A base class that provides an easy way for data to interact with LLMs. |
This is the default system prompt template used in the AdalFlow. |
|
LocalDB to perform in-memory storage and data persistence(pickle or any filesystem) for data models like documents and dialogturn. |
Components#
Functional components like model client, retriever, agent, local data processing, and output parsers are here.
Anthropic ModelClient integration. |
|
Cohere ModelClient integration. |
|
Google GenAI ModelClient integration. |
|
Groq ModelClient integration. |
|
OpenAI ModelClient integration. |
|
Huggingface transformers ModelClient integration. |
|
Helpers for model client for integrating models and parsing the output. |
|
Helper components for data transformation such as embeddings and document splitting. |
|
Splitting texts is commonly used as a preprocessing step before embedding and retrieving texts. |
Datasets#
Evaluation#
Optimization#
Tracing#
Utils#
Default Dataset, DataLoader similar to utils.data in PyTorch. |
|
This logger file provides easy configurability of the root and named loggers, along with a color print function for console output. |
|
|
Load environment variables from .env file. |
Lazy import a module and class. |
|
Config helper functions to manage configuration and rebuilt your task pipeline. |
|