Skip to content

DGAISmith/AspireProtoDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

AspireProtoDemo

Sample repo demonstrating rapid prototyping by adding a bunch of things to the aspire starter app

This demo app adds the following features to the Aspire starter app:

  • Service Bus with queue for prompt evaluation requests
  • Azure AI Foundry integration using Foundry Local for local LLM hosting
  • Ollama integration for local LLM hosting
  • PostgreSQL database integration for quick storage of prompt responses

Requirements

Instructions

  1. Clone this repository
  2. Ensure docker is running
  3. Open WeatherApp.slnx in Visual Studio
  4. Wait for aspire dashboard to go green (first-time run will take a while, afterwards should be faster when docker images and containers persist)
  5. Click on link in webfronted resource to open the UI. Go to the weather page. Click the button.
  6. Click on logs / traces / metrics in aspire dashboard to see the telemetry building up for the things you've done.
  7. Click link in pgadmin resource. Navigate to Servers -> demopostgres -> databases -> demodatabase -> schemas -> tables -> prompt_audit. Right-click -> view/edit data -> show all rows.

Additional fun stuff

  1. Click link in ollama-openwebui resource to open Ollama's playground UI to ask Ollama's model questions directly.
  2. Add WithRedisInsight() or WithRedisCommander() to the redis resource in AppHost to see the redis admin container spin up.
  3. Click on Copilot icon in aspire dashboard and ask it questions about resources, or traces.
  4. Run "aspire publish" or "aspire deploy" on the command-line to see bicep generation, or really create the resources in azure as container apps.
  5. Run the test project to see how easy it is to leverage the apphost as an SUT.

Commit history

  • Initial commit: Aspire starter app
  • Added aspire hosting packages to AppHost project and orchestration code for resources we will need
  • Add fix for certificate chain issue with ollama (ForcePoint problems)
  • Add function app with "enlist" ticked, add WithReference()s to AppHost orchestration
  • In function app, add packages and code to send prompts to LLMs via Foundry Local and Ollama
  • In api app, add new endpoint to send service bus message
  • In frontend app, add button and call to new api endpoint to evaluate the current forecasts
  • Add PostgreSQL integration to store prompt responses
  • Change prompt test while apphost is still running to show hot reload]
  • Add AppContainers publishing to apphost to demo aspire cli
  • Add message command extension to service bus resource to show apphost interactivity
  • Add redis insight and commander options to redis resource, update readme

About

Sample repo demonstrating rapid prototyping by adding a bunch of things to the aspire starter app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published