-
Notifications
You must be signed in to change notification settings - Fork 77
Core‐Concepts
Tejas edited this page May 30, 2026
·
1 revision
At its heart, predikit performs three critical functions: Validation, Transformation, and Inference.
When an LLM calls a tool, it often passes arguments as a JSON string. predikit uses your input_schema (Pydantic) to ensure:
- All required features are present.
- Data types (ints, floats, bools) are correct.
- Out-of-range values are caught before they hit the model.
Machine Learning models are picky about feature order.
-
DataFrame Models: If your model was trained on a DataFrame,
predikitautomatically aligns the LLM's input keys to the correct column order. -
NumPy Models: If no feature names are found,
predikitmaps the Pydantic fields to the model input based on the order they are defined in the class.
LLMs are "chatty." They might pass the string "1" instead of the integer 1. predikit includes built-in coercion logic, especially for Booleans (mapping "yes", "true", "on" to True), to prevent common agent failure points.