mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
18d7a46a54
* .NET: Hosted Agents - RAG Sample with Azure AI Search (#5693) Adds a Hosted-AzureSearchRag sample plus a live Foundry.Hosting integration test scenario backed by a real Azure AI Search index. Sample (Hosted-AzureSearchRag): keyword-only Azure AI Search via SearchClient adapter into TextSearchProvider, scope-aware DevTemporaryTokenCredential consuming AZURE_BEARER_TOKEN_FOUNDRY + AZURE_BEARER_TOKEN_SEARCH for local Docker, Dockerfile + contributor Dockerfile mirroring Hosted-TextRag. Integration test: AzureSearchRagHostedAgentFixture extends the PR #5598 HostedAgentFixture with the new azure-search-rag scenario branch in the shared test container; AzureSearchRagHostedAgentTests asserts the model returns canary tokens (TR-CANARY-7821, SHIP-CANARY-4493) that exist only in the seeded documents - real proof the agent grounded its answer in retrieved content rather than training data. * Address PR 5701 Copilot review feedback - Sample README: drop stale 'bootstraps the index on first run' line; index is pre-provisioned out of band - Sample + TestContainer search adapters: propagate CancellationToken to await foreach via .WithCancellation()
9 lines
353 B
Bash
9 lines
353 B
Bash
AZURE_AI_PROJECT_ENDPOINT=<your-azure-ai-project-endpoint>
|
|
AZURE_AI_MODEL_DEPLOYMENT_NAME=gpt-4o
|
|
AZURE_SEARCH_ENDPOINT=<your-azure-search-endpoint>
|
|
AZURE_SEARCH_INDEX_NAME=contoso-outdoors
|
|
AZURE_BEARER_TOKEN_FOUNDRY=DefaultAzureCredential
|
|
AZURE_BEARER_TOKEN_SEARCH=DefaultAzureCredential
|
|
ASPNETCORE_URLS=http://+:8088
|
|
ASPNETCORE_ENVIRONMENT=Development
|