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.34k stars 252 forks source link

Fix reading StopSequences from the config #660

Closed Foorcee closed 3 weeks ago

Foorcee commented 3 weeks ago

Motivation and Context

Currently, StopSequences initialized with Array.Empty() are not deserialized correctly, resulting in an empty list even when values are provided in the configuration.

High level description

By changing the initialization to use new List(), we ensure that the StopSequences are properly deserialized from the configuration. For more details, I have created a issue: dotnet/runtime#103282.

Foorcee commented 3 weeks ago

@microsoft-github-policy-service agree