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
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,13 @@ It uses [Langchain4J](https://github.com/langchain4j/langchain4j) AI orchestrati
69
69
70
70
All the available architectures and implementations come with few options to start developing and running the application locally using dev containers or in the cloud using github codespaces. For more detailed instructions, please refer to the specific architecture implementation documentation:
-**Azure Kubernetes Service Guidance**:sunny::cloud:**WIP**
79
79
80
80
81
81
This sample is designed to get you started quickly and let you experiment with Java RAG architectures on Azure. For production deployment, you can use the [Azure Application Landing Zones (LZA)](https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/scenarios/app-platform/ready) to deploy the solution in production leveraging best practices for security, monitoring, networking and operational excellence.
*[Custom Data Ingestion and Indexing](#custom-data-ingestion-and-indexing)
52
50
*[Productionizing](#productionizing)
53
51
*[Cost estimation](#cost-estimation)
54
52
*[Note](#note)
@@ -240,11 +238,11 @@ Under "Trace & Events" panel you can review custom Java informational logs to be
240
238
241
239
To see any exceptions and server errors, navigate to the "Investigate -> Failures" blade and use the filtering tools to locate a specific exception. You can see Java stack traces on the right-hand side.
242
240
243
-
### Enabling Login and User Access Control for Documents
241
+
### Enabling login and search filtering
244
242
245
-
see [here](./login_and_acl.md) for detailed guidance.
243
+
See [here](./login_and_acl.md) for detailed guidance.
246
244
247
-
## Enabling client-side chat history
245
+
### Enabling client-side chat history
248
246
249
247
This feature allows users to view the chat history of their conversation, stored in the browser using [IndexedDB](https://developer.mozilla.org/docs/Web/API/IndexedDB_API). That means the chat history will be available only on the device where the chat was initiated. To enable browser-stored chat history, run:
250
248
@@ -253,7 +251,7 @@ azd env set USE_CHAT_HISTORY_BROWSER true
253
251
```
254
252
This is useful especially for unauthenticated users. For authenticated ones see below.
255
253
256
-
## Enabling persistent chat history with Azure Cosmos DB
254
+
### Enabling persistent chat history with Azure Cosmos DB
257
255
258
256
This feature allows authenticated users to view the chat history of their conversations, stored in the server-side storage using [Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db/).This option requires that authentication be enabled. The chat history will be persistent and accessible from any device where the user logs in with the same account. To enable server-stored chat history, run:
259
257
@@ -264,16 +262,7 @@ azd env set USE_CHAT_HISTORY_COSMOS true
264
262
When both the browser-stored and Cosmos DB options are enabled, Cosmos DB will take precedence over browser-stored chat history.
265
263
266
264
### App Continuous Integration
267
-
:sunny: :cloud: :construction_worker_man: WIP
268
-
269
-
### Custom Data Ingestion and Indexing
270
-
The repository includes sample pdf documents in the data folder. They are ingested in blob container and then indexed in Azure AI Search during infra provisioning by Azure Developer CLI post provision hooks.
271
-
272
-
If you want to chat with your custom documents you can:
273
-
1. Add your pdf documents in the [data folder](../../data).
274
-
2. Open a terminal and cd to repo root folder for app service deployment. Example `cd path/to/your/custom/dir/azure-search-openai-demo-java/deploy/aca`
275
-
3. Run `./scripts/prepdocs.ps1` if you are on windows or `./scripts/prepdocs.sh` on linux
276
-
4. Wait few minutes after the script complete so that the ingestion process, running on the indexer app, will ingest all the documents. This is not a 'delta' process, it's not updating **only** the new files you've added. Instead, on each run, all documents in data folder will be ingested. Feel free to add new files you want to ingest and delete/move the old documents from the data folder. Once you've run the script and it completes successfully, Azure AI Search index has been updated and stored (until you want to manually delete it from your azure Azure AI Search instance)
265
+
:sunny: :cloud: :construction_worker_man: **WIP**
277
266
278
267
### Productionizing
279
268
@@ -325,8 +314,9 @@ However, you can try the [Azure pricing calculator](https://azure.com/e/8ffbe5b1
325
314
- Azure Monitor: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)
326
315
- Azure Event Grid: Basic tier. Pricing per operation. [Pricing](https://azure.microsoft.com/pricing/details/event-grid/)
327
316
- Azure Service Bus: Standard tier. Pricing per hour and operations. [Pricing](https://azure.microsoft.com/pricing/details/service-bus/)
317
+
- Azure Cosmos DB: Only provisioned if you enabled [chat history with Cosmos DB](#enabling-persistent-chat-history-with-azure-cosmos-db). Serverless tier. Pricing per request unit and storage. [Pricing](https://azure.microsoft.com/pricing/details/cosmos-db/)
328
318
329
-
The first 180,000 vCPU-seconds, 360,000 GiB-seconds, and 2 million requests each month are free forACA. To reduce costs, you can switch to free SKUs Form Recognizer by changing the parameters file under the `infra` folder. There are some limits to consider; for example, the free Form Recognizer resource only analyzes the first 2 pages of each document. You can also reduce costs associated with the Form Recognizer by reducing the number of documentsin the `data` folder, or changing the code to use the Itext document based parser, or by removing the postprovision hook in`azure.yaml` that runs the `indexer java cli`.
319
+
The first 180,000 vCPU-seconds, 360,000 GiB-seconds, and 2 million requests each month are free for ACA. To reduce costs, you can switch to free SKUs Document Intelligence by changing the parameters file under the `infra` folder. There are some limits to consider; for example, the free Document Intelligence resource only analyzes the first 2 pages of each document.
330
320
331
321
⚠️ To avoid unnecessary costs, remember to take down your app if it's no longer in use,
332
322
either by deleting the resource group in the Portal or running `azd down`.
0 commit comments