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 #481

Closed afederici75 closed 4 months ago

afederici75 commented 4 months ago

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

-Finished porting a number of tests into the new repo structure -I added support for ES in the KM tests TestFilters and CompareCosineSimilarity

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

afederici75 commented 4 months ago

Forgot to synch