Skip to main content
GET
/
api
/
v3
/
alignment-project
/
{id}
Get Alignment Data
curl --request GET \
  --url https://api.nugen.in/api/v3/alignment-project/{id} \
  --header 'Authorization: Bearer <token>'
{
  "base_model": "nugen-flash-instruct",
  "completed_date": "2024-01-15T12:45:00Z",
  "created_date": "2024-01-15T10:30:00Z",
  "creator": "user@example.com",
  "document_count": 3,
  "documents": [
    "doc-abc123",
    "doc-def456",
    "doc-ghi789"
  ],
  "evaluation_id": "eval-xyz789",
  "id": "alignment-abc123",
  "model_id": "alignment-abc123-deployed",
  "name": "Customer Support Model",
  "performance_metrics": {
    "accuracy_after": 0.92,
    "accuracy_before": 0.75,
    "domain_violations_after": 2,
    "domain_violations_before": 12,
    "uncertainty_after": 0.15,
    "uncertainty_before": 0.35
  },
  "progress": 100,
  "status": "COMPLETED"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Returns detailed information about a specific alignment project, including metadata, associated documents, training progress, status, performance metrics, and evaluation information

id
string
required

Unique identifier for the alignment project

Examples:

"alignment-abc123"

"alignment-xyz789"

name
string
required

Human-readable name for the alignment project

Examples:

"Customer Support Model"

"Legal Document Assistant"

"Medical Q&A Bot"

base_model
string
required

ID of the base model used for alignment training

Examples:

"nugen-flash-instruct"

"model-20240229"

status
enum<string>
required

Current status of the alignment project (PENDING, COMPLETED, FAILED)

Available options:
pending,
completed,
deploying,
evaluating,
undeployed,
evaluated,
failed
created_date
string
required

ISO 8601 timestamp when the project was created

Examples:

"2024-01-15T10:30:00Z"

"2024-02-01T09:15:00Z"

documents
string[]
required

List of document IDs used for alignment training

Examples:
["doc-abc123", "doc-def456"]
["doc-xyz789"]
document_count
integer
required

Total number of documents used for training

Required range: x >= 0
Examples:

5

12

3

creator
string
required

Email/username of the user who created this project

Examples:

"user@example.com"

"admin@company.com"

completed_date
string | null

ISO 8601 timestamp when the project completed (null if still in progress or failed)

Example:

"2024-01-15T12:45:00Z"

performance_metrics
AlignmentProjectPerformanceMetrics · object

Performance comparison metrics showing before/after alignment improvements (available after evaluation)

progress
integer | null

Training progress percentage (0-100). Null if not started or completed.

Required range: 0 <= x <= 100
Example:

0

estimated_completion
string | null

Estimated completion time (ISO 8601 timestamp). Null if not available or completed.

Example:

"2024-01-15T14:00:00Z"

error
string | null

Error message if the alignment project failed. Null if no error.

Example:

"Training failed: insufficient data"

evaluation_id
string | null

Auto-evaluation ID if automatic evaluation was triggered after alignment completion

Example:

"eval-abc123"

model_id
string | null

Deployed model ID if the aligned model was automatically deployed for evaluation

Example:

"alignment-abc123-deployed"