Skip to content

Installation

Before you install, check the Prerequisites.

From PyPI

The package has a light core and one optional set of packages for the assistant.

pip install tdfs4ds            # the feature store and the admin app
pip install "tdfs4ds[agent]"   # adds the assistant (see the table below)
pip install "tdfs4ds[all]"     # the assistant and Opik tracing
Install What you get What it adds
pip install tdfs4ds The feature store: setup, upload_features, run, roll_out, datasets, lineage, sanity checks, reports. The admin app (python -m tdfs4ds.serve) with every panel that does not need a language model: Overview, Store map, Feature catalog, Lineage, Runs, Health check, Maintenance, Migration, Benchmark teradataml, pandas, numpy, plotly, networkx, fastapi, uvicorn, pyvis, openpyxl
pip install "tdfs4ds[agent]" 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 langchain_*, langgraph, chromadb, teradatagenai, gradio
pip install "tdfs4ds[all]" Everything above, and tracing of agent turns with Opik opik

tdfs4ds[serve] still works: it installs the same packages as tdfs4ds[agent]. It does not install LangServe (which 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. Without the agent packages the app starts and tells you so: the assistant's panels (Assistant, Optimization, Evaluation, the documentation and vector-index steps of Maintenance) are greyed with the reason pip install tdfs4ds[agent], and everything else works. A call such as tdfs4ds.agent.consumer_agent(...) raises an ImportError that names the same command. When the configuration asks for the assistant (a model, an embedding model, a vector store, MCP or tracing is set) and the packages are missing, launch_app, configure_interactively and generate_ai_studio_env offer to install them, and tdfs4ds.install_agent_extra() does it on request: it prints the pip command, asks, uses --user when the environment is read-only, and installs the extra's requirement list instead when tdfs4ds is a source install or this version is not on the index. A kernel already running may need a restart to import the agent itself; the app sees the packages at once. TDFS4DS_INSTALL_AGENT=ask|yes|no sets the default.

An environment that already has the agent packages keeps them: upgrading tdfs4ds does not remove anything, but the packages are no longer pulled in by a plain pip install -U tdfs4ds. Add the extra when you want them kept up to date: pip install -U "tdfs4ds[agent]".

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

git clone https://github.com/denismolin/tdfs4ds.git
cd tdfs4ds
pip install -e .

Upgrading

Upgrade the package, then ask the store what it still owes.

pip install -U tdfs4ds

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

Extra agent (pip install "tdfs4ds[agent]")

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.