microsoft / kernel-memory

RAG architecture: index and query any data using LLM and natural language, track sources, show citations, asynchronous memory patterns.
https://microsoft.github.io/kernel-memory
MIT License
1.62k stars 313 forks source link

AzureBlobs is not working #907

Closed aitrailblazer closed 12 hours ago

aitrailblazer commented 3 days ago

Context / Scenario

Here is the configuration relevant for AzureBlobs:

var azureBlobConfig = new AzureBlobsConfig(); azureBlobConfig.Auth = AzureBlobsConfig.AuthTypes.ConnectionString; azureBlobConfig.ConnectionString = _parametersAzureService.StorageConnectionString; azureBlobConfig.Container = "smemory";//_parametersAzureService.StorageContainerName;

  IKernelMemory kernelMemory = new KernelMemoryBuilder()
        .WithAzureOpenAITextGeneration(chatConfig)
        .WithAzureOpenAITextEmbeddingGeneration(embeddingConfig)
        .WithAzureBlobsDocumentStorage(azureBlobConfig)             
        //uncomment the line below to use Azure AI Search
        .WithAzureAISearchMemoryDb(searchConfig)
        .Build<MemoryServerless>();

What happened?

Document is not uploaded to Azure Blob.

There is no example showing how to use AzureBlobs/.

Importance

edge case

Platform, Language, Versions

C#, latest version

Relevant log output

dluc commented 1 day ago

Hi @aitrailblazer could you try running this example: https://github.com/microsoft/kernel-memory/blob/main/examples/007-dotnet-serverless-azure/Program.cs?

You should see an example006 container in your blob service, with two virtual folders

Image

Image

Image

Image