Microsoft.KernelMemory.MongoDbAtlas
0.78.241007.1
Prefix Reserved
See the version list below for details.
dotnet add package Microsoft.KernelMemory.MongoDbAtlas --version 0.78.241007.1
NuGet\Install-Package Microsoft.KernelMemory.MongoDbAtlas -Version 0.78.241007.1
<PackageReference Include="Microsoft.KernelMemory.MongoDbAtlas" Version="0.78.241007.1" />
paket add Microsoft.KernelMemory.MongoDbAtlas --version 0.78.241007.1
#r "nuget: Microsoft.KernelMemory.MongoDbAtlas, 0.78.241007.1"
// Install Microsoft.KernelMemory.MongoDbAtlas as a Cake Addin #addin nuget:?package=Microsoft.KernelMemory.MongoDbAtlas&version=0.78.241007.1 // Install Microsoft.KernelMemory.MongoDbAtlas as a Cake Tool #tool nuget:?package=Microsoft.KernelMemory.MongoDbAtlas&version=0.78.241007.1
Developing with MongoDB Atlas
While MongoDB Atlas is a cloud only deployment, recently MongoDb added the ability to create local installation of Atlas thanks to Atlas Command line.
You can install Atlas Command Line Directly from MongoDB Web Site. Thanks to this tool you can create a local MongoDB atlas installation with few lines of CLI.
This local cluster is managed by podman, we need to investigate if we can create one on Docker.
Local cluster offers all the Search Capabilities of MongoDB Atlas, including Atlas Search.
Docker support
You can find all detail for recent docker support here
docker run -p 27777:27017 --privileged -it mongodb/atlas sh \
-c "atlas deployments setup --bindIpAll --username root --password root --type local --force && tail -f /dev/null"
The original 27017 port is mapped to 27777, so it does not conflict with standard MongoDb installation you can have in the local machine.
You can change the username and password if you like, then the connection string will be
mongodb://user:password@localhost:27777/?authSource=admin
Better docker support
If you start container as shown in previous chapter, the problem is that, after you stop and restart container another instance of atlas will be created. To have a better docker support you need to create a Dockerfile with the following content
FROM mongodb/atlas
COPY startatlas.sh /usr/startatlas.sh
CMD /usr/startatlas.sh
Then you can create a startatlas.sh file with the following content
#!/bin/bash
# The name of the deployment to search for
# Run the command and save the output
OUTPUT=$(atlas deployments list)
echo "Output: "
echo $OUTPUT
# count line of output
LINE=$(echo "$OUTPUT" | wc -l)
echo "Count line of output: $LINE "
if [ $LINE -lt 2 ]; then
echo "No deployment found. create a new one"
atlas deployments setup local --bindIpAll --username root --password root --type local --force
else
echo "Deployment found. Start it"
atlas deployments start local
fi
function pause_atlas() {
atlas deployments pause local
}
# This will call the 'on_exit' function when the container exits
trap pause_atlas EXIT
tail -f /dev/null
This will create a base image that can support stop/start of the container.
Creating local cluster
Once you installed Atlas CLI you can create a local MongoDB Atlas cluster with this simple instruction
atlas deployments setup --type local
You can follow instruction, you can use both 6 or 7 version of MongoDB Atlas.
You can then list all of your environment with
atlas deployments list
And you can start/stop atlas deployment with
atlas deployment start <deployment-name>
atlas deployment pause <deployment-name>
You can then connect with the standard connection string
mongodb://localhost:27017/?directConnection=true&serverSelectionTimeoutMS=2000
Some useful commands
If in local atlas installation tests fails or you have some strange error, it could happen that the search index is corrupted. To manually delete an index, first of all list all available vector and search indexes inside the collection
db.getCollection("_ix__kernel_memory_single_index").aggregate([
{"$listSearchIndexes" : {}}
])
This will return the list of all indexes that are defined in the collection, you can delete an index using the command
db.runCommand({"dropSearchIndex" : "_ix__kernel_memory_single_index", "id" : "65e4ae1623dd55119d74571e"})
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.KernelMemory.Abstractions (>= 0.78.241007.1)
- MongoDB.Driver.GridFS (>= 2.29.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Microsoft.KernelMemory.MongoDbAtlas:
Package | Downloads |
---|---|
Microsoft.KernelMemory
The package contains all the core logic and extensions of Kernel Memory, to index and query any data and documents, using LLM and natural language, tracking sources and showing citations. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
0.95.241216.2 | 315 | 12/17/2024 | |
0.95.241216.1 | 62 | 12/16/2024 | |
0.94.241201.1 | 1,179 | 12/1/2024 | |
0.93.241118.1 | 1,562 | 11/19/2024 | |
0.92.241112.1 | 464 | 11/12/2024 | |
0.91.241101.1 | 967 | 11/1/2024 | |
0.91.241031.1 | 138 | 10/31/2024 | |
0.90.241021.1 | 2,606 | 10/22/2024 | |
0.90.241020.3 | 107 | 10/20/2024 | |
0.80.241017.2 | 2,610 | 10/17/2024 | |
0.79.241014.2 | 2,290 | 10/14/2024 | |
0.79.241014.1 | 198 | 10/14/2024 | |
0.78.241007.1 | 3,748 | 10/8/2024 | |
0.78.241005.1 | 526 | 10/6/2024 | |
0.77.241004.1 | 364 | 10/5/2024 | |
0.76.240930.3 | 5,733 | 9/30/2024 | |
0.75.240924.1 | 9,370 | 9/24/2024 | |
0.74.240919.1 | 3,362 | 9/19/2024 | |
0.73.240906.1 | 23,437 | 9/7/2024 | |
0.72.240904.1 | 2,999 | 9/5/2024 | |
0.71.240820.1 | 13,443 | 8/21/2024 | |
0.70.240803.1 | 23,218 | 8/3/2024 | |
0.69.240727.1 | 9,337 | 7/27/2024 | |
0.68.240722.1 | 3,109 | 7/22/2024 | |
0.68.240716.1 | 2,047 | 7/16/2024 | |
0.67.240712.1 | 1,774 | 7/12/2024 | |
0.66.240709.1 | 5,762 | 7/9/2024 | |
0.65.240620.1 | 32,737 | 6/21/2024 | |
0.64.240619.1 | 800 | 6/20/2024 | |
0.63.240618.1 | 2,951 | 6/18/2024 | |
0.62.240605.1 | 23,534 | 6/5/2024 | |
0.62.240604.1 | 593 | 6/4/2024 | |
0.61.240524.1 | 10,195 | 5/24/2024 | |
0.61.240519.2 | 10,130 | 5/19/2024 | |
0.60.240517.1 | 213 | 5/18/2024 | |
0.51.240513.2 | 7,330 | 5/13/2024 | |
0.50.240504.7 | 5,024 | 5/4/2024 | |
0.40.240501.1 | 68 | 5/1/2024 | |
0.39.240427.1 | 216 | 4/28/2024 | |
0.38.240425.1 | 132 | 4/25/2024 | |
0.38.240423.1 | 142 | 4/24/2024 | |
0.37.240420.2 | 194 | 4/21/2024 |