How to install
Installation
Prerequisites Package
| Package | Required/Optional | Purpose | How to Install |
|---|---|---|---|
| pydantic | ✅ Required | Core dependency | Auto-installed with llmfy |
| openai | 🔸 Optional | Use OpenAI models | pip install "llmfy[openai]" |
| boto3 | 🔸 Optional | Use AWS Bedrock models | pip install "llmfy[boto3]" |
| google-genai | 🔸 Optional | Use Google AI (Gemini) models | pip install "llmfy[google-genai]" |
| numpy | 🔸 Optional | Use Embedding, FAISSVectorStore |
pip install "llmfy[numpy]" |
| faiss-cpu | 🔸 Optional | Use FAISSVectorStore |
pip install "llmfy[faiss-cpu]" |
| typing_extensions | 🔸 Optional | Use state in FlowEngine |
pip install "llmfy[typing_extensions]" |
| redis | 🔸 Optional | Use RedisCheckpointer |
pip install "llmfy[redis]" |
| SQLAlchemy | 🔸 Optional | Use SQLCheckpointer (supports sync and async drivers) |
pip install "llmfy[SQLAlchemy]" |
-
SQLCheckpointer
Package Required/Optional Purpose How to Install asyncpg 🔸 Optional PostgreSQL async driver for SQLCheckpointerpip install asyncpgpsycopg2 🔸 Optional PostgreSQL sync driver for SQLCheckpointerpip install psycopg2aiomysql 🔸 Optional MySQL async driver for SQLCheckpointerpip install aiomysqlpymysql 🔸 Optional MySQL sync driver for SQLCheckpointerpip install pymysqlaiosqlite 🔸 Optional SQLite async driver for SQLCheckpointerpip install aiosqlite
Provider-specific extras
Install only the provider packages you need: