Skip to content

Commit b66c36f

Browse files
w-javedxinlian12annie-macxiangyan99scbedd
authored
Azure-AI-Generative-Deprecation-Msg (#37722)
* Azure-AI-Generative-Deprecation-Msg * addFeedRangesAndUseFeedRangeInQueryChangeFeed (#37687) * Add getFeedRanges API * Add feedRange support in query changeFeed Co-authored-by: annie-mac <[email protected]> * Azure-AI-Generative-Deprecation-Msg * Update release date for core (#37723) * Improvements to mindependency dev_requirement conflict resolution (#37669) * during mindependency runs, dev_requirements on local relative paths are now checked for conflict with the targeted set of minimum dependencies * multiple type clarifications within azure-sdk-tools * added tests for new conflict resolution logic --------- Co-authored-by: McCoy Patiño <[email protected]> * update doc settings * Need to add environment to subscription configuration (#37726) Co-authored-by: Wes Haggard <[email protected]> * Enable samples for formrecognizer (#37676) --------- Co-authored-by: Annie Liang <[email protected]> Co-authored-by: annie-mac <[email protected]> Co-authored-by: Xiang Yan <[email protected]> Co-authored-by: Scott Beddall <[email protected]> Co-authored-by: McCoy Patiño <[email protected]> Co-authored-by: Azure SDK Bot <[email protected]> Co-authored-by: Wes Haggard <[email protected]>
1 parent f8ab118 commit b66c36f

File tree

4 files changed

+9
-137
lines changed

4 files changed

+9
-137
lines changed

eng/.docsettings.yml

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ known_content_issues:
111111
- ['sdk/remoterendering/azure-mixedreality-remoterendering/README.md', '#4554']
112112
- ['sdk/modelsrepository/azure-iot-modelsrepository/README.md', '#4554']
113113
- ['sdk/openai/azure-openai/README.md', '#4554']
114+
- ['sdk/ai/azure-ai-generative/README.md', 'Deprecated package.']
114115

115116
# common.
116117
- ['sdk/appconfiguration/azure-appconfiguration/README.md', 'common']

sdk/ai/azure-ai-generative/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 1.0.0b11 (2024-10-04)
4+
5+
### Other Changes
6+
- Deprecation message added.
7+
38
## 1.0.0b10 (2024-10-03)
49

510
### Bugs Fixed

sdk/ai/azure-ai-generative/README.md

+2-136
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,5 @@
11
# Azure AI Generative Package client library for Python
22

3-
The Azure AI Generative package is part of the Azure AI SDK for Python and contains functionality for building, evaluating and deploying Generative AI applications that leverage Azure AI services. The default installation of the package contains capabilities for cloud-connected scenarios, and by installing extras you can also run operations locally (such as building indexes and calculating metrics).
3+
This package has been deprecated and will no longer be maintained.
44

5-
[Source code][source_code]
6-
| [Package (PyPI)][ai_pypi]
7-
| [API reference documentation][ai_ref_docs]
8-
| [Product documentation][product_documentation]
9-
| [Samples][generative_samples]
10-
11-
This package has been tested with Python 3.8, 3.9, 3.10, 3.11 and 3.12.
12-
13-
For a more complete set of Azure libraries, see https://aka.ms/azsdk/python/all.
14-
15-
## Getting started
16-
17-
### Prerequisites
18-
19-
- Python 3.8 or later is required to use this package.
20-
- You must have an [Azure subscription][azure_subscription].
21-
- An [Azure Machine Learning Workspace][workspace].
22-
- An [Azure AI Studio project][ai_project].
23-
24-
### Install the package
25-
Install the Azure AI generative package for Python with pip:
26-
27-
```
28-
pip install azure-ai-generative[index,evaluate,promptflow]
29-
pip install azure-identity
30-
```
31-
32-
## Key concepts
33-
34-
The `[index,evaluate,promptflow]` syntax specifies extra packages that you can optionally remove if you don't need the functionality:
35-
* `[index]` adds the ability to build indexes on your local development environment
36-
* `[evaluate]` adds the ability to run evaluation and calculate metrics in your local development environment
37-
* `[promptflow]` adds the ability to develop with prompt flow connected to your Azure AI project
38-
39-
## Usage
40-
41-
### Connecting to Projects
42-
The generative package includes the azure-ai-resources package and uses the `AIClient` for connecting to your project.
43-
44-
First, create an `AI Client`:
45-
46-
```python
47-
from azure.ai.resources.client import AIClient
48-
from azure.identity import DefaultAzureCredential
49-
50-
ai_client = AIClient(
51-
credential=DefaultAzureCredential(),
52-
subscription_id='subscription_id',
53-
resource_group_name='resource_group',
54-
project_name='project_name'
55-
)
56-
```
57-
58-
### Using the generative package
59-
Azure AI Generative Python SDK offers the following key capabilities.
60-
61-
To build an index locally, import the build_index function:
62-
63-
```python
64-
from azure.ai.generative.index import build_index
65-
```
66-
To run a local evaluation, import the evaluate function:
67-
68-
```python
69-
from azure.ai.generative.evaluate import evaluate
70-
```
71-
To deploy chat functions and prompt flows, import the deploy function:
72-
73-
```python
74-
from azure.ai.resources.entities.deployment import Deployment
75-
```
76-
For sample usage of these, refer to this sample
77-
78-
## Examples
79-
80-
See our [samples repository][generative_samples] for examples of how to use the Azure AI Generative Python SDK.
81-
82-
## Troubleshooting
83-
### General
84-
Azure AI clients raise exceptions defined in Azure Core.
85-
86-
```python
87-
from azure.core.exceptions import HttpResponseError
88-
89-
try:
90-
ai_client.compute.get("cpu-cluster")
91-
except HttpResponseError as error:
92-
print("Request failed: {}".format(error.message))
93-
```
94-
95-
### Logging
96-
This library uses the standard logging library for logging. Basic information about HTTP sessions (URLs, headers, etc.) is logged at INFO level.
97-
98-
Detailed DEBUG level logging, including request/response bodies and unredacted headers, can be enabled on a client with the `logging_enable` argument.
99-
100-
See full SDK logging documentation with examples here.
101-
102-
### Telemetry
103-
The Azure AI Generative Python SDK includes a telemetry feature that collects usage and failure data about the SDK and sends it to Microsoft when you use the SDK in a Jupyter Notebook only. <u>Telemetry will not be collected for any use of the Python SDK outside of a Jupyter Notebook.</u>
104-
105-
Telemetry data helps the SDK team understand how the SDK is used so it can be improved and the information about failures helps the team resolve problems and fix bugs. The SDK telemetry feature is enabled by default for Jupyter Notebook usage and cannot be enabled for non-Jupyter scenarios. To opt out of the telemetry feature in a Jupyter scenario, set the environment variable `"AZURE_AI_GENERATIVE_ENABLE_LOGGING"` to `"False"`.
106-
107-
108-
## Next steps
109-
110-
See our [samples repository][generative_samples] for examples of how to use the Azure AI Generative Python SDK.
111-
112-
## Contributing
113-
114-
If you encounter any bugs or have suggestions, please file an issue in the [Issues](<https://github.com/Azure/azure-sdk-for-python/issues>) section of the project.
115-
116-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fsdk%2Ftemplate%2Fazure-template%2FREADME.png)
117-
118-
119-
<!-- LINKS -->
120-
121-
[source_code]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/ai/azure-ai-generative
122-
[ai_project]: https://aka.ms/azureaistudio
123-
[ai_pypi]: https://pypi.org/project/azure-ai-generative/
124-
[ai_ref_docs]: https://learn.microsoft.com/python/api/azure-ai-generative/?view=azure-python-preview
125-
[generative_samples]: https://github.com/Azure-Samples/azureai-samples
126-
[product_documentation]: https://docs.microsoft.com/azure/machine-learning/
127-
[azure_subscription]: https://azure.microsoft.com/free/
128-
[workspace]: https://docs.microsoft.com/azure/machine-learning/concept-workspace
129-
[python_logging]: https://docs.python.org/3/library/logging.html
130-
[sdk_logging_docs]: https://docs.microsoft.com/azure/developer/python/azure-sdk-logging
131-
[azure_core_readme]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md
132-
[pip_link]: https://pypi.org/project/pip/
133-
[azure_core_ref_docs]: https://aka.ms/azsdk-python-core-policies
134-
[azure_core]: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/README.md
135-
[azure_identity]: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity
136-
[cla]: https://cla.microsoft.com
137-
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
138-
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
139-
[coc_contact]: mailto:[email protected]
5+
Please refer to new package [Azure AI Evaluation](https://pypi.org/project/azure-ai-evaluation/) for evaluating Generative AI applications that leverage Azure AI services.

sdk/ai/azure-ai-generative/azure/ai/generative/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# ---------------------------------------------------------
44

5-
VERSION = "1.0.0b10"
5+
VERSION = "1.0.0b11"

0 commit comments

Comments
 (0)