PhiData (phidata) is a Python library designed for building multi-modal AI Agents with capabilities like memory, knowledge retrieval (RAG), and tool integration. It simplifies the development of complex AI workflows by providing high-level abstractions for agents, assistants, and various components. The current stable version is 2.7.10, and it maintains an active release cadence with frequent updates.
pip install phidataVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize an OpenAI LLM and create a simple Assistant to handle chat interactions. It highlights the basic setup for agents in phidata. Remember to set your `OPENAI_API_KEY` environment variable.
Migrate your codebase to the phidata v2 API. Refer to the official documentation (docs.phidata.dev) for updated import paths, class names, and configuration patterns.
Ensure all dependencies in your project are compatible with Pydantic v2, or use a tool like `pip-tools` or `poetry` for robust dependency resolution. Isolate environments if necessary.
Set the required API key as an environment variable (e.g., `export OPENAI_API_KEY='sk-...'`). For local development, consider using `python-dotenv` to load keys from a `.env` file.
Install phidata with the necessary extras using `pip install "phidata[extra_name]"`. For example, `pip install "phidata[qdrant]"` for Qdrant support. Consult the phidata documentation for a list of available extras.