ChatGPT + Enterprise data with Azure OpenAI and Cognitive Search - Part 2
Introduction
Not long ago, Microsoft Mechanics YouTube channel showcased a ChatGPT-like application that can be built using Azure Cognitive Services
This solution offers several benefits compared to the Power Virtual Agent (PVA) we developed last week. Powered by OpenAI, it provides an authentic ChatGPT experience, offering not only answers but also source links.
By ingesting and converting data into vectors using ML techniques like Cosine Similarity, it delivers highly accurate Semantic Search
Another advantage is that your data remains within your Azure tenant when deploying your own Azure OpenAI model, ensuring data privacy and security
Thanks to Microsoft's support, deploying this solution on Azure is quick and straightforward, allowing us to get it up and running within minutes. In Part 1, I was not able to replace the sample data with my own. In Part 2, we are taking a slightly different approach and able to use our own data.
Preparation:
If you have never done an Azure deployment
NodeJS
Go to https://nodejs.org/ to install NodeJS LTS version.
Once completed, open cmd and type npm -v to see the version that got installed.
Azure CLI for Windows
Open up Power Shell as Administrator and run the winget to install Azure CLI
winget install -e --id Microsoft.AzureCLI
Restart PowerShell and type Az to see it is now installed.
Azure Tools for VS Code
Next, install Azure Tools extension in VS Code.
Azure Deployment
Now you have your runtime in place, we can follow this GitHub page to deploy.
领英推荐
Clone the repository
2. Open VSCode, click Explorer, Clone Repository, paste in the URL
3. You should now have all the required files in the VSCode.
Project Project Initialization
3. Run?"azd init -t azure-search-openai-demo", create a new environment name.
4. Now you see all the files have initialized again under your folder. Open data folder and replace with your own files.
App Deployment - Start from scratch
2. If you receive the following confirmation, then the app is deployed correctly.
3. To test out, simply click the Endpoint and start chatting with your own data!
Developer at Alacrity Solutions
1 年Thank you! But can we upload Word or other kinds of documents rather than PDF?
Technical Specialist at Microsoft | Data & AI
1 年Thanks Leo. Great to hear the repo came in handy!
Principal Solution Architect | Microsoft Copilot Studio | Power CAT
1 年Always love your articles! Well written, clear and great use cases!