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
- Host: GitHub
- URL: https://github.com/ighoshsubho/sih-backend-chatbot-server
- Owner: ighoshsubho
- Created: 2023-09-19T17:45:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T13:27:19.000Z (over 2 years ago)
- Last Synced: 2025-06-07T04:38:26.276Z (about 1 year ago)
- Topics: fastapi, langchain, llama-index, python
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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