Azure / azure-search-vector-samples

A repository of code samples for Vector search capabilities in Azure AI Search.
https://azure.microsoft.com/products/search
MIT License
739 stars 313 forks source link

Unable to run dontet sample #54

Open baskialdensys opened 1 year ago

baskialdensys commented 1 year ago

I'm trying to run the dotnet sample and getting the following error. dotnet restore --interactive is not showing any prompt for authentication Unable to find package OpenAI.Api. No packages exist with this id in source(s): azure-sdk-for-net

droosma commented 1 year ago

Add https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json to your nuget feed

farzad528 commented 1 year ago

Hi @baskialdensys were you able to get your issue resolved using the openai nuget package?

baskialdensys commented 1 year ago

I already have this entry (https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json) in nuget.config file

baskialdensys commented 1 year ago

Unable to find package OpenAI.Api. No packages exist with this id in source(s): azure-sdk-for-net

Getting the same erro Unable to find package OpenAI.Api. No packages exist with this id in source(s): azure-sdk-for-net

baskialdensys commented 1 year ago

I deleted my nuget.config file from the project folder, it works now.

baskialdensys commented 1 year ago

The readme file has this instruction , that's why I created local nuget.config file


`Verify that you have a nuget.config file in the same folder as your .csproj or .sln file. If not, paste the following content into a nuget.config file: <?xml version="1.0" encoding="utf-8"?>

` ----
mg-arrow commented 1 year ago

I am having very similar issue after all the steps completed .

This step fails, dotnet restore --interactive

With multiple error messages

Here's one of the examples: error NU1101: Unable to find package Microsoft.Extensions.Configuration.Json. No packages exist with this id in source(s): azure-sdk-for-net

I have nuget configuration file and .6 and .7 SDK are installed on the system.

Any ideas ?

baskialdensys commented 1 year ago

I Just deleted the local project nuget.config file. I was able to compile it. I hope it resolved the right OpenAI nuget package.