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.52k stars 293 forks source link

Alef/newmerge #482

Closed afederici75 closed 4 months ago

afederici75 commented 4 months ago

Motivation and Context (Why the change? What's the scenario?)

-Ported additional tests from FML's original repo -Added Elasticsearch support for TestMemoryFilters and TestCosineSimilarity

High level description (Approach, Design)

Changes in Elasticsearch:

-Removed all Free Mind Labs, Inc. copyright in both extension and test project.
-Refactored IndexNameHelper and turned it into a static class.
-Adjusted ElasticsearchMemoryDb to the changes in IndexNameHelper.  

Elasticsearch.UnitTests

-Removed Usings.cs
-Created MemoryDbFunctionalTest which descends from KM's BaseFunctionalTestCase, thus providing access to configuration and other common things.
-Refactored all tests to inherit from MemoryDbFunctionalTest and be consitent with KM's.    
-I had to remove my additional SearchTests. The changes I made to 

All Elasticsearch tests pass: -DefaultTests (11) -Additional (35)

Microsoft.KM.Core.Functional.... tests pass: -TestMemoryFilters -TestCosineSimilarity

dluc commented 4 months ago

superseeded by https://github.com/microsoft/kernel-memory/pull/494