Next, create a virtual environment and install the required packages.1. Create the virtual environment:
Copy
Ask AI
uv venv
2. Activate the virtual environment:
Copy
Ask AI
.venv\Scripts\activate
3. Install dependencies:
Copy
Ask AI
uv pip install -e .
3
Configure Your Environment
You’ll need to provide credentials to connect to your Neo4j database and other services.
Create a .env file in the a1facts/lib directory.
Add your API keys and, optionally, your Neo4j credentials to the file:
.env
Copy
Ask AI
OPENAI_API_KEY="your_openai_api_key"EXA_API_KEY="your_exa_api_key"# Optional: Add if you want to use Neo4jNEO4J_URI="bolt://localhost:7687"NEO4J_AUTH="your_neo4j_password"
(Optional) Configure logging by adding the following environment variables:
Privacy Notice: We collect minimal usage statistics (number of times the library is run) to help improve the project. You can opt-out by setting the environment variable A1FACTS_TELEMETRY_DISABLED=1.