You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point you could make changes to the code if required. However, no changes are needed to deploy and test the app as shown in the next step.
52
52
53
-
#### Configure your Agent (optional)
53
+
#### How to configure Agent model and version
54
54
<!-- TODO where do we want this? probably after downloading the code -->
55
-
If you want to personalize your agent, you can change the default configuration for your agent. Additional details on changing your agent can be found in [customizing model deployments](docs/deploy_customization.md#customizing-model-deployments). For more information on the Azure OpenAI models and non-Microsoft models that can be used in your deployment, view the [list of models supported by Azure AI Agent Service](https://learn.microsoft.com/azure/ai-services/agents/concepts/model-region-support).
55
+
By default, the template uses model `gpt-4o-mini`, version `2024-07-18` for text generation and `text-embedding-3-small` version `1` for embeddings. If you want to personalize your agent, you can change the default configuration for your agent. Additional details on changing your agent can be found in [customizing model deployments](docs/deploy_customization.md#customizing-model-deployments). For more information on the Azure OpenAI models and non-Microsoft models that can be used in your deployment, view the [list of models supported by Azure AI Agent Service](https://learn.microsoft.com/azure/ai-services/agents/concepts/model-region-support).
56
56
57
57
To specify the model (e.g. gpt-4o-mini, gpt-4o) that is deployed for the agent when `azd up` is called, set the following environment variables:
58
58
```shell
59
59
azd env set AZURE_AI_AGENT_MODEL_NAME <MODEL_NAME>
60
60
azd env set AZURE_AI_AGENT_MODEL_VERSION <MODEL_VERSION>
61
61
```
62
62
63
-
In this example an agent can perform search using the context given in the search index, deployed in Azure AI Search resource (default) or in the uploaded files. The semantic index search represents so-called hybrid search i.e. it uses LLM to search for the relevant context in the provided index as well as embedding similarity search. This index is built from the `embeddings.csv` file, containing the embeddings vectors, followed by the contexts.
64
-
To use file search instead, please set the local environment variable `USE_SEARCH_SERVICE` to `false` during the `azd up` command. In this case the Azure AI Search resource will not be deployed.
63
+
#### How to configure Agent knowledge retrieval
64
+
By default, the template deploys OpenAI's file search for agent's knowledge retrieval. An agent also can perform search using the search index, deployed in Azure AI Search resource. The semantic index search represents so-called hybrid search i.e. it uses LLM to search for the relevant context in the provided index as well as embedding similarity search. This index is built from the `embeddings.csv` file, containing the embeddings vectors, followed by the contexts.
65
+
To use index search, please set the local environment variable `USE_AZURE_AI_SEARCH_SERVICE` to `true` during the `azd up` command. In this case the Azure AI Search resource will be deployed and used.
65
66
66
67
#### Logging
67
68
If you want to enable logging to a file, uncomment the following line in Dockerfile located in the src directory:
0 commit comments