-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add Knowledge Base support #2835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
Purpose
This PR upgrades the USE_AGENTIC_RETRIEVAL feature to use the new KnowledgeBase functionality from AI Search, which includes agentic reasoning levels (minimum/low/medium) and new sources of SharePoint and Bing. The agentic retrieval docs describe the upgraded feature.
See AI Search docs here:
https://learn.microsoft.com/en-us/azure/search/whats-new
Here's the Copilot summary of changes:
Backend support for agentic retrieval and knowledge bases:
KnowledgeAgentRetrievalClientwith the newKnowledgeBaseRetrievalClientfromazure.search.documents.knowledgebases.aioinapp/backend/app.py. Adds logic to instantiate and register multiple knowledge base clients (default, with web, with SharePoint, and with both) based on environment variables, enabling flexible source combinations for agentic retrieval. [1] [2]setup_search_infofunction to accept knowledge base–related parameters. [1] [2] [3]USE_AGENTIC_KNOWLEDGEBASE,USE_WEB_SOURCE,USE_SHAREPOINT_SOURCE,AGENTIC_KNOWLEDGEBASE_REASONING_EFFORT) and exposes them to the frontend via the/configendpoint, also adding a new config value for the default retrieval reasoning effort. [1] [2] [3] [4] [5]Documentation and configuration updates:
.azdo/pipelines/azure-dev.yml,.github/workflows/azure-dev.yml) to include the new environment variables for agentic knowledge base retrieval and source selection. [1] [2] [3] [4]Other improvements:
README.mdfrom "Contoso Electronics" to "Zava" for demonstration purposes.@lingual/i18n-checknpm package to version 0.8.12 in the GitHub workflow due to a current issue with their latest release.Does this introduce a breaking change?
When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.
Environment variables changes required to keep using agentic retrieval
Does this require changes to learn.microsoft.com docs?
This repository is referenced by this tutorial
which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial,
check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.
Type of change
Code quality checklist
See CONTRIBUTING.md for more details.
python -m pytest).python -m pytest --covto verify 100% coverage of added linespython -m mypyto check for type errorsruffandblackmanually on my code.