An open API service indexing awesome lists of open source software.

https://github.com/ighoshsubho/sih-backend-chatbot-server

Backend chatbot server for SIH
https://github.com/ighoshsubho/sih-backend-chatbot-server

fastapi langchain llama-index python

Last synced: about 1 month ago
JSON representation

Backend chatbot server for SIH

Awesome Lists containing this project

README

          

# SIH-Backend-Chatbot-Server
Backend chatbot server for SIH

### Run locally
`pip install -r requirements.txt`

### Set the env
`OPENAI_API_KEY=`

### Run the server
`uvicorn main:app --reload`

### Endpoint
`http://localhost/8000/api`

1. `/generate/chat` - Will generate you response based on grievance particularly it will be a chat endpoint
2. `/generate/submit` - Will generate you response in JSON format along with solution
3. `/index` - Will re create the index based on given text
4. `/token` - Will return token count for the text
5. `/transcribe` - Will transcribe the audio and pass it to the chatbot to query the index and return the result