Skip to content

Invalid memory store type: Disk #562

@rvermeire

Description

@rvermeire

Describe the bug
At startup there is an error message in the UI "Invalid memory store type: Disk". MemoryStoreType Disk does indeed not exist while it is configured to use Disk

Error getting service options. Details: Error: 500: System.ArgumentException: 
Invalid memory store type: Disk at CopilotChat.WebApi.Options.MemoryStoreTypeExtensions.GetMemoryStoreType(SemanticMemoryConfig memoryOptions, IConfiguration configuration) in 
C:\Users\Ronald\repo\sk\chat-copilot\webapi\Options\MemoryStoreType.cs:line 73 at CopilotChat.WebApi.Controllers.ServiceInfoController.GetServiceInfo() in 
C:\Users\Ronald\repo\sk\chat-copilot\webapi\Controllers\ServiceInfoController.cs:line 62 at lambda_method36(Closure, Object, Object[]) 
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) 
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.
InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& stat...

https://github.com/microsoft/chat-copilot/tree/main/memorypipeline/appsettings.json

      "SimpleVectorDb": {
        "StorageType": "Disk",
        "Directory": "../tmp/database"
      },

To Reproduce
Configure the SimpleVectorDb StorageType as Disk and Start up the webclient. Message appears above the chat input field.

Expected behavior
No error message and be able to use Disk or change the config in appsettings.json so SimpleVectorDb uses Volatile as StorageType all the time and change the documentation/comment that Disk is not available.

Platform
Windows
Latest available version (10/31)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingmemoryIssues or questions related to memorywebapiPull requests that update .net code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions