Your AI-powered assistant for all things Formula 1.
F1 AI Copilot is an intelligent and context-aware assistant designed to provide detailed insights into the world of Formula 1. Whether you're a fan, an analyst, or simply curious, this AI-driven application offers meaningful answers and relevant information.
- OpenAI GPT-4: Provides intelligent and natural language responses.
- Semantic Search: Powered by OpenAI embeddings and Astra DB for context-aware retrieval.
- Responsive UI: Built with Tailwind CSS for a modern and sleek interface.
- RAG Architecture: Retrieval-Augmented Generation for enhanced accuracy and context.
- OpenAI API Key: Sign up at OpenAI to obtain your API key.
- DataStax Astra DB Credentials:
- Create a free Astra DB account at DataStax Astra.
- Set up a database and enable the vector search feature.
-
Clone the repository:
git clone https://github.com/your-username/f1-ai-copilot.git cd f1-ai-copilot -
Install dependencies:
npm install
-
Create a
.envfile from the provided.env.sample:cp .env.sample .env
-
Fill in the
.envfile with your credentials:OPEN_API_KEY: Your OpenAI API key.ASTRA_DB_API_ENDPOINT: URL for your Astra DB instance.ASTRA_DB_NAMESPACE: Your Astra DB namespace.ASTRA_DB_APPLICATION_TOKEN: Your Astra DB application token.ASTRA_DB_COLLECTION: The collection name for storing embeddings.
-
Run the application:
npm run dev
The following environment variables are required to run this application. A .env.sample file is provided for reference:
OPEN_API_KEY=your-openai-api-key
ASTRA_DB_API_ENDPOINT=https://your-astra-db-endpoint
ASTRA_DB_NAMESPACE=your-namespace
ASTRA_DB_APPLICATION_TOKEN=your-application-token
ASTRA_DB_COLLECTION=your-collection-name-Seed the database locally by running npm run seed.
- Start the app locally by running
npm run dev. - Interact with the F1 AI Copilot via the web interface.
- Ask any Formula 1-related question and receive contextually enriched answers.
- OpenAI GPT-4: For conversational AI responses.
- OpenAI Embeddings: To generate and store semantic vectors.
- Astra DB: Vector database for fast and accurate retrieval.
- Tailwind CSS: Responsive and modern design.
Contributions are welcome! To contribute:
- Fork the repo.
- Create a new branch for your feature/fix.
- Submit a pull request describing your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
If you encounter any issues or have suggestions, feel free to open an issue or contact us.