Skip to content

Commit 0f718eb

Browse files
committed
Refreshes reference-catalog-api.md
1 parent 8a35c6f commit 0f718eb

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

articles/ai-foundry/foundry-local/how-to/how-to-use-langchain-with-foundry-local.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ author: jonburchel
1313
reviewer: eneros
1414
ms.custom: build-2025
1515
zone_pivot_groups: foundry-local-langchain
16+
ai-usage: ai-assisted
1617
#customer intent: As a developer, I want to get started with Foundry Local so that I can run AI models locally.
1718
---
1819

articles/ai-foundry/foundry-local/reference/reference-best-practice.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ms.author: jburchel
1111
author: jonburchel
1212
reviewer: maanavdalal
1313
ms.reviewer: maanavd
14+
ai-usage: ai-assisted
1415
---
1516

1617
# Best practices and troubleshooting guide for Foundry Local

articles/ai-foundry/foundry-local/reference/reference-catalog-api.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,57 @@ ms.service: azure-ai-foundry
66
ms.subservice: foundry-local
77
ms.custom: build-2025
88
ms.topic: reference
9-
ms.date: 07/03/2025
9+
ms.date: 10/01/2025
1010
ms.author: jburchel
1111
reviewer: maanavdalal
1212
author: jonburchel
1313
ms.reviewer: maanavd
14+
ai-usage: ai-assisted
1415
---
1516

16-
# Catalog API Reference
17+
# Catalog API reference
1718

1819
[!INCLUDE [foundry-local-preview](./../includes/foundry-local-preview.md)]
1920

20-
Foundry Local allows you to develop and integrate your own catalog service. This document provides guidance on:
21+
Foundry Local lets you build and integrate your own catalog service. This article covers:
2122

22-
- The model format required for the catalog API.
23-
- The request and response format required for your catalog API to integrate with Foundry Local.
23+
- Model format required for the catalog API
24+
- Request and response format required for your catalog API to integrate with Foundry Local
2425

2526
## Model format
2627

27-
The model files hosted in your model catalog are required to be in the [Open Neural Network Exchange (ONNX)](https://onnx.ai/) format to work with Foundry Local. For more information on how to compile Hugging Face and PyTorch models to ONNX, see the [Compile Hugging Face models to run on Foundry Local](../how-to/how-to-compile-hugging-face-models.md) article.
28+
Model files in your model catalog must be in the [Open Neural Network Exchange (ONNX)](https://onnx.ai/) format to work with Foundry Local. To learn how to compile Hugging Face and PyTorch models to ONNX, see [Compile Hugging Face models to run on Foundry Local](../how-to/how-to-compile-hugging-face-models.md).
2829

2930
## API format
3031

3132
### Request
3233

33-
Your catalog service needs to support a POST endpoint that accepts a JSON request body. The request format for the catalog API is as follows:
34+
Implement a POST endpoint that accepts a JSON request body in your catalog service. The request format for the catalog API is as follows:
3435

3536
- **Method**: `POST`
3637
- **Content-Type**: `application/json`
3738

38-
The request body *must* be a JSON object that *accepts* the following fields:
39+
The request body must be a JSON object with the following fields:
3940

40-
- `resourceIds`: An array of resource IDs that specify the resources to be queried.
41-
- `resourceId`: The ID of the resource.
42-
- `entityContainerType`: The type of entity container (for example, `Registry`, `Workspace`, etc.).
41+
- `resourceIds`: An array of resource IDs that specify the resources to be queried
42+
- `resourceId`: The ID of the resource
43+
- `entityContainerType`: The type of entity container (for example, `Registry`, `Workspace`, etc.)
4344
- `indexEntitiesRequest`: An object that contains the search parameters.
44-
- `filters`: An array of filter objects that specify the criteria for filtering the search results.
45-
- `field`: The field to filter on (for example, `type`, `kind`, etc.).
45+
- `filters`: An array of filter objects that specify the criteria for filtering the search results
46+
- `field`: The field to filter on (for example, `type`, `kind`, etc.)
4647
- `operator`: The operator to use for the filter. For example, `eq` (equals), `ne` (not equals), `gt` (greater than), `lt` (less than), etc.
47-
- `values`: An array of values to match against the field.
48-
- `orderBy`: An array of fields to order the results by.
49-
- `searchText`: A string to search for in the results.
50-
- `pageSize`: The maximum number of results to return (for pagination).
51-
- `skip`: The number of results to skip (for pagination).
52-
- `continuationToken`: A token for pagination to continue from a previous request.
48+
- `values`: An array of values to match against the field
49+
- `orderBy`: An array of fields to order the results by
50+
- `searchText`: A string to search for in the results
51+
- `pageSize`: The maximum number of results to return (for pagination)
52+
- `skip`: The number of results to skip (for pagination)
53+
- `continuationToken`: A token for pagination to continue from a previous request
5354

54-
#### Filterable Fields (optional)
55+
#### Filterable fields (optional)
5556

56-
You *must* implement your catalog API that *accepts* the [Request](#request) format, but it's *optional* as to whether you implement server-side filtering in your catalog service. Not implementing server-side filtering is a fast way to implement your catalog service, but it might not be efficient way to search for models.
57+
Implement the catalog API so it accepts the [Request](#request) format. Server-side filtering is optional. Skipping server-side filtering is faster to implement but is less efficient for searching models.
5758

58-
If you choose to implement server-side filtering, you can use the following fields to filter the results:
59+
If you implement server-side filtering, use the following fields:
5960

6061
- `type`: The type of the model (for example, `models`, `datasets`, etc.).
6162
- `kind`: The kind of the model (for example, `Versioned`, `Unversioned`, etc.).
@@ -66,7 +67,7 @@ If you choose to implement server-side filtering, you can use the following fiel
6667
#### Example request
6768

6869
```bash
69-
curl POST <your-catalog-api-endpoint> \
70+
curl -X POST <your-catalog-api-endpoint> \
7071
-H "Content-Type: application/json" \
7172
-d '{
7273
"resourceIds": [
@@ -144,8 +145,8 @@ The response from the catalog API is a JSON object that contains the search resu
144145
},
145146
"continuationToken": {
146147
"type": "string",
147-
"description": "A token to continue fetching results."
148-
},
148+
"description": "A token to continue fetching results."
149+
}
149150
}
150151
}
151152
},
@@ -174,7 +175,7 @@ The response from the catalog API is a JSON object that contains the search resu
174175
"type": "object",
175176
"properties": {
176177
"publisher": { "type": "string" },
177-
"displayName": { "type": "string" },
178+
"displayName": { "type": "string" }
178179
}
179180
},
180181
"name": { "type": "string" }

0 commit comments

Comments
 (0)