This repository contains the source code of H A V E N. Our AI driven hotel search platform:
- It is build with a React.JS frontend,
- The backend uses Python's FastAPI framework,
- It uses the speechmatics API for transcription,
- It uses Google's Gemini and LangChain for LLMs.
Use the following tools to set up the project:
- Clone the repository
git clone https://github.com/cs7-shrey/voyagerhack/
- Navigate to the project directory.
cd voyagerhack
- Install all website dependencies.
npm install
pip install -r requirements.txt
- Create a .env file with the following environment variables
DATABASE_URL,
ORM_URL,
GOOGLE_API_KEY,
SPEECHMATICS_API_KEY,
TAVILY_API_KEY,
MAPS_API_KEY,
ALGORITHM,
ACCESS_TOKEN_EXPIRE_MINUTES,
SECRET_KEY,
ENVIRONMENT,
VITE_SOCKET_BASE_URL,
VITE_HTTP_BASE_URL,
BASE_FRONTEND_DOMAIN,
BASE_FRONTEND_URL
- Run the backend server
uvicorn app.main:app
- Run the frotnend
npm run dev
This repository has the following structure:
├── app # The backend code
│ ├── routes # Backend API routes
│ ├── services # Core services used by the backend
│ │ ├── ai # LLM services used by the backend
│ │ ├── crud # DB crud service for backend
│ │ └── tools # Tool declarations and definitions for Agents
| └── utils # Utilities
├── public # Static data for frontend
├── src # React frontend code
│ ├── assets # Various assets
│ ├── components # Frontend components
│ ├── context # Custom context layer
│ ├── lib # Client logic for audio/websocket connections
│ ├── routes # Routes for client side routing
│ └── store # Zustand state store
└── .github # Definitions of GitHub workflows