Skip to content

Commit 577c138

Browse files
committed
fixed readme and added last demo image
1 parent ac80ab0 commit 577c138

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

notebooks/GenAI/embedding_demos/pages/AI_Search_Query.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,7 @@ def chat_on_your_data(query, search_index, messages):
255255
256256
Returns:
257257
None
258-
"""
259-
# Configure Azure OpenAI parameters
260-
# azure_endpoint = os.getenv('AZURE_OPENAI_ENDPOINT') # The endpoint for your Azure OpenAI instance
261-
# azure_openai_api_key = os.getenv('AZURE_OPENAI_API_KEY') # Your Azure OpenAI API key
262-
# azure_openai_api_version = os.getenv('AZURE_OPENAI_VERSION') # The version of the Azure OpenAI API you are using
263-
# azure_ada_deployment = os.getenv('AZURE_EMBEDDINGS_DEPLOYMENT') # The deployed ADA model for your Azure OpenAI instance
264-
# azure_gpt_deployment = os.getenv('AZURE_GPT_DEPLOYMENT') # The deployed GPT model for your Azure OpenAI instance
265-
#azure_openai = setup_azure_openai(log_text)
258+
"""
266259

267260
messages = []
268261

notebooks/GenAI/embedding_demos/readme.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ This script serves as the home page for the Azure OpenAI Demo site. It is the in
5959
- Provides links and descriptions for each demo page.
6060
- **Usage**: Run this script using the command `streamlit run demo_suite.py`.
6161

62-
![embeddings_demo](../../../docs/images/demo_suite1.png)
62+
![demo_suite](../../../docs/images/demo_suite1.png)
6363

6464
### AI_Search_Query.py
6565

@@ -72,7 +72,9 @@ This script serves as the frontend for the embedding demo that utilizes Azure AI
7272
- Allows users to interact with documents stored in the [/search_documents](../search_documents) directory.
7373
- Consistent with the [AISearch_RAG_chatbot.ipynb](../notebooks/AISearch_RAG_chatbot.ipynb) tutorial.
7474
- Provides a user interface for querying and chatting over the documents using Azure AI Search and OpenAI capabilities.
75-
- **Usage**: Accessible from the main page (demo_suite.py) via the left sidebar.
75+
- **Usage**: Accessible from the main page (demo_suite.py) via the left sidebar.
76+
77+
![ai_search_query](../../../docs/images/ai_search_query1.png)
7678

7779
### AOAI_Embeddings.py
7880

@@ -92,10 +94,10 @@ This script serves as the frontend for the embedding demo that uses the Azure Op
9294
## Executing the Azure OpenAI Demo w/ Streamlit Frontend <a name="executing_the_azure_openai_demo"></a>
9395

9496
In this phase, you will choose your preferred environment to execute the Azure OpenAI Demo with a Streamlit frontend. You can either use Azure ML or run the demo locally using VSCode. Please choose an execution environment below:
95-
+ [Executing via Azure ML or VM](#executing_via_azure_ml_vm)
97+
+ [Executing via Azure VM](#executing_via_azure_vm)
9698
+ [Executing via VsCode](#executing_via_vscode)
9799

98-
### Executing via Azure ML or VM <a name="executing_via_azure_ml_vm"></a>
100+
### Executing via Azure VM <a name="executing_via_azure_vm"></a>
99101
If you are in the NIH environment Streamlit's native behavior expects to run applications locally on port 8501, which isn't possible when executing this demo from Azure VM.
100102

101103
Inorder to connect to the streamlit you must change the **port to 3389**. This is an approved port and will ensure that you can access and interact with the Streamlit application without needing to run from your local machine.

0 commit comments

Comments
 (0)