Share via


Migrating from Memory Stores to Vector Stores

Semantic Kernel provides two distinct abstractions for interacting with vector stores.

  1. A set of legacy abstractions where the primary interface is Microsoft.SemanticKernel.Memory.IMemoryStore.
  2. A new and improved set of abstractions where the primary abstract base class is Microsoft.Extensions.VectorData.VectorStore.

The Vector Store abstractions provide more functionality than what the Memory Store abstractions provide, e.g. being able to define your own schema, supporting multiple vectors per record (database permitting), supporting more vector types than ReadOnlyMemory<float>, etc. We recommend using the Vector Store abstractions instead of the Memory Store abstractions.

Tip

For a more detailed comparison of the Memory Store and Vector Store abstractions see here.

Migrating from Memory Stores to Vector Stores

See the Legacy Semantic Kernel Memory Stores page for instructions on how to migrate.

Coming soon

More info coming soon.

Coming soon

More info coming soon.