Skip to content

.Net: EFCore memory connector in order to facilitate crud operations and migrations #2237

@simone-devoti

Description

@simone-devoti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Sprint: Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions