GithubHelp home page GithubHelp logo

Comments (3)

dluc avatar dluc commented on June 14, 2024 1

hi @HazyFish the volatile mode is only the default configuration, and you can easily change that. In serverless mode, there's 2 components to setup: file storage and memory storage.

(In Service mode you would also configure a persistent orchestration queue using Azure Queues or RabbitMQ).

Here's a few examples:

var memory = new KernelMemoryBuilder()
    .WithOpenAI(openAICfg)
    .WithAzureBlobsStorage(azureBlobsConfig) // file storage in the cloud, for Prod use cases
    .WithAzureAISearch(azureSearchConfig)  // memory storage in the cloud, for Prod use cases
    .Build<MemoryServerless>();
var memory = new KernelMemoryBuilder()
    .WithOpenAI(openAICfg)
    .WithSimpleFileStorage(new SimpleFileStorageConfig { StorageType = FileSystemTypes.Disk }) // local file storage
    .WithQdrantMemoryDb(qdrantConfig) // memory storage on Qdrant, both local or in the cloud
    .Build<MemoryServerless>();
var memory = new KernelMemoryBuilder()
    .WithOpenAI(openAICfg)
    .WithSimpleFileStorage(new SimpleFileStorageConfig { StorageType = FileSystemTypes.Disk }) // local file storage
    .WithSimpleVectorDb(new SimpleVectorDbConfig { StorageType = FileSystemTypes.Disk }) // memory storage, designed for tests/dev, doesn't scale to millions of memories
    .Build<MemoryServerless>();

There are also other options, e.g. type .With... to see IntelliSense suggestions.

from kernel-memory.

dluc avatar dluc commented on June 14, 2024 1

@HazyFish I'll close the issue -- we're updating the docs and we'll make this easier to find, thanks for the feedback!

You can take a sneak peak at https://microsoft.github.io/kernel-memory to see the work in progress :-)

from kernel-memory.

HazyFish avatar HazyFish commented on June 14, 2024

Thank you so much for the prompt response!!! I hope this is added to the README.md for more clarity. Should I close the issue now?

from kernel-memory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.