How the Client Works With Kumo Relational
With the Client, you describe related tables, write the prediction task in Predictive Query Language (PQL), a lightweight SQL-like interface, and run inference against a Kumo Relational NVIDIA NIM. Results come back as a pandas DataFrame. For what Kumo Relational is and how it predicts, refer to the Kumo Relational model page.
What You Can Predict
You can make the following kinds of predictions with Kumo Relational:
From Tables to Predictions
The Client uses table metadata and relationships to construct a Schema, the same type it uses for a single table.
For each prediction, PredictiveQuery.materialize() selects relevant historical context, samples each entity’s neighborhood, and encodes the result as a Request.
SDMClient.predict() sends it to the configured NIM and returns a PredictionResult.
The Client sends the materialized request context to the NIM endpoint. Data-boundary and security controls depend on where you deploy the NIM. Use HTTPS whenever an API key or sensitive data crosses a network boundary.
A Schema can describe tables already in memory (Schema.from_data) or tables left where they live, such as a warehouse or database sampled with SQL at prediction time (Schema.from_source). Refer to Build a Relational Graph.
How a Query Becomes Context
The model learns the task from labeled examples sent with each request, the context. A predictive query tells the Client how to build them:
- The query defines the target, prediction entity, and, for a temporal task, the prediction horizon.
materialize()constructs labeled context examples from historical database states.- For each context example and prediction entity, the Client samples related records visible as of that example’s anchor timestamp.
- The NIM reasons across table rows, columns, key relationships, and context examples to produce the prediction.
Because the timestamps define what information was available at each point in time, the Client constructs temporal context without exposing future events to the model.
Ranking and Forecasting on Narrower Deployments
A kumo-relational deployment can be configured to natively answer only classification and regression questions.
A ranking or a multi-step forecast is neither, so for that narrower deployment, the Client asks each as several classification or regression questions and assembles the answers:
- Ranking (
RANK TOP K) is decomposed into one classification call per candidate, asking whether this entity will reach that one, then ordered by confidence. Refer to Prediction Types. - Forecasting (
FORECAST N TIMEFRAMES) is decomposed into one regression call per step. Refer to Forecasting.
Both use several round trips automatically, but you still call materialize() and predict() once. Refer to Configuration for how many calls each can make.
Related Topics
The following pages take you through the standard workflow, from installing the Client to interpreting prediction results.