semantic-kernel
semantic-kernel copied to clipboard
.Net : memoryPlugin["Save"] inserting NULL value at first position (SQLite)
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:
- Use SQLite
- Try to insert any data
- After executing the method check SQLite database.
- 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
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]