Modell-Abstammung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/models/{modelId}/lineage \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/models/{modelId}/lineage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/models/{modelId}/lineage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/models/{modelId}/lineage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_runs": [
{}
],
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"format": "<string>",
"size_bytes": 123,
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"parent_models": [
{
"model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"framework": "<string>",
"version": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_dataset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Datasets & Modelle
Modell-Abstammung abrufen
Rufen Sie den vollständigen Abstammungsgraphen für ein Modell ab, einschließlich Trainingsdatensätzen und übergeordneten Modellen.
GET
/
v1
/
models
/
{modelId}
/
lineage
Modell-Abstammung abrufen
curl --request GET \
--url https://api.truthlocks.com/v1/models/{modelId}/lineage \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/models/{modelId}/lineage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/models/{modelId}/lineage"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/models/{modelId}/lineage"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_runs": [
{}
],
"datasets": [
{
"dataset_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"format": "<string>",
"size_bytes": 123,
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z"
}
],
"parent_models": [
{
"model_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"receipt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"hash": "<string>",
"framework": "<string>",
"version": "<string>",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_dataset_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}Gibt den vollständigen Lineage-Graphen für eine Modellbestätigung zurück. Der Graph enthält alle Trainingsdatensätze, übergeordnete Modelle (für fein abgestimmte oder destillierte Modelle) und nachgeschaltete Bereitstellungen, die durch typisierte Beziehungen verbunden sind.
Die Modell-Abstammung ermöglicht es Compliance-Teams, genau nachzuvollziehen, welche Daten zum Trainieren eines Modells verwendet wurden, zu überprüfen, ob alle vorgelagerten Datensätze ordnungsgemäß attestiert sind, und die gesamte Herkunftskette von Rohdaten bis zur Produktionsbereitstellung zu prüfen.
Antwort
Array von Lineage-Knoten. Jeder Knoten enthält: -
id (string) — Ressource
Bezeichner – type (String) – Knotentyp: dataset, model oder deploymentname(string) — Menschenlesbarer Name -version(string) — Ressource Version -status(String) — Aktueller Attestierungsstatus -created_at(String) — ISO 8601 Zeitstempel
Array von Beziehungen, die Knoten verbinden. Jede Kante enthält: -
source
(String) — Quellknoten-Identifikator - target (String) — Zielknoten
Bezeichner – relationship (String) – Beziehungstyp (z. B. trained_on,
fine_tuned_from, distilled_from, deployed_as) – metadata (Objekt) —
Optionale Edge-MetadatenKomfortfeld, das alle Dataset-Knoten in der Lineage auflistet, die eine direkte
trained_on Beziehung zum abgefragten Modell. Jeder Eintrag enthält id,
name, version und status.
