semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net : memoryPlugin["Save"] inserting NULL value at first position (SQLite)

Open atiq-bs23 opened this issue 1 year ago • 0 comments

Describe the bug await kernel.InvokeAsync(memoryPlugin["Save"], new() { [Microsoft.SemanticKernel.Plugins.Memory.TextMemoryPlugin.InputParam] = "My family is from New York", [Microsoft.SemanticKernel.Plugins.Memory.TextMemoryPlugin.CollectionParam] = MemoryCollectionName, [Microsoft.SemanticKernel.Plugins.Memory.TextMemoryPlugin.KeyParam] = "info5", });

After executing this method, it is inserting a row with NULL value for the first time. I am using SQLite

To Reproduce Steps to reproduce the behavior:

  1. Use SQLite
  2. Try to insert any data
  3. After executing the method check SQLite database.
  4. You will get a blank NULL value row has inserted

Expected behavior It should insert a single row with the value pass to this method, but it is adding another row with NULL value.

Screenshots

image

Platform

  • OS: [Windows 11]
  • IDE: [Microsoft Visual Studio Enterprise 2022 (64-bit) - Version 17.9.6]
  • Language: [C#]
  • Source: [ NUGET:: Microsoft.SemanticKernel.Connectors.Sqlite -> Version=1.6.3-alpha Microsoft.SemanticKernel.Plugins.Memory -> Version=1.6.3-alpha]

atiq-bs23 avatar May 14 '24 11:05 atiq-bs23