Installation¶
Before you install, check the Prerequisites.
From PyPI¶
A plain pip install tdfs4ds installs everything: the feature store, the admin app and the assistant.
pip install tdfs4ds # the feature store, the admin app and the assistant
pip install "tdfs4ds[opik]" # adds tracing of agent turns with Opik (TDFS4DS_TRACING=opik)
| Install | What you get | Main packages |
|---|---|---|
pip install tdfs4ds |
The feature store: setup, upload_features, run, roll_out, datasets, lineage, sanity checks, reports. The admin app (python -m tdfs4ds.serve). The assistant: the consumer agent and its chat (in the app and in Gradio), query optimization, agent evaluation, LLM documentation, the vector index, the MCP skills, deployment to AgentOps |
teradataml, pandas, numpy, plotly, networkx, fastapi, uvicorn, pyvis, openpyxl, langchain_*, langgraph, chromadb, teradatagenai, gradio |
pip install "tdfs4ds[opik]" |
Tracing of agent turns with Opik | opik |
tdfs4ds[agent], tdfs4ds[serve] and tdfs4ds[all] still work (so do older install commands, Dockerfiles and
requirements files): agent and serve add nothing, because those packages are in the default install since
0.3.8.2; all adds opik. LangServe is not installed (it needs langchain-core below 1.0), so the playground
routes /consumer and /query-optimizer are gone; the agents are served through /v1, see
Serve the agents.
Python 3.10 or later is required. The assistant's packages are imported only when the assistant is used, not by
import tdfs4ds, so the feature store loads quickly. If they are missing from an environment (a source checkout, a
manual removal), the app starts and says so: the assistant's panels are greyed with the reason
pip install tdfs4ds, and everything else works. A call such as tdfs4ds.agent.consumer_agent(...) raises an
ImportError that names the same command, and tdfs4ds.install_agent_extra() installs them on request.
0.3.8.0 and 0.3.8.1
Those two releases kept the assistant out of the default install (pip install tdfs4ds[agent]) because an
unbounded Gradio made pip backtrack into an old pandas. The cause is fixed (gradio>=6), so the assistant is
in the default install again from 0.3.8.2. Nothing to change in an existing environment: pip install -U tdfs4ds
keeps them up to date.
If the install fails with "Failed to build pandas"¶
pip may try an old pandas that has no wheel for your Python, then build it from source and fail
(on Python 3.11 with pkg_resources, on Python 3.13 with meson / vswhere). Find which package asks
for the old version, and install a recent pandas first:
pip install --only-binary=pandas tdfs4ds # fails at once and names the package that conflicts
pip install "pandas>=2.2" "numpy>=1.26" # then install tdfs4ds again
pip install tdfs4ds
From source¶
Upgrading¶
Upgrade the package, then ask the store what it still owes.
In a notebook, run %pip install -U tdfs4ds, then restart the kernel so the new version is loaded.
import tdfs4ds
tdfs4ds.upgrade_store() # dry run: lists the one-off steps the store still owes
tdfs4ds.upgrade_store(dry_run=False) # applies the pending steps
When you connect, connect() logs one line if a step is pending. It tells you to run tdfs4ds.upgrade_store().
Set tdfs4ds.UPGRADE_CHECK_ON_CONNECT = False to turn that line off.
For the use of upgrade_store() in daily operation, see
Maintain a workflow.
Dependencies¶
tdfs4ds declares these runtime dependencies in setup.py (lower bounds only):
Base install
| Library | Purpose |
|---|---|
teradataml >= 20.0.0.0 |
Teradata client used for every query |
pandas >= 1.5 (>= 2.2.3 on Python 3.13), numpy |
DataFrame primitives |
plotly, tqdm, networkx, pyvis |
Charts, progress bars, graph algebra, interactive lineage graphs |
sqlparse |
Lightweight SQL parsing for the lineage walker |
fastapi, uvicorn, sse-starlette, httpx[socks], markdown |
The admin app |
pydantic |
Typed models |
nbformat >= 4.2.0, openpyxl >= 3.1 |
Notebook utilities; Excel export |
The assistant (installed by default since 0.3.8.2)
| Library | Purpose |
|---|---|
langchain_openai, langchain_aws, langchain_mistralai, langchain_core >= 1.0, langchain_chroma, langchain_teradata |
LLM and embedding adapters |
langchain_mcp_adapters >= 0.3.2 |
MCP tools for the chat |
teradatagenai |
Teradata Vector Store client |
langgraph |
StateGraph orchestrating the consumer agent and query optimizer |
chromadb |
Persistent vector store for the consumer agent |
gradio |
Chatbot UI |
pysqlite3-binary (Linux only) |
Newer SQLite for chromadb |
Tracing needs opik: pip install tdfs4ds[opik] (also part of tdfs4ds[all]).
import tdfs4ds loads none of the agent packages: tdfs4ds.agent and tdfs4ds.genai import them
on first use.
Verifying the install¶
import tdfs4ds
print(tdfs4ds.__version__) # prints the installed version
print(tdfs4ds.list_skills()) # 47 bundled agent skills
Installing the agent skills¶
The package ships with 47 discoverable SKILL.md files organized in families
that teach Claude Code (and compatible agents) how to drive the feature store end-to-end:
- fs-* (19 skills) — Feature store operations (upload, document, analyze, migrate, ...)
- qo-skill-* (3 skills) — Query optimization with nested prompts
- td-* (8 skills) — Teradata utilities (EXPLAIN, plots, UAF, k-means, AgentOps)
- ca-* (16 skills) — Consumer agent intents (discovered dynamically when using the agent)
- eval-* (1 skill) — Agent evaluation inspection
Python API¶
import tdfs4ds
# Copy all skills to ~/.claude/skills/ (Claude Code user-level, all projects)
tdfs4ds.install_skills()
# Or into the current project only
tdfs4ds.install_skills(target_dir='.claude/skills')
# Only add skills that are not present yet (safe for shared project dirs)
tdfs4ds.export_skills('.claude/skills') # overwrite=False by default
# Install a specific subset
tdfs4ds.install_skills(skills=['fs-setup', 'fs-upload'])
CLI (with the venv active)¶
# User-level install — picked up in every project
tdfs4ds-install-skills
# Project-level install
tdfs4ds-install-skills --target .claude/skills
# Skip skills already present
tdfs4ds-install-skills --target .claude/skills --no-overwrite
# List bundled skill names
tdfs4ds-install-skills --list
Sharing with teammates¶
If the project repository already contains .claude/skills/, teammates get
the skills automatically on git pull — no install step needed.
If each person installs tdfs4ds into their own virtual environment, they run
tdfs4ds.install_skills() (or the CLI equivalent) once after activation.
How to use them with an assistant: Work with an AI coding assistant. See Agent skills for the full catalogue, workflow chains, and authoring guide.
Next step¶
Open a Teradata context and provision the feature store catalogs in Connect and configure.