Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.37 KB

File metadata and controls

61 lines (44 loc) · 2.37 KB
page_type sample
languages
csharp
products
windows
windows-app-sdk
name AppContentSearch Sample
urlFragment AppContentSearchSample
description Demonstrates how to use the AppContentSearch APIs in Windows App SDK to index and semantically search text content and images in a WinUI3 notes application.
extendedZipContent
path target
LICENSE
LICENSE

AppContentSearch Sample Application

This sample demonstrates how to use App Content Search's AppContentIndex APIs in a WinUI3 notes application. It shows how to create, manage, and semantically search through the index that includes both text content and images. It also shows how to use the search results to enable retrieval augmented generation (RAG) scenarios with language models.

Note: This sample is targeted and tested for Windows App SDK 2.0 Preview1 and Visual Studio 2022.

Features

This sample demonstrates:

  • Creating Index: Create an index with optional settings.
  • Indexing Content: Add, update, and remove content from the index
  • Text Content Search: Query the index for text-based results.
  • Image Content Search: Query the index for image-based results.
  • Search Results Display: Display both text and image search results with relevance highlighting and bounding boxes for image matches
  • Retrieval Augmented Generation (RAG): Use query search results with language models for retrieval augmented generation (RAG) scenarios.

Prerequisites

Building and Running the Sample

  • Open the solution file (NotesApp.sln) in Visual Studio.
  • Press Ctrl+Shift+B, or select Build > Build Solution.
  • Run the application to see the Notes app with integrated search functionality.

Related Documentation and Code Samples