Skip to content
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

Update README.md (Typo "Azure Open AI"→"Azure OpenAI") #1307

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions samples/bot-ai-enterprise-search/nodejs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
page_type: sample
description: This Azure Open AI sample app demonstrates the user search functionality based on Azure Open AI embeddings and completion APIs for user queries using Redis DB, and it is based on files uploaded by an admin using a bot.
description: This Azure OpenAI sample app demonstrates the user search functionality based on Azure OpenAI embeddings and completion APIs for user queries using Redis DB, and it is based on files uploaded by an admin using a bot.
products:
- office-teams
- office
Expand All @@ -12,14 +12,14 @@ extensions:
createdDate: "07/28/2023 13:38:25 PM"
urlFragment: officedev-microsoft-teams-samples-open-ai-search-file-upload-nodejs
---
# Teams Azure Open AI Embeddings And Redis Search On Uploaded File Using Bot
# Teams Azure OpenAI Embeddings And Redis Search On Uploaded File Using Bot

This bot has been created using [Bot Builder](https://www.npmjs.com/package/botbuilder) and [Teams Toolkit](https://learn.microsoft.com/microsoftteams/platform/toolkit/toolkit-v4/teams-toolkit-fundamentals-v4?view=msteams-client-js-latest&pivots=visual-studio-code), this Azure Open AI sample app demonstrates the user search functionality based on Azure Open AI embeddings, Redis DB search and completion APIs for user queries, and it is based on files uploaded by an admin using a bot.
This bot has been created using [Bot Builder](https://www.npmjs.com/package/botbuilder) and [Teams Toolkit](https://learn.microsoft.com/microsoftteams/platform/toolkit/toolkit-v4/teams-toolkit-fundamentals-v4?view=msteams-client-js-latest&pivots=visual-studio-code), this Azure OpenAI sample app demonstrates the user search functionality based on Azure OpenAI embeddings, Redis DB search and completion APIs for user queries, and it is based on files uploaded by an admin using a bot.

## Included Features
* Bots
* Adaptive Cards
* Azure Open AI
* Azure OpenAI
* Redis Search
* Blob Storage

Expand Down Expand Up @@ -63,7 +63,7 @@ The simplest way to run this sample in Teams is to use Teams Toolkit for Visual

`AZURE_STORAGE_CONNECTION_STRING='DefaultEndpointsProtocol=https;AccountName=<Storage Account Name>;AccountKey=<Your Account Key>;EndpointSuffix=core.windows.net'`

**Note:** Update the Azure Open API version from 2023-03-15-preview to any specific or public version in all the files wherever applicable.
**Note:** Update the Azure OpenAPI version from 2023-03-15-preview to any specific or public version in all the files wherever applicable.

> Note: If you are deploying the code, make sure that above mentioned values are properly updated at `env/.env.dev` or `env/.env.dev.user` wherever required.

Expand Down Expand Up @@ -129,7 +129,7 @@ the Teams service needs to call into the bot.

`AZURE_STORAGE_CONNECTION_STRING='DefaultEndpointsProtocol=https;AccountName=<Storage Account Name>;AccountKey=<Your Account Key>;EndpointSuffix=core.windows.net'`

**Note:** Update the Azure Open API version from 2023-03-15-preview to any specific or public version in all the files whereever applicable.
**Note:** Update the Azure OpenAPI version from 2023-03-15-preview to any specific or public version in all the files whereever applicable.

7) Run your bot at the command line:

Expand Down Expand Up @@ -163,10 +163,10 @@ the Teams service needs to call into the bot.
1. File Uploaded Successfully:
![uploaded-file-saved ](images/Admin/10_UploadedFileSaved.png)

1. Now, admin can ask query based on the uploaded docs and Azure Open AI will generate the embedding for query and search the most relevant vectors for user query in the Redis search database based on the embeddings generated for uploaded file contents.
1. Now, admin can ask query based on the uploaded docs and Azure OpenAI will generate the embedding for query and search the most relevant vectors for user query in the Redis search database based on the embeddings generated for uploaded file contents.
![ask-query ](images/Admin/11_AskQuery.png)

1. Admin will get the final answer based on the uploaded docs using Azure Open AI completion model:
1. Admin will get the final answer based on the uploaded docs using Azure OpenAI completion model:
![final-answer ](images/Admin/12_FinalResult.png)

### User Functionalities
Expand All @@ -176,10 +176,10 @@ the Teams service needs to call into the bot.
1. Welcome Card:
![welcome-card ](images/User/6_WelcomeCard.png)

1. User can ask query based on the uploaded docs by admin and Azure Open AI will generate the embedding for query and search the most relevant vectors for user query in the Redis search database based on the embeddings generated for uploaded file contents.
1. User can ask query based on the uploaded docs by admin and Azure OpenAI will generate the embedding for query and search the most relevant vectors for user query in the Redis search database based on the embeddings generated for uploaded file contents.
![ask-query ](images/User/7_AskQuery.png)

1. User will get the final answer based on the uploaded docs using Azure Open AI completion model:
1. User will get the final answer based on the uploaded docs using Azure OpenAI completion model:
![final-answer ](images/User/8_FinalResult.png)

## Deploy to Azure
Expand Down Expand Up @@ -211,7 +211,7 @@ Also, make sure that below key/values are properly added to the configuration se

`"name": "RUNNING_ON_AZURE", "value": "1"`

`"name": "SECRET_AZURE_OPENAPI_KEY", "value": "<Your Azure Open API Key>"`
`"name": "SECRET_AZURE_OPENAPI_KEY", "value": "<Your Azure OpenAPI Key>"`

`"name": "WEBSITE_NODE_DEFAULT_VERSION", "value": "~18"`

Expand Down