This repository contains the FastAPI backend module for "Dialogues Through Time," an immersive educational game that combines historical education with interactive AI dialogues. Our backend manages game states, processes AI dialogues, and integrates with Azure services.
- AI Dialogue Management
- LLM Constraining System
- Game State Management
- Azure OpenAI Integration
- Python 3.8+
- FastAPI
- Uvicorn
- Azure account and Redis service
- Clone the repository
- Navigate to the project directory
- Install the required packages
Create a .env
file in the root directory with the following structure:
AZURE_API_KEY=YourAzureApiKeyHere
API_KEY=YourApiKeyHere
REDIS_PASSWORD=YourRedisPasswordHere
Note: The above keys are placeholders. Replace them with your actual keys.
Run the server using Uvicorn:
uvicorn main:app --reload
Access the backend API at http://localhost:8000
.
For a detailed explanation of the backend setup and functionalities, refer to our YouTube video overview.
- Unity Frontend Integration
- Azure Redis Cache
- LLM Constraining Module
- Azure OpenAI Service
This project is licensed under the MIT License.