Tools for finding papers from arXiv.
- Create conda/virtual environment using python 3.12.
- Clone repo and change directory
cd arxiv_papers - Make sure your environment has been activated.
pip install -e .- Setup the client (below).
The filtering tools require an OpenAI API key.
The client is configured automatically by setup_client() using either:
- A local JSON config file
- An environment variable
The config file path is:
src/arxiv_papers/openai_config.json
This avoids storing your API key in the repository.
export OPENAI_API_KEY="sk-..."Create:
src/arxiv_papers/openai_config.json
Example:
{
"api_key": "sk-REPLACE_WITH_YOUR_KEY"
}You may optionally include:
{
"api_key": "sk-REPLACE_WITH_YOUR_KEY",
"base_url": "https://api.openai.com/v1",
"organization": "org_XXXXXXXX",
"project": "proj_XXXXXXXX"
}