Add recipe: fix agent citations for custom Azure AI Search schemas#45
Open
farzad528 wants to merge 1 commit into
Open
Add recipe: fix agent citations for custom Azure AI Search schemas#45farzad528 wants to merge 1 commit into
farzad528 wants to merge 1 commit into
Conversation
New notebook teaching how to get grounded url_citation annotations from the Azure AI Search tool when the index uses non-standard field names. Registers the index as a project asset with a FieldMapping and references it via index_asset_id. Adds the registry.yaml entry (author farzad528). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
🔍 PreviewA live preview of this PR is available at: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New recipe: Fix agent citations for custom Azure AI Search schemas
Teaches one transferable Foundry pattern: when your Azure AI Search index fields are not named
url/title/content, the Agent's Azure AI Search tool returns placeholderurl_citationannotations (title='doc_0',url='https://<svc>.search.windows.net/'). The fix is to register the index as a project asset with aFieldMappingand reference it viaindex_asset_id— no re-indexing, no schema change.Steps the reader walks
FieldMapping(project.indexes.create_or_update)index_asset_idInvalid IndexId format, oneof conflict, dropped tool-level mapping)Includes a verified real-output section.
Files
notebooks/azure-ai-search-custom-schema-citations.ipynbregistry.yamlentry (slugazure-ai-search-custom-schema-citations, authorfarzad528)Validation
npx tsx validate-registry.ts→ 13 notebooks validatedmain