You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* init and update by tsp generate tool
* update patch files to support old version, and fix tests and samples
* delete old question anwsering folder
* init
* update patch files to support old version, and fix tests and samples
* update tests
* update tests&recordings
* fix spell issue
* fix the Azure Pipelines / python - pullrequest
* fix Unexpected indentation issue for sphinx-build
* fix the cspell issue
* fix verify whl stage
* fix Incompatible types in assignment
* fix pylint
* fix Inline strong start-string without end-string.
* fix overload issue
* update operation patch and re record
* fix(questionanswering): add missing type annotations to restore verifytypes score
The verifytypes pipeline failed because type completeness for azure-ai-language-questionanswering dropped from 100% (main) to 87.9%. Pyright reported missing / ambiguous types for:
QuestionAnsweringClient.question_answering (sync + async clients)
QuestionAnsweringOperations.init (sync + async)
Derived patch classes were then flagged as having partially unknown bases.
Changes:
Added explicit return/attribute annotation for question_answering in _client.py and _client.py.
Added *args: Any, **kwargs: Any plus explicit internal attribute types in _operations.py and _operations.py.
Result:
Eliminates Pyright errors about missing annotations and partially unknown base classes.
Restores type completeness score to parity with main (expected 100%).
No runtime or public API behavior changes; typing-only improvement.
Follow-up (optional):
Consider templating these annotations in the code generator to avoid future regeneration loss
* regenerate the code and update tests/samples/patch
* fix commit:
1. update readme, add sample for both flattened options and explicit AnswersOptions
2. add overloads for get_answers
3. other fix
* add back files
* update
* update version
* switch examples to DefaultAzureCredential and reorganize README
Make AAD the primary auth path; move API key to secondary section
Clarify custom subdomain requirement for token auth
Add rationale for DefaultAzureCredential
Unify example headings (options vs flattened vs async)
Fix internal anchors and markdown lint issues
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/azure/ai/language/questionanswering/models/_enums.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/sample_query_knowledgebase.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/README.md
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
* add and update
* deleted generated files and restore patch file
* updated
* update the python version in sample readme
* update the python version in setup.py
* fix pylint, 4 of them not foxed, because them are generated code
* update patch file
* remove uesless _default_language
* update
* update parameter name of just "options"
update the class name
* fix pylint
* fix pylint
* update change log
* update
* Update sdk/cognitivelanguage/azure-ai-language-questionanswering/tsp-location.yaml
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
* fix analyze issue
* update
* about default_language
* regenerate
* update
---------
Co-authored-by: Qi Yin <v-qiyin1@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Rajarshi Sarkar <73562869+sarkar-rajarshi@users.noreply.github.com>
Copy file name to clipboardExpand all lines: sdk/cognitivelanguage/azure-ai-language-questionanswering/CHANGELOG.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,28 @@
1
1
# Release History
2
2
3
-
## 1.1.1 (Unreleased)
4
-
5
-
### Features Added
3
+
## 2.0.0b1 (2025-10-27)
6
4
7
5
### Breaking Changes
8
6
9
-
### Bugs Fixed
7
+
* Authoring functionality (project creation, knowledge source management, deployment operations) has been removed from this package and moved to a separate dedicated authoring package / namespace. All references to `AuthoringClient`, and related authoring operations have been eliminated from the runtime client distribution.
8
+
* Dropped support for Python versions earlier than 3.9 (aligns with Azure SDK Python support policy going forward).
9
+
* Model base class change: all public model types now inherit from `MutableMapping[str, Any]` (dict-like) instead of the previous `Model` base class. As a result they now support standard mutable mapping behavior (key iteration, item assignment, etc.) and any code depending on methods/properties inherited from the old base class should be reviewed/updated.
10
+
* Removed client constructor keyword argument `default_language`. Per-call language control is now done explicitly via the `language` property on `AnswersFromTextOptions` (and related options models). The service default remains `"en"` if a language is not supplied. To change the effective language:
11
+
* Pass `language="<bcp-47-code>"` when constructing `AnswersFromTextOptions` (e.g. `"es"`, `"zh-Hans"`).
12
+
* Or create / select a project in the desired language in [Language Studio](https://language.azure.com) when authoring knowledge bases.
13
+
14
+
The previous implicit fallback (client-level `default_language`) has been removed to avoid hidden state and to encourage explicit specification or project-level configuration.
15
+
* Removed support for passing metadata as `Dict[str,str]` to `MetadataFilter`. Tuple form `[("key","value"), ...]` and `List[MetadataRecord]` remain supported.
16
+
17
+
### Features Added
18
+
19
+
* Documentation improvements: expanded README with authentication guidance, AAD usage, async examples, and troubleshooting section.
10
20
11
21
### Other Changes
12
22
23
+
* Internal refactoring and dependency grooming in preparation for the authoring/runtime split.
24
+
* Changed samples and README examples to use explicit `AnswersOptions` / `AnswersFromTextOptions` objects as the first argument when calling `get_answers` and `get_answers_from_text`.
25
+
13
26
## 1.1.0 (2022-10-13)
14
27
15
28
### Breaking Changes
@@ -102,4 +115,4 @@
102
115
## 1.0.0b1 (2021-07-27)
103
116
104
117
### Features Added
105
-
* Initial release - supports querying from text records and knowledge bases.
118
+
* Initial release - supports querying from text records and knowledge bases.
0 commit comments