A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
- [X ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
Simply provision the reference app following instructions
Any log messages given by the failure
Invoke-ExternalCommand: C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\scripts\prepdocs.ps1:80
Line |
80 | … $output = Invoke-ExternalCommand -Command "dotnet" -Arguments $dotn …
| ~~~~~~~~~~~~~
| Unhandled exception: Azure.RequestFailedException: Service request failed. Status: 403 (This request is not
| authorized to perform this operation using this permission.) ErrorCode: AuthorizationPermissionMismatch
| Headers: Transfer-Encoding: chunked Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id:
| ec864ad4-501e-004d-0e19-bae5d1000000 x-ms-client-request-id: 8dcaee9d-18e5-46f9-87a7-34990fa1348e x-ms-version:
| 2023-11-03 x-ms-error-code: AuthorizationPermissionMismatch Date: Sun, 09 Jun 2024 03:00:23 GMT at
| Azure.Core.HttpPipelineExtensions.ProcessMessageAsync(HttpPipeline pipeline, HttpMessage message, RequestContext
| requestContext, CancellationToken cancellationToken) at
| Azure.Storage.Blobs.BlobRestClient.GetPropertiesAsync(String snapshot, String versionId, Nullable`1 timeout,
| String leaseId, String encryptionKey, String encryptionKeySha256, String encryptionAlgorithm, String ifTags,
| RequestConditions requestConditions, RequestContext context) at
| Azure.Storage.Blobs.Specialized.BlobBaseClient.GetPropertiesInternal(BlobRequestConditions conditions, Boolean
| async, RequestContext context, String operationName) at
| Azure.Storage.Blobs.Specialized.BlobBaseClient.ExistsInternal(Boolean async, CancellationToken
| cancellationToken) at Azure.Storage.Blobs.Specialized.BlobBaseClient.ExistsAsync(CancellationToken
| cancellationToken) at Program.<$>gUploadBlobAsync|22_4(String fileName, String blobName,
| BlobContainerClient container) in
| C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 225 at
| Program.<$>gUploadBlobsAndCreateIndexAsync|22_3(AppOptions options, String fileName, IEmbedService
| embeddingService) in C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 209
| at Program.<$>gProcessSingleFileAsync|22_9(AppOptions options, String fileName, IEmbedService
| embedService) in C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 62 at
| Program.<>c.<<$>b22_0>d.MoveNext() in
| C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 41 --- End of stack trace
| from previous location --- at
| System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context) at
| System.CommandLine.Invocation.InvocationPipeline.<>cDisplayClass4_0.<b0>d.MoveNext()
| --- End of stack trace from previous location --- at
| System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass17_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass12_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass22_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass19_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b18_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass16_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b5_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<b__0>d.MoveNext()
Expected/desired behavior
Provisions correctly as per instructions in the GitHub ReadMe
OS and Version?
Window 11
Versions
Visual Studio 2022
Dependencies are up-to-date
Am Global Admin in the subscription
Mention any other details that might be useful
Reran the provisioning three times with same result
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Invoke-ExternalCommand: C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\scripts\prepdocs.ps1:80 Line | 80 | … $output = Invoke-ExternalCommand -Command "dotnet" -Arguments $dotn … |$>gUploadBlobAsync|22_4(String fileName, String blobName,
| BlobContainerClient container) in
| C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 225 at
| Program.<$>g UploadBlobsAndCreateIndexAsync|22_3(AppOptions options, String fileName, IEmbedService
| embeddingService) in C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 209
| at Program.<$>gProcessSingleFileAsync|22_9(AppOptions options, String fileName, IEmbedService
| embedService) in C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 62 at
| Program.<>c.<<$>b 22_0>d.MoveNext() in
| C:_vet_vetDemos_ai_demos\RAG\rag-pg-demo\app\prepdocs\PrepareDocs\Program.cs:line 41 --- End of stack trace
| from previous location --- at
| System.CommandLine.Invocation.AnonymousCommandHandler.InvokeAsync(InvocationContext context) at
| System.CommandLine.Invocation.InvocationPipeline.<>cDisplayClass4_0.<b0>d.MoveNext()
| --- End of stack trace from previous location --- at
| System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass17_0.<b 0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass12_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass22_0.<b 0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>cDisplayClass19_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b 18_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c DisplayClass16_0.<b0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b 5_0>d.MoveNext() --- End of stack trace from previous location --- at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<b__0>d.MoveNext()
~~~~~~~~~~~~~ | Unhandled exception: Azure.RequestFailedException: Service request failed. Status: 403 (This request is not | authorized to perform this operation using this permission.) ErrorCode: AuthorizationPermissionMismatch | Headers: Transfer-Encoding: chunked Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0 x-ms-request-id: | ec864ad4-501e-004d-0e19-bae5d1000000 x-ms-client-request-id: 8dcaee9d-18e5-46f9-87a7-34990fa1348e x-ms-version: | 2023-11-03 x-ms-error-code: AuthorizationPermissionMismatch Date: Sun, 09 Jun 2024 03:00:23 GMT at | Azure.Core.HttpPipelineExtensions.ProcessMessageAsync(HttpPipeline pipeline, HttpMessage message, RequestContext | requestContext, CancellationToken cancellationToken) at | Azure.Storage.Blobs.BlobRestClient.GetPropertiesAsync(String snapshot, String versionId, Nullable`1 timeout, | String leaseId, String encryptionKey, String encryptionKeySha256, String encryptionAlgorithm, String ifTags, | RequestConditions requestConditions, RequestContext context) at | Azure.Storage.Blobs.Specialized.BlobBaseClient.GetPropertiesInternal(BlobRequestConditions conditions, Boolean | async, RequestContext context, String operationName) at | Azure.Storage.Blobs.Specialized.BlobBaseClient.ExistsInternal(Boolean async, CancellationToken | cancellationToken) at Azure.Storage.Blobs.Specialized.BlobBaseClient.ExistsAsync(CancellationToken | cancellationToken) at Program.<Expected/desired behavior
OS and Version?
Window 11
Versions
Visual Studio 2022 Dependencies are up-to-date Am Global Admin in the subscription
Mention any other details that might be useful
Reran the provisioning three times with same result