This project helps find, process, and evaluate information about AI safety events and training programs using the Exa API and OpenRouter API.
- Search for AI safety events (conferences, workshops, seminars)
- Process and export results to JSON and Markdown
- Customizable queries for AI safety, governance, ethics, etc.
- Automatic date range for up-to-date results
- AI-powered scoring of results for relevance to AI safety
- Error handling and retry mechanism
- Rye
- Exa API Key (set
EXA_API_KEY
in.env
file) - OpenRouter API Key (set
OPENROUTER_API_KEY
in.env
file)
- Clone the repository
- Create a
.env
file in the project root and add your API keys:EXA_API_KEY=your_exa_api_key_here OPENROUTER_API_KEY=your_openrouter_api_key_here
- Run
rye sync
to set up the project - Run
rye run python -m aisafetyeventsandtraining.main
- Check the
./results
folder for output files (JSON and Markdown)
The script generates two types of output files in the results
folder:
- JSON file: Contains raw data of search results and AI safety scores
- Markdown file: Presents a formatted list of results, sorted by AI safety relevance score
You can modify the following variables in main.py
to customize the script's behavior:
NUM_RESULTS
: Number of results to fetch per queryDAYS
: Number of days in the past to search for eventsOPENAI_MODEL
: The OpenAI model to use for scoring (via OpenRouter)MAX_SUMMARY_LENGTH
: Maximum length of result summaries