Skip to content

Commit 9b6fffb

Browse files
committed
update for freshmess
1 parent 7dc4481 commit 9b6fffb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

articles/ai-services/document-intelligence/concept-retrieval-augmented-generation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: conceptual
9-
ms.date: 02/29/2024
10-
ms.author: luzhan
9+
ms.date: 08/13/2024
10+
ms.author: lajanuar
1111
monikerRange: '>=doc-intel-3.1.0'
1212
---
1313

@@ -130,27 +130,27 @@ key = "<api_key>"
130130

131131
from langchain_community.document_loaders import AzureAIDocumentIntelligenceLoader
132132
from langchain.text_splitter import MarkdownHeaderTextSplitter
133-
133+
134134
# Initiate Azure AI Document Intelligence to load the document. You can either specify file_path or url_path to load the document.
135135
loader = AzureAIDocumentIntelligenceLoader(file_path="<path to your file>", api_key = key, api_endpoint = endpoint, api_model="prebuilt-layout")
136136
docs = loader.load()
137-
137+
138138
# Split the document into chunks base on markdown headers.
139139
headers_to_split_on = [
140140
("#", "Header 1"),
141141
("##", "Header 2"),
142142
("###", "Header 3"),
143143
]
144144
text_splitter = MarkdownHeaderTextSplitter(headers_to_split_on=headers_to_split_on)
145-
145+
146146
docs_string = docs[0].page_content
147147
splits = text_splitter.split_text(docs_string)
148148
splits
149149
```
150+
150151
> [!div class="nextstepaction"]
151152
> [View samples on GitHub.](https://github.com/Azure-Samples/document-intelligence-code-samples/blob/main/Python(v4.0)/Retrieval_Augmented_Generation_(RAG)_samples/sample_rag_langchain.ipynb)
152153
153-
154154
## Next steps
155155

156156
* Learn more about [Azure AI Document Intelligence](overview.md).

articles/ai-services/translator/document-translation/how-to-guides/create-sas-tokens.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: how-to
66
manager: nitinme
77
ms.author: lajanuar
88
author: laujan
9-
ms.date: 02/12/2024
9+
ms.date: 08/13/2024
1010
---
1111

1212
# Create SAS tokens for your storage containers
@@ -82,9 +82,9 @@ Go to the [Azure portal](https://portal.azure.com/#home) and navigate to your co
8282
* Consider setting a longer duration period for the time you're using your storage account for Translator Service operations.
8383
* The value of the expiry time is determined by whether you're using an **Account key** or **User delegation key** **Signing method**:
8484
* **Account key**: While a maximum time limit isn't imposed, best practice recommends that you configure an expiration policy to limit the interval and minimize compromise. [Configure an expiration policy for shared access signatures](/azure/storage/common/sas-expiration-policy).
85-
* **User delegation key**: The value for the expiry time is a maximum of seven days from the creation of the SAS token. The SAS is invalid after the user delegation key expires, so a SAS with an expiry time of greater than seven days will still only be valid for seven days. For more information,*see* [Use Microsoft Entra credentials to secure a SAS](/azure/storage/blobs/storage-blob-user-delegation-sas-create-cli#use-azure-ad-credentials-to-secure-a-sas).
85+
* **User delegation key**: The value for the expiry time is a maximum of seven days from the creation of the SAS token. The SAS is invalid after the user delegation key expires, so a SAS with an expiry time of greater than seven days will still only be valid for seven days. For more information, *see* [Use Microsoft Entra credentials to secure a SAS](/azure/storage/blobs/storage-blob-user-delegation-sas-create-cli#use-azure-ad-credentials-to-secure-a-sas).
8686

87-
1. The **Allowed IP addresses** field is optional and specifies an IP address or a range of IP addresses from which to accept requests. If the request IP address doesn't match the IP address or address range specified on the SAS token, authorization fails. The IP address or a range of IP addresses must be public IPs, not private. For more information,*see*, [**Specify an IP address or IP range**](/rest/api/storageservices/create-account-sas#specify-an-ip-address-or-ip-range).
87+
1. The **Allowed IP addresses** field is optional and specifies an IP address or a range of IP addresses from which to accept requests. If the request IP address doesn't match the IP address or address range specified on the SAS token, authorization fails. The IP address or a range of IP addresses must be public IPs, not private. For more information, *see*, [**Specify an IP address or IP range**](/rest/api/storageservices/create-account-sas#specify-an-ip-address-or-ip-range).
8888

8989
1. The **Allowed protocols** field is optional and specifies the protocol permitted for a request made with the SAS. The default value is HTTPS.
9090

0 commit comments

Comments
 (0)