# Using Kernel Memory as a Service
A library/service of RAG implement.
Caution
The KM is refactoring into KM^2, so this guide would be deprecated in the future.
Deploy Kernel Memory V1 as a service serving.
Reference
Run as a service
Setup
cd service/Service
dotnet run setup
Follow the instructions to setup the service.
Run
dotnet run
Open the http://127.0.0.1:9001/swagger/index.html for api testing.
Run as a service with Docker
Use the config generated from above.
docker run `
-p 9001:9001 `
-it --rm `
-v .\appsettings.Development.json:/app/appsettings.Production.json `
kernelmemory/service