Skip to main content
Training data attribution surfaces the training data that influenced fine-tuned model outputs. By tracing model responses back to specific question-answer pairs from the training dataset, it helps debug model behavior and audit responses.
This method requires a fine-tuned model created with Seekr’s fine-tuning feature. Only models built after September 22nd, 2025 are supported.

Retrieve influential fine-tuning data

Endpoint: GET /v1/flow/explain/models/{model_id}/influential-finetuning-data
If you already have a model response from a prior chat.completions call, provide it as answer to skip an extra generation:

Reading the result

The response contains results, a list of influential question-answer pairs, along with the answer used (echoed back if you provided one, otherwise generated internally) and the schema version. Each result carries its id, the source file_id (use it to trace back and edit the training documents), the messages content in Q: <question>\nA: <answer> form, and an influence_level of high, medium, or low. Irrelevant pairs are filtered out and not returned. For the complete response schema, see the endpoint reference above.

Best practices

  • Interpreting influence levels: high means the Q/A pair strongly shaped the response; medium means moderate impact; low means minimal contribution. Look for recurring high pairs to understand the training patterns driving a response.
  • Unexpected results: If unrelated pairs are surfacing with high influence, review and refine your fine-tuning dataset.
  • Empty results: The model may simply not have found training pairs relevant to the prompt. This is not an error.

Common errors

  • TypeError – Raised by the SDK when a required parameter such as question is missing or invalid.
  • 404 Not found – The provided model_id does not exist.
For all status codes, see the endpoint reference.
Last modified on July 7, 2026