This project enables querying a database using natural language through speech-to-text technology.
- Python
- TypeScript
- FastAPI
- Langchain
- React
- GPT 3.5 LLM
- Google Speech-to-Text
Framework: FastAPI with uvicorn
Create a config.env file in the backend directory and add the following:
OPENAI_API_KEY=
You will need the service_account.json file to access the Google Speech-to-Text API. Place it in the backend directory.
-
Navigate to the backend directory:
cd backend -
Activate the virtual environment:
source venv/bin/activate -
Start the server:
python app/main.py
Framework: React with Vite, Tailwind CSS, and TypeScript
-
Navigate to the frontend directory:
cd frontend -
Start the development server:
npm run dev
Ensure that you have obtained the OPENAI_API_KEY and the service_account.json file before running the backend. The OPENAI_API_KEY can be obtained from OpenAI, and the service_account.json can be obtained from the Google Cloud Console.
For any questions or issues, feel free to contact samblesswin.stephenrajan@utah.edu and vijay.vempati@utah.edu.