ModelResponse
Represents one loaded embedding or reranking model.
For the list of response object types, see Response Objects.
Use ModelResponse to inspect model metadata such as the model name, algorithm, mining function, creation time, and model attributes.
Attributes
| Attribute | Type | Description |
|---|---|---|
model_name |
str or None |
Name of the loaded model. |
algorithm |
str or None |
Algorithm or model format reported by the database. |
mining_function |
str or None |
Model mining function, such as embedding or reranking. |
creation_date |
str or None |
Timestamp when the model was created in the database. |
attributes |
list[ModelAttributeItem] or None |
Model attribute metadata, including input and output attribute definitions returned by the service. |
Methods
| Method | Return Type | Description |
|---|---|---|
model_dump() |
dict[str, Any] |
Returns a dictionary representation of the response. |
model_dump_json() |
str |
Returns a JSON string representation of the response. |
to_dict() |
dict[str, Any] |
Returns a dictionary representation compatible with earlier SDK response handling. |
to_json() |
str |
Returns a JSON string representation compatible with earlier SDK response handling. |
to_str() |
str |
Returns a readable string representation compatible with earlier SDK response handling. |
model_validate(obj) |
ModelResponse |
Creates a response object from a dictionary payload. |
model_validate_json(json_data) |
ModelResponse |
Creates a response object from a JSON string. |
Iterate Attributes
Use the response serialization helper to iterate every public attribute.
response = client.describe_model(model_name="ALL_MINILM_L12_V2")
payload = response.to_dict()
for attribute, value in payload.items():
print(attribute, value)
Sample Response
{
"model_name": "ALL_MINILM_L12_V2",
"algorithm": "ONNX",
"mining_function": "EMBEDDING",
"creation_date": "2026-01-27T07:23:21Z",
"attributes": [
{
"name": "DATA",
"value": "TEXT",
"data_type": "VARCHAR2",
"data_length": 32767
},
{
"name": "ORA$ONNXTARGET",
"value": "VECTOR",
"data_type": "VECTOR",
"data_length": 1593,
"vector_info": "VECTOR(384,FLOAT32)"
}
]
}
Returned By
Returned by: load_model(), describe_model().