tdfs4ds
A temporal feature store for Teradata Vantage with full time-travel, lineage, LLM-powered documentation, a conversational agent and an automated query optimizer — built for data scientists.
Get started Tutorials User guide AI capabilities Deployment Recipes API reference
New in 0.3.7: calendar rules, scheduled refresh and impact analysis. See What's new and the release notes.
Why tdfs4ds¶
tdfs4ds lets you register, store, and serve features inside a Teradata Vantage
database while keeping the full history of every feature value, every
process, and every dataset. All catalogs are temporal — point-in-time queries,
re-runs, and audit are first-class.
On top of the storage layer, the package adds:
- Auto-documentation of every process and dataset with an LLM (OpenAI, Azure, vLLM or AWS Bedrock).
- A business dictionary with three-level hierarchical structure designed for chunking-free RAG.
- A conversational consumer agent (LangGraph + Chroma + Gradio) so business users can query the store in natural language.
- A query optimizer that scores Teradata EXPLAIN plans, generates
candidate rewrites, and proposes a
FilterManagerwhen a partition opportunity is detected. - A bundle of agent skills (
SKILL.mdfiles) that teach any code-aware LLM how to use the package end-to-end.
Start here by role¶
Ask questions in the app, look at what exists, and read the definitions.
- The admin app: the web app, its Business analyst profile and its pages.
- Consumer agent: ask the store in natural language.
- Export the feature catalog: browse features and their producers.
- Datasets: what a dataset is and how to read one.
- Glossary: the words used here.
Build the tables you train and score on.
- Datasets: snapshots at a given instant.
- Historical datasets: one row per period of constant values.
- Lags and leads: values shifted in time.
- Plot in the database: charts without moving rows.
- Work with an AI coding assistant: describe the pipeline, let the assistant write it.
Design, run and maintain the processes.
- Good practices: the rules to follow.
- Design a workflow: entities, processes, order.
- upload_features: register a process.
- TimeManager & roll_out and FilterManager: business dates and segments.
- Work with an AI coding assistant: skills that make the assistant follow these rules.
Install, connect, configure and watch over the store.
- Installation and Connect and configure.
- Configuration:
.env, JSON and variables. - Deployment: the API server and the app.
- Prerequisites: what the environment, the database and the user need.
- The admin app: profiles, pages and the valid-time banner.
- Assess workflow health: the sanity checks and their verdict.
Navigate the docs¶
1 · Getting started
Install, connect, register your first feature and dataset in under 10 minutes.
2 · Tutorials (notebooks)
Thirteen guided modules from basic ingestion to lineage and vector stores.
3 · Concepts
Architecture, temporal data model, data domains, and hidden tables explained.
4 · Configuration
Programmatic globals, .env file, JSON config, environment variables.
5 · User guide
upload_features, FilterManager, TimeManager, datasets, inspect & monitor.
6 · AI capabilities
Process & dataset documentation, business dictionary, consumer agent, query optimizer.
7 · Lineage
Build dependency graphs, render Sankey diagrams, export a migration manifest.
8 · Agent skills
Self-contained SKILL.md files teaching any code-aware LLM to drive tdfs4ds.
9 · Recipes
Copy-paste patterns for common workflows.
10 · Deployment
Run the OpenAI-compatible API server locally or in Docker. Admin UI, chatbot, docs server.
11 · API reference
Auto-generated from docstrings — every public function and class.
30-second snippet¶
import teradataml as tdml
tdml.create_context(host=..., username=..., password=...)
import tdfs4ds
tdfs4ds.connect(database='my_db', create_if_missing=True)
tdfs4ds.create_data_domain('CUSTOMER_ANALYTICS')
# Register a feature engineering view
df = tdml.DataFrame(tdml.in_schema('my_db', 'FEAT_ENG_CUSTOMER'))
tdfs4ds.upload_features(
df,
entity_id = ['CUSTOMER_ID'],
feature_names = ['total_amount', 'avg_amount'],
dataset_view_name = 'ds_customer_spend',
)
That single call registers the entity, registers the features, registers a process for re-execution, ingests data into the temporal feature tables, builds a denormalised dataset view, and (when an LLM is configured) generates business descriptions and an EXPLAIN plan score.
Compatibility¶
| Requirement | Version |
|---|---|
| Python | ≥ 3.6 |
| teradataml | ≥ 17.20 |
| Teradata Vantage | Any release with temporal table support |
See Installation for a full dependency list.