Target JSON Schema Reference#
When you create a target for an evaluation, you send a JSON data structure that contains the information for your target.
Important
Each target is uniquely identified by a combination of namespace
and name
. For example my-organization/my-target
.
The following table contains selected field reference for the JSON data. For the full API reference, refer to Evaluator API.
Name |
Description |
Type |
Valid Values or Child Objects |
---|---|---|---|
api_endpoint |
The endpoint for a model. |
Object |
|
api_key |
The key to access an API endpoint. |
String |
— |
cached_outputs |
Pre-generated data. |
Object |
|
context_ordering |
The order for retrieved results. |
String |
|
custom_fields |
An optional object that you can use to store additional information. |
Object |
— |
files_url |
The URL of a file that contains pre-generated data. Use |
String |
— |
id |
The ID of the target. The ID is returned in the response when you create a target. |
String |
— |
index_embedding_model |
The NIM model for the embedding model to perform indexing of documents. |
Object |
|
model |
The NIM model for an evaluation. |
Object |
|
model_id |
The ID of the NIM model, as specified in Models. |
String |
— |
name |
An arbitrary name for to identify the target. If you don’t specify a name, the default is the ID associated with the target. |
String |
— |
namespace |
An arbitrary organization name, a vendor name, or any other text. If you don’t specify a namespace, the default is |
String |
— |
pipeline |
The pipeline for a retriever or RAG evaluation. |
Object |
|
query_embedding_model |
The NIM model for the embedding model to perform querying. |
Object |
|
rag |
A RAG pipeline for an evaluation. |
Object |
|
reranker_model |
The NIM model for the reranker model to perform reranking documents. |
Object |
|
retriever |
A retriever pipeline for an evaluation. |
Object |
|
top_k |
The number of relevant documents to be retrieved based on the query, sorted descending by relevance score. |
Integer |
Any positive number. In practice, this value should usually be less than 100. |
type |
The type of the evaluation target. |
String |
|
url |
The URL of a model endpoint. |
String |
— |