Workshop challenge: run each function in the notebooks to see how they work¶
- Open the knowledge_mining_api notebook from the Challenge-3-and-4 folder
- Run the first cell to import the requirements
- Run the second cell to define a function to connect to the Azure SQL database.
- The third cell defines a class that is used to define the plugin for the Azure AI Agent. This contains the various functions that power different behaviors such as greeting, query Azure SQL database and query Azure AI Search. Run cell 3 and 4 to see the results when a user says Hello. The next result will show when a user asks a question and runs the Azure SQL query function. Finally we will see a result when the user asks questions that runs the Azure AI Search function.
- Finally, you could update the
user_inputsin cell 3 to try out more questions.
| Bash | |
|---|---|
1 2 3 4 5 6 7 8 | |