It would be awesome to combine the database experience of Entity Framework Core with the Semantic Kernel memory abstraction
One way can be to automatically replicate the data into the semantic kernel memory
For example:
class EFCoreConnector<TDbContext> where TDbContext : DbContext { public EFCoreConnector(TDbContext dbContext, Expression<Func<TDbContext, string>> textProperty, IMemoryStore semanticKernelMemoryStore) { //Add the dbContext and choose which property to map into the semantic kernel memory store } }
Another way can be to connect via relational databases that support embeddings, like PostgreSQL with pgvector or pg_embedding extension
Thanks for your work and time