-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[SDK Release] (Python) CQA inference 2025-05-15-preview #42870
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
base: main
Are you sure you want to change the base?
Changes from 50 commits
4b174eb
09000ab
bd85eca
bbeaed5
0943c27
4ed473b
06e9927
635d569
6a282b1
81105a7
667b537
f8762d2
fd396d1
649ddb8
f8b5985
dd4c736
264fcef
81c4515
ff4e77a
9a83976
2abd3e2
83824f4
a066bc1
5efb920
baf31f1
58e16cb
2519382
68e34b9
3ada5cd
e1f7a8e
484db9b
b9a4e3c
48e5dc2
3b7ebee
4072d3b
d08237d
735b27a
43abaaf
02c9247
bad3fc2
caca310
431450f
c1b1457
a4b2415
8b0f735
62bdfd4
5633487
d9470b9
4e62b2b
2821346
80031e2
00d9ce8
66f01a0
ac2dfda
8060acd
623b410
5218755
17b21be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,29 @@ | ||
| # Release History | ||
|
|
||
| ## 1.1.1 (Unreleased) | ||
|
|
||
| ### Features Added | ||
| ## 2.0.0b1 (2025-10-27) | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
| ### Bugs Fixed | ||
| * 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. | ||
| * Dropped support for Python versions earlier than 3.9 (aligns with Azure SDK Python support policy going forward). | ||
| * 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. | ||
| * 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: | ||
| * Pass `language="<bcp-47-code>"` when constructing `AnswersFromTextOptions` (e.g. `"es"`, `"zh-Hans"`). | ||
| * Or create / select a project in the desired language in [Language Studio](https://language.azure.com) when authoring knowledge bases. | ||
| * For resource/project level language behavior and multi-language strategies see: [Language support for custom question answering and projects](https://learn.microsoft.com/azure/ai-services/language-service/question-answering/language-support). | ||
|
|
||
| The previous implicit fallback (client-level `default_language`) has been removed to avoid hidden state and to encourage explicit specification or project-level configuration. | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an actual guide/documentation that we can link to about how to configure this at the project level? Or in the portal? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just check the service side, the default_language is hardcoded as "en",can not be configured at the project level, remove related line in changelog |
||
| ### Features Added | ||
|
|
||
| * Documentation improvements: expanded README with authentication guidance, AAD usage, async examples, and troubleshooting section. | ||
|
|
||
| ### Other Changes | ||
|
|
||
| * Internal refactoring and dependency grooming in preparation for the authoring/runtime split. | ||
| * Changed samples and README examples to use explicit `AnswersOptions` / `AnswersFromTextOptions` objects as the first argument when calling `get_answers` and `get_answers_from_text`. | ||
| * Restored backwards compatibility for `MetadataFilter.metadata` inputs so legacy dict or `(key, value)` tuple collections continue to work alongside the new `MetadataRecord` model type. | ||
|
|
||
| ## 1.1.0 (2022-10-13) | ||
|
|
||
| ### Breaking Changes | ||
|
|
@@ -102,4 +116,4 @@ | |
| ## 1.0.0b1 (2021-07-27) | ||
|
|
||
| ### Features Added | ||
| * Initial release - supports querying from text records and knowledge bases. | ||
| * Initial release - supports querying from text records and knowledge bases. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| include *.md | ||
| include LICENSE | ||
| include azure/ai/language/questionanswering/py.typed | ||
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md | ||
| include azure/__init__.py | ||
| include azure/ai/__init__.py | ||
| include azure/ai/language/__init__.py | ||
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md | ||
| include azure/ai/language/questionanswering/py.typed |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "apiVersion": "2025-05-15-preview" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| { | ||
| "CrossLanguagePackageId": "Language.QuestionAnswering", | ||
| "CrossLanguageDefinitionId": { | ||
| "azure.ai.language.questionanswering.models.AnswersFromTextOptions": "Language.QuestionAnswering.AnswersFromTextOptions", | ||
| "azure.ai.language.questionanswering.models.AnswersFromTextResult": "Language.QuestionAnswering.AnswersFromTextResult", | ||
| "azure.ai.language.questionanswering.models.AnswersOptions": "Language.QuestionAnswering.AnswersOptions", | ||
| "azure.ai.language.questionanswering.models.AnswerSpan": "Language.QuestionAnswering.AnswerSpan", | ||
| "azure.ai.language.questionanswering.models.AnswersResult": "Language.QuestionAnswering.AnswersResult", | ||
| "azure.ai.language.questionanswering.models.Error": "Language.QuestionAnswering.Error", | ||
| "azure.ai.language.questionanswering.models.ErrorResponse": "Language.QuestionAnswering.ErrorResponse", | ||
| "azure.ai.language.questionanswering.models.InnerErrorModel": "Language.QuestionAnswering.InnerErrorModel", | ||
| "azure.ai.language.questionanswering.models.KnowledgeBaseAnswer": "Language.QuestionAnswering.KnowledgeBaseAnswer", | ||
| "azure.ai.language.questionanswering.models.KnowledgeBaseAnswerContext": "Language.QuestionAnswering.KnowledgeBaseAnswerContext", | ||
| "azure.ai.language.questionanswering.models.KnowledgeBaseAnswerDialog": "Language.QuestionAnswering.KnowledgeBaseAnswerDialog", | ||
| "azure.ai.language.questionanswering.models.KnowledgeBaseAnswerPrompt": "Language.QuestionAnswering.KnowledgeBaseAnswerPrompt", | ||
| "azure.ai.language.questionanswering.models.MatchingPolicy": "Language.QuestionAnswering.MatchingPolicy", | ||
| "azure.ai.language.questionanswering.models.MetadataFilter": "Language.QuestionAnswering.MetadataFilter", | ||
| "azure.ai.language.questionanswering.models.MetadataRecord": "Language.QuestionAnswering.MetadataRecord", | ||
| "azure.ai.language.questionanswering.models.PrebuiltQueryMatchingPolicy": "Language.QuestionAnswering.PrebuiltQueryMatchingPolicy", | ||
| "azure.ai.language.questionanswering.models.QueryFilters": "Language.QuestionAnswering.QueryFilters", | ||
| "azure.ai.language.questionanswering.models.QueryPreferences": "Language.QuestionAnswering.QueryPreferences", | ||
| "azure.ai.language.questionanswering.models.ShortAnswerOptions": "Language.QuestionAnswering.ShortAnswerOptions", | ||
| "azure.ai.language.questionanswering.models.TextAnswer": "Language.QuestionAnswering.TextAnswer", | ||
| "azure.ai.language.questionanswering.models.TextDocument": "Language.QuestionAnswering.TextDocument", | ||
| "azure.ai.language.questionanswering.models.ErrorCode": "Language.QuestionAnswering.ErrorCode", | ||
| "azure.ai.language.questionanswering.models.InnerErrorCode": "Language.QuestionAnswering.InnerErrorCode", | ||
| "azure.ai.language.questionanswering.models.RankerKind": "Language.QuestionAnswering.RankerKind", | ||
| "azure.ai.language.questionanswering.models.LogicalOperationKind": "Language.QuestionAnswering.LogicalOperationKind", | ||
| "azure.ai.language.questionanswering.models.Scorer": "Language.QuestionAnswering.Scorer", | ||
| "azure.ai.language.questionanswering.models.MatchingPolicyKind": "Language.QuestionAnswering.MatchingPolicyKind", | ||
| "azure.ai.language.questionanswering.models.MatchingPolicyFieldsType": "Language.QuestionAnswering.MatchingPolicyFieldsType", | ||
| "azure.ai.language.questionanswering.models.StringIndexType": "Language.QuestionAnswering.StringIndexType", | ||
| "azure.ai.language.questionanswering.QuestionAnsweringClient.get_answers": "Language.QuestionAnsweringClientCustomizations.QuestionAnsweringClientOperations.getAnswers", | ||
| "azure.ai.language.questionanswering.aio.QuestionAnsweringClient.get_answers": "Language.QuestionAnsweringClientCustomizations.QuestionAnsweringClientOperations.getAnswers", | ||
| "azure.ai.language.questionanswering.QuestionAnsweringClient.get_answers_from_text": "Language.QuestionAnsweringClientCustomizations.QuestionAnsweringClientOperations.getAnswersFromText", | ||
| "azure.ai.language.questionanswering.aio.QuestionAnsweringClient.get_answers_from_text": "Language.QuestionAnsweringClientCustomizations.QuestionAnsweringClientOperations.getAnswersFromText" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore |
Uh oh!
There was an error while loading. Please reload this page.