Skip to content

Commit df42221

Browse files
committed
2 parents 540ee8a + 588db5b commit df42221

File tree

58 files changed

+840
-463
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+840
-463
lines changed

articles/ai-foundry/how-to/deploy-models-jais.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use Jais chat models with Azure AI Foundry.
55
ms.service: azure-ai-foundry
66
manager: scottpolly
77
ms.topic: how-to
8-
ms.date: 11/21/2024
8+
ms.date: 03/04/2025
99
ms.reviewer: haelhamm
1010
reviewer: hazemelh
1111
ms.author: ssalgado

articles/ai-foundry/how-to/deploy-models-jamba.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: How to deploy AI21's Jamba family models with Azure AI Foundry
55
manager: scottpolly
66
ms.service: azure-ai-foundry
77
ms.topic: how-to
8-
ms.date: 08/06/2024
8+
ms.date: 03/04/2025
99
ms.author: ssalgado
1010
author: ssalgadodev
1111
ms.reviewer: tgokal

articles/ai-foundry/how-to/deploy-models-llama.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use the Meta Llama family of models with Azure AI Foun
55
ms.service: azure-ai-foundry
66
manager: scottpolly
77
ms.topic: how-to
8-
ms.date: 12/04/2024
8+
ms.date: 03/04/2025
99
ms.reviewer: shubhiraj
1010
reviewer: shubhirajMsft
1111
ms.author: ssalgado

articles/ai-foundry/how-to/deploy-models-tsuzumi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use tsuzumi-7b models with Azure AI Foundry.
55
ms.service: azure-ai-foundry
66
manager: scottpolly
77
ms.topic: how-to
8-
ms.date: 10/24/2024
8+
ms.date: 03/04/2025
99
ms.reviewer: haelhamm
1010
reviewer: hazemelh
1111
ms.author: ssalgado

articles/ai-foundry/toc.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ items:
584584
href: ../ai-services/openai/concepts/system-message.md?context=/azure/ai-foundry/context/context
585585
- name: Transparency Note for safety evaluations
586586
href: ./concepts/safety-evaluations-transparency-note.md
587-
- name: Reference
587+
- name: SDK + API Reference
588588
items:
589589
- name: Azure AI Projects SDK
590590
href: /python/api/overview/azure/ai-projects-readme
@@ -600,12 +600,8 @@ items:
600600
href: ../ai-services/reference/rest-api-resources.md?context=/azure/ai-foundry/context/context
601601
- name: Azure AI Model Inference API
602602
href: ../ai-foundry/model-inference/reference/reference-model-inference-api.md
603-
- name: Azure Policy built-ins
604-
displayName: samples, policies, definitions
605-
href: ../ai-services/policy-reference.md?context=/azure/ai-foundry/context/context
606-
- name: Region support
607-
href: reference/region-support.md
608-
- name: Resources
603+
604+
- name: Other resources
609605
items:
610606
- name: Azure AI FAQ
611607
href: faq.yml
@@ -627,3 +623,7 @@ items:
627623
href: https://azure.microsoft.com/support/legal/sla/cognitive-services/v1_1/
628624
- name: Azure Government
629625
href: /azure/azure-government/compare-azure-government-global-azure
626+
- name: Azure Policy built-ins
627+
displayName: samples, policies, definitions
628+
href: ../ai-services/policy-reference.md?context=/azure/ai-foundry/context/context
629+

articles/ai-services/agents/how-to/tools/azure-ai-search.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ Use an existing Azure AI Search index with the agent's Azure AI Search tool.
2121
> Azure AI Search indexes must meet the following requirements:
2222
> - The index must contain at least one searchable & retrievable text field (type Edm.String)
2323
> - The index must contain at least one searchable vector field (type Collection(Edm.Single))
24-
> - The index must use a vector profile/integrated vectorization
24+
> - The index is assumed to be configured properly
2525
2626
## Search types
27+
You can specify the search type for your index by choosing one of the following
28+
- Simple
29+
- Semantic
30+
- Vector
31+
- Hybrid (Vector + Keyword)
32+
- Hybrid (Vector + Keyword + Semantic)
2733

28-
**Index without semantic configuration**
29-
- By default, the Azure AI Search tool runs a hybrid search (keyword + vector) on all text fields.
30-
<br>
3134

