Releases: kbeaugrand/SemanticKernel.Connectors.Memory.MongoDB
1.0.1-beta6
What's Changed
- Bump Microsoft.SemanticKernel from 1.0.0-beta5 to 1.0.0-beta6 in /src by @dependabot in #23
- Bump Roslynator.Analyzers from 4.6.1 to 4.6.2 in /src by @dependabot in #27
- Bump Roslynator.Formatting.Analyzers from 4.6.1 to 4.6.2 in /src by @dependabot in #26
- Bump Roslynator.CodeAnalysis.Analyzers from 4.6.1 to 4.6.2 in /src by @dependabot in #25
- Bump xunit.analyzers from 1.4.0 to 1.5.0 in /src by @dependabot in #24
- Bump Microsoft.NET.Test.Sdk from 17.7.2 to 17.8.0 in /src by @dependabot in #22
Full Changelog: 1.0.0-beta5...1.0.1-beta6
1.0.1-beta5
What's Changed
- Bump xunit from 2.5.3 to 2.6.0 in /src by @dependabot in #19
- Bump xunit from 2.6.0 to 2.6.1 in /src by @dependabot in #20
- Bump Microsoft.SemanticKernel from 1.0.0-beta4 to 1.0.0-beta5 in /src by @dependabot in #21
Full Changelog: 1.0.0-beta4...1.0.1-beta5
1.0.0-beta5
What's Changed
- Bump xunit from 2.5.3 to 2.6.0 in /src by @dependabot in #19
- Bump xunit from 2.6.0 to 2.6.1 in /src by @dependabot in #20
- Bump Microsoft.SemanticKernel from 1.0.0-beta4 to 1.0.0-beta5 in /src by @dependabot in #21
Full Changelog: 1.0.0-beta4...1.0.0-beta5
1.0.0-beta4
What's Changed
- Bump Microsoft.SemanticKernel from 1.0.0-beta3 to 1.0.0-beta4 in /src by @dependabot in #18
Full Changelog: 1.0.1-beta3...1.0.0-beta4
1.0.1-beta3
What's Changed
- Bump Microsoft.SemanticKernel from 1.0.0-beta2 to 1.0.0-beta3 in /src by @dependabot in #17
- Bump Roslynator.CodeAnalysis.Analyzers from 4.5.0 to 4.6.1 in /src by @dependabot in #14
- Bump Roslynator.Formatting.Analyzers from 4.5.0 to 4.6.1 in /src by @dependabot in #15
- Bump Roslynator.Analyzers from 4.5.0 to 4.6.1 in /src by @dependabot in #16
- Bump xunit from 2.5.1 to 2.5.3 in /src by @dependabot in #10
Full Changelog: 1.0.1-beta2...1.0.1-beta3
1.0.1-beta2
What's Changed
- Bump Microsoft.SemanticKernel from 1.0.0-beta1 to 1.0.0-beta2 in /src by @dependabot in #9
- Bump xunit.runner.visualstudio from 2.5.1 to 2.5.3 in /src by @dependabot in #8
- Bump xunit.analyzers from 1.3.0 to 1.4.0 in /src by @dependabot in #7
Full Changelog: 1.0.1-beta1...1.0.1-beta2
1.0.1-beta1
What's Changed
- Bump MongoDB.Driver from 2.21.0 to 2.22.0 in /src by @dependabot in #5
Full Changelog: 1.0.0-beta1...1.0.1-beta1
1.0.0-beta1
What's Changed
- Upgrade SK to 1.0.0-beta1 by @kbeaugrand in #4
New Contributors
- @kbeaugrand made their first contribution in #4
Full Changelog: 0.0.2-preview...1.0.0-beta1
0.0.2-preview
What's Changed
- Upgrade to SK 0.24.230918.1-preview
Minor changes
- Bump xunit.runner.visualstudio from 2.5.0 to 2.5.1 in /src by @dependabot in #2
- Bump xunit.analyzers from 1.2.0 to 1.3.0 in /src by @dependabot in #1
- Bump xunit from 2.5.0 to 2.5.1 in /src by @dependabot in #3
New Contributors
- @dependabot made their first contribution in #2
Full Changelog: 0.0.1-preview...0.0.2-preview
0.0.1-preview
Semantic Kernel - MongoDB Connector
This is a connector for the Semantic Kernel.
It provides a connection to a MongoDB Atlas database for the Semantic Kernel for the memories.
Note: It leverage on
MongoDB Atlas Vector Search
to provide vector search, this cannot work while running private instance of OpenSource MongoDB clusters.
About Semantic Kernel
Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large
Language Models (LLMs) with conventional programming languages. The SK
extensible programming model combines natural language semantic functions,
traditional code native functions, and embeddings-based memory unlocking
new potential and adding value to applications with AI.
Please take a look at Semantic Kernel for more information.
Installation
To install this memory store, you need to add the required nuget package to your project:
dotnet add package SemanticKernel.Connectors.Memory.MongoDB --version 0.0.1-preview
Create the collection and the Search index
Please refer to the documentation to get more details on how to define an MongoDB Atlas Vector Search
index. You can name the index default and create the index. Finally, write the following definition in the JSON editor on MongoDB Atlas:
{
"mappings": {
"dynamic": true,
"fields": {
"Embedding": {
"dimensions": 1536,
"similarity": "cosine",
"type": "knnVector"
}
}
}
}
Usage
To add your MongoDB Server memory connector, add the following statements to your kernel initialization code:
using SemanticKernel.Connectors.Memory.MongoDB;
...
var kernel = Kernel.Builder
...
.WithMemoryStorage(await MongoDBMemoryStore.ConnectAsync(connectionString: <your_connection_string>, database: <your_database>))
...
.Build();
The memory store will populate all the needed tables during startup and let you focus on the development of your plugin.
License
This project is licensed under the MIT License.