IIT-Patna-Inter-IIT-Tech-Meet / DevRev-chatbot-backend

DevRev chatbot backend for InterIIT 2023

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chatbot Backend

This project is made using FastAPI. This serves as a backend to the frontend chatbot.

Note: We consider updation or deletion as a new few, so the extra overhead should be counted as one-time setup.

Run Locally

Go to the project directory

  cd chatbot-backend

Install dependencies

  pip install -r requirements.txt
   conda create --name myenv
   conda activate myenv
   conda env update --name myenv --file environment.yml --prune

Add your OpenApi key in main.py

  OPENAPIKEY = 'XXXXXXXXXXXXXXXXXX'

Start the server

  uvicorn main:app --reload

API Reference

Process the user query and sends the output

  POST /api/query
Parameter Type Description
query string Required. The user query from the frontend

Tech Stack

Server: FastAPI, OpenAPI, Langchain

Database: ChromaDB

About

DevRev chatbot backend for InterIIT 2023


Languages

Language:Python 100.0%