32-
**Index with semantic configuration**
33-
- By default, the Azure AI Search tool runs hybrid + semantic search on all text fields.
35+
**Indexes without a specified search type**
36+
- By default, the Azure AI Search tool runs a hybrid search (keyword + vector) on all text fields
3437

3538
## Usage support
3639

articles/ai-services/agents/includes/azure-search/code-examples.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ conn_id = "/subscriptions/<your-subscription-id>/resourceGroups/<your-resource-
136136

137137
# Initialize agent AI search tool and add the search index connection ID and index name
138138
# TO DO: replace <your-index-name> with the name of the index you want to use
139-
ai_search = AzureAISearchTool(index_connection_id=conn_id, index_name="<your-index-name>")
139+
ai_search = AzureAISearchTool(index_connection_id=conn_id, index_name="<your-index-name>"
140+
query_type="<select-search-type>")
140141
```
141142
# [C#](#tab/csharp)
142143
```csharp
@@ -149,7 +150,7 @@ ToolResources searchResource = new ToolResources
149150
{
150151
AzureAISearch = new AzureAISearchResource
151152
{
152-
IndexList = { new IndexResource(connection.Id, "<your-index-name>") }
153+
IndexList = { new IndexResource(connection.Id, "<your-index-name>", "<select-search-type>") }
153154
}
154155
};
155156
```

articles/ai-services/agents/includes/quickstart-javascript.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,18 @@ ms.custom: devx-track-js
3131
| Run | Activation of an agent to begin running based on the contents of Thread. The agent uses its configuration and Thread’s Messages to perform tasks by calling models and tools. As part of a Run, the agent appends Messages to the Thread. |
3232
| Run Step | A detailed list of steps the agent took as part of a Run. An agent can call tools or create Messages during its run. Examining Run Steps allows you to understand how the agent is getting to its results. |
3333

34-
Run the following commands to install the npm packages.
34+
First, initialize a new project by running:
35+
36+
```console
37+
npm init -y
38+
```
39+
40+
Run the following commands to install the npm packages required.
3541

3642
```console
3743
npm install @azure/ai-projects
3844
npm install @azure/identity
45+
npm install dotenv
3946
```
4047

4148
Next, to authenticate your API requests and run the program, use the [az login](/cli/azure/authenticate-azure-cli-interactively) command to sign into your Azure subscription.
@@ -60,7 +67,9 @@ For example, your connection string may look something like:
6067

6168
`eastus.api.azureml.ms;12345678-abcd-1234-9fc6-62780b3d3e05;my-resource-group;my-project-name`
6269

63-
Set this connection string as an environment variable named `PROJECT_CONNECTION_STRING`.
70+
Set this connection string as an environment variable named `PROJECT_CONNECTION_STRING` in a `.env` file.
71+
72+
Next, create an `index.js` file and paste in the code below:
6473

6574
```javascript
6675
// index.js
@@ -75,12 +84,16 @@ import {
7584
ToolUtility,
7685
} from "@azure/ai-projects";
7786
import { DefaultAzureCredential } from "@azure/identity";
87+
import dotenv from 'dotenv';
88+
89+
dotenv.config();
7890

79-
const connectionString =
80-
process.env["AZURE_AI_PROJECTS_CONNECTION_STRING"] || "<project connection string>";
91+
// Set the connection string from the environment variable
92+
const connectionString = process.env.PROJECT_CONNECTION_STRING;
8193

94+
// Throw an error if the connection string is not set
8295
if (!connectionString) {
83-
throw new Error("AZURE_AI_PROJECTS_CONNECTION_STRING must be set in the environment variables");
96+
throw new Error("Please set the PROJECT_CONNECTION_STRING environment variable.");
8497
}
8598

8699
export async function main() {
@@ -149,7 +162,7 @@ export async function main() {
149162
// messages[0] is the most recent
150163
for (let i = messages.data.length - 1; i >= 0; i--) {
151164
const m = messages.data[i];
152-
if (isOutputOfType(m.content[0], "text")) {
165+
if (m.content && m.content.length > 0 && isOutputOfType(m.content[0], "text")) {
153166
const textContent = m.content[0];
154167
console.log(`${textContent.text.value}`);
155168
console.log(`---------------------------------`);
@@ -164,3 +177,5 @@ main().catch((err) => {
164177
console.error("The sample encountered an error:", err);
165178
});
166179
```
180+
181+
Run the code using `node index.js` and observe.
-45.3 KB
Loading
-18.9 KB
Loading

0 commit comments

Comments
 (0)