Retrieval Augmented Generation (RAG) to easily inject contextual relevant information into the prompt sent to the model. This results in better and more accurate replies from the bot.
The sample uses a local Vector Database, called Pinecone to find the most relevant information to include in the prompt for the users input. you!
- Add your OpenAI key to the
SECRET_OPENAI_KEY
variable in the./env/.env.local.user
file. - Add your Pinecone key to the
PINECONE_API_KEY
variable in the./env/.env.local.user
file. - Add your Pinecone index name to the
PINECONE_INDEX_NAME
variable in the./env/.env.local.user
file.
The simplest way to run this sample in Teams is to use Teams Toolkit for Visual Studio Code.
- Ensure you have downloaded and installed Visual Studio Code
- Install the Teams Toolkit extension
- Copy this sample into a new folder outside of teams-ai
- Select File > Open Folder in VS Code and choose this sample's directory
- Using the extension, sign in with your Microsoft 365 account where you have permissions to upload custom apps
- Ensure that you have set up the sample from the previous step.
- Select Debug > Start Debugging or F5 to run the app in a Teams web client.
- In the browser that launches, select the Add button to install the app to Teams.