Follow these steps to set up and debug the application locally.
git clone https://github.com/microsoft/Document-Knowledge-Mining-Solution-Accelerator.git- Open the KernelMemory and Microsoft.GS.DPS solutions in Visual Studio.
- Sign in using your tenant account with the required permissions.
After deploying the accelerator, the appsettings.Development.json file will be created automatically.
-
KernelMemory Solution:
Expand theappsettings.jsonfile under the Service project (inside theservicefolder) and confirm thatappsettings.Development.jsonexists. -
Microsoft.GS.DPS Solution:
Expand theappsettings.jsonfile under the Microsoft.GS.DPS.Host project and confirm thatappsettings.Development.jsonexists.
-
KernelMemory Solution:
Set Service (located inside theservicefolder) as the startup project to run the Kernel Memory service. -
Microsoft.GS.DPS Solution:
Set Microsoft.GS.DPS.Host as the startup project to run the API.
To enable local debugging and ensure your application can access necessary Azure resources, assign the following roles to your Microsoft Entra ID in the respective services within your deployed resource group in the Azure portal:
- App Configuration
- App Configuration Data Reader
- Storage Account
- Storage Blob Data Contributor
- Storage Queue Data Contributor
- Storage Blob Data Reader
Important:
The following change is only for local development and debugging.
For production or Azure deployment, ensure the endpoint is set tohttp://kernelmemory-serviceto avoid misconfiguration.
- Sign in to the Azure Portal.
- Navigate to your App Configuration resource within/from your deployed resource group.
- Go to Operations → Configuration Explorer.
- Search for the key:
Application:Services:KernelMemory:Endpoint - For local development, update its value from:
to
http://kernelmemory-servicehttp://localhost:9001 - Apply the changes.
Note:
Always revert this value back tohttp://kernelmemory-servicebefore running the application in Azure.
- Open the repo in VS Code.
- Navigate to the
App/frontend-appfolder and locate the.envfile. - In the
.envfile, update theVITE_API_ENDPOINTvalue with your local API URL, e.g.:VITE_API_ENDPOINT=https://localhost:52190 - Install dependencies:
yarn install
- Start the application:
yarn start
You're now ready to run and debug the application locally!