Skip to content

amaanhafeez18/Polichat-AI-Chatbot

Repository files navigation

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!

  1. Add your OpenAI key to the SECRET_OPENAI_KEY variable in the ./env/.env.local.user file.
  2. Add your Pinecone key to the PINECONE_API_KEY variable in the ./env/.env.local.user file.
  3. Add your Pinecone index name to the PINECONE_INDEX_NAME variable in the ./env/.env.local.user file.

Using Teams Toolkit for Visual Studio Code

The simplest way to run this sample in Teams is to use Teams Toolkit for Visual Studio Code.

  1. Ensure you have downloaded and installed Visual Studio Code
  2. Install the Teams Toolkit extension
  3. Copy this sample into a new folder outside of teams-ai
  4. Select File > Open Folder in VS Code and choose this sample's directory
  5. Using the extension, sign in with your Microsoft 365 account where you have permissions to upload custom apps
  6. Ensure that you have set up the sample from the previous step.
  7. Select Debug > Start Debugging or F5 to run the app in a Teams web client.
  8. In the browser that launches, select the Add button to install the app to Teams.

About

Polichat bot v1.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published