docs: update ACI docs for capability coupling and InvalidOptions - #246
Suraj Kumar (surajkumar-08) wants to merge 8 commits into
Conversation
faf4eff to
d506515
Compare
John Kennedy (GrantMeStrength)
left a comment
There was a problem hiding this comment.
LGTM — accurate improvement to Windows AI/ML documentation. Approved.
|
Copilot /review |
John Kennedy (GrantMeStrength)
left a comment
There was a problem hiding this comment.
Reviewed ✅ — Documentation improvement looks good.
There was a problem hiding this comment.
Pull request overview
Updates the App Content Search (AppContentIndexer) documentation to reflect Windows App SDK 2.0.0-preview1 API behavior, and expands the tutorial with newer indexing/querying capabilities and additional end-to-end samples.
Changes:
- Updates version guidance and enriches content/search result explanations (including OCR text query matches).
- Adds/expands tutorial coverage for capability coupling, indexing status APIs, index lifecycle management, and intermediate/advanced scenarios.
- Improves/updates sample snippets to align with newer API surface (for example, region-of-interest output for image matches).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| docs/apis/app-content-search.md | Updates overview/version availability text and adds a capability coupling section (currently a link-out). |
| docs/apis/app-content-search-tutorial.md | Adds prerequisites/version requirement, capability coupling guidance, OCR match handling, and multiple new scenario/sample sections. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| For guidance on how to integrate this feature into your app and use the ApplicationContentIndexer API, see: [Quickstart: App Content Search](app-content-search-tutorial.md) | ||
| For guidance on how to integrate this feature into your | ||
| app and use the ApplicationContentIndexer API, see: |
| ## Capability coupling rules | ||
|
|
||
| Some index capabilities have dependency relationships. | ||
| For details on how `TextLexical`, `TextSemantic`, | ||
| `ImageOcr`, and `ImageSemantic` interact, see the |
| ``` | ||
|
|
||
| `QueryMatch` includes only `ContentId` and `TextOffset`/`TextLength`, not the matching text itself. It is your responsibility as the app developer to reference the original text. Query results are sorted by relevancy, with the top result being most relevant. Indexing occurs asynchronously, so queries may run on partial data. You can check the indexing status as outlined below. | ||
| `QueryMatch` includes only `ContentId` and `TextOffset`/`TextLength`, not the matching text itself. It is your responsibility as the app developer to reference the original text.For OCR query matches from indexed images, use AppManagedOcrTextQueryMatch.Fragment and AppManagedOcrTextQueryMatch.Subregion instead of text offsets. Query results are sorted by relevancy, with the top result being most relevant. Indexing occurs asynchronously, so queries may run on partial data. You can check the indexing status as outlined below. |
| public async void WaitForIndexerIdleSample() | ||
| { |
| public async void IndexCapabilitiesSample() | ||
| { |
|
|
||
| > [!TIP] | ||
| > When configuring index capabilities, be aware of | ||
| > [coupling rules](#capability-coupling-rules). |
|
Learn Build status updates of commit 22eedff: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Updated the App Content Search tutorial to include additional features of the AppContentIndexer API, such as checking indexing status, updating and removing content, and deleting an index. - Added detailed examples for managing indexing operations, including handling content reindexing and using content regions for structured data. - Revised the capability coupling rules section for clarity and added a reference to the tutorial for detailed interactions between capabilities. - Expanded the App Content Search overview to clarify the return types of text and image queries, including the handling of OCR-extracted text.
…App Content Search tutorial
…or handling examples
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
… OCR typo - Unwrap hard-wrapped prose in Prerequisites, TIP/NOTE blocks, and capability-coupling sections of both ACI docs - Replace remaining ApplicationContentIndexer references with AppContentIndexer in app-content-search.md - Add missing space after 'original text.' and wrap AppManagedOcrTextQueryMatch.Fragment/.Subregion in backticks Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
22eedff to
e959718
Compare
|
Learn Build status updates of commit e959718: ✅ Validation status: passed
For more details, please refer to the build report. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit 2b6a523: ✅ Validation status: passed
For more details, please refer to the build report. |
Summary
Updates AppContentIndexer (Semantic Search) documentation
for Windows App SDK 2.0.0-preview1 API changes.
What changed
docs/apis/app-content-search.md(overview)"2.0.0-preview1"
TextLexicalRequirementnow silentlysuppresses
TextSemanticRequirementImageSemanticRequirementnow silentlysuppresses
ImageOcrRequirementreturn
InvalidOptionsstatusWARNINGcallout about silent suppressionwith
Defaultsettingsdocs/apis/app-content-search-tutorial.md(tutorial)prerequisites
TIPcallout about capability coupling ruleswith cross-link to overview