td-vector-distance

Calculate vector distances with TD_VectorDistance in Teradata Vantage.

7|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/teradata-labs/claude-cookbooks --skill td-vector-distance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: td-vector-distance
Source: https://github.com/teradata-labs/claude-cookbooks/tree/main/skills/analytics/td-vector-distance
Command: npx skills add https://github.com/teradata-labs/claude-cookbooks --skill td-vector-distance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates the calculation of distances between vectors, enabling similarity analysis for tasks like document comparison and semantic search.

Core Features & Use Cases

  • Vector Distance Calculation: Computes various distance metrics (Euclidean, Manhattan, Cosine) between sets of vectors.
  • Similarity Analysis: Supports use cases such as document similarity, semantic search, and vector analysis.
  • Automated Workflow: Provides a complete workflow from data preprocessing to results analysis.

Quick Start

Use the td-vector-distance skill to calculate vector distances for the table named 'my_vectors'.

Frequently Asked Questions about td-vector-distance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate vector distance for similarity analysis in Teradata Vantage?

You can calculate vector distance for similarity analysis in Teradata Vantage by using the TD_VectorDistance function, which computes various distance metrics between sets of vectors. It supports an automated workflow from data preprocessing to results analysis.

What distance metrics can I use for semantic search in Teradata?

For semantic search in Teradata, the TD_VectorDistance function supports Euclidean, Manhattan, and Cosine distance metrics. These metrics enable you to measure document similarity and perform vector analysis on your data tables.

How do I compare document similarity using text analytics in Teradata?

You compare document similarity using text analytics in Teradata by applying the TD_VectorDistance function to your document vectors. The skill provides automated feature engineering and SQL generation to streamline the comparison workflow.

Does the TD_VectorDistance function include data preprocessing for vector analysis?

Yes, the TD_VectorDistance function includes automated data preprocessing and feature engineering for vector analysis. It generates the necessary SQL to provide a complete analytical workflow from raw data to distance calculation results.

Can I run vector distance calculations on existing database tables?

You can run vector distance calculations directly on existing database tables by referencing the table name in the skill. The automated workflow handles the SQL generation to compute similarity metrics without requiring external data extraction.

What is the best way to perform semantic search on text data stored in Teradata?

The best way to perform semantic search on text data in Teradata is using the TD_VectorDistance function to compute vector similarities. It handles the complete workflow including preprocessing, distance calculation, and result analysis for your text analytics.