Challenge 04 - Cache it away for a rainy day

< Previous Challenge - Home - Next Challenge >

Introduction

In this challenge, you will explore the semantic cache service, which optimizes chat interactions by storing and reusing generated responses. You will initialize the cache, attempt to retrieve responses from it, and handle repeated user prompts by comparing their embeddings. This challenge helps you better understand how caching improves performance and reduces redundant processing in AI interactions.

Description

Your team must:

You may now go to the starter solution in Visual Studio and complete Challenge 4. Locate the exercises by searching for // TODO: [Challenge 4]

This challenge does not have open-ended exercises.

Tips

Success Criteria

To complete this challenge successfully, you must:

Learning Resources

Advanced Challenges (Optional)

If you want to explore further, try these additional challenges: