Installation Guide¶
Get ChronoScope up and running on your local machine in just a few minutes.
System Requirements¶
- macOS 10.15 (Catalina) or later
- Python 3.9 or higher
- 500MB free disk space
- Internet connection for AI processing
- Windows 10 or later
- Python 3.9 or higher
- 500MB free disk space
- Internet connection for AI processing
- Ubuntu 20.04+ / Debian 10+ / Fedora 30+
- Python 3.9 or higher
- 500MB free disk space
- Internet connection for AI processing
Step 1: Install Python¶
ChronoScope requires Python 3.9 or higher. Check your Python version:
Python Installed
If you see Python 3.9.x or higher, you're good to go!
Need to Install Python?
Download Python from python.org
Installation tips:
- ✅ Check "Add Python to PATH" during installation (Windows)
- ✅ Use the official installer for best compatibility
- ✅ Verify installation with
python3 --version
Step 2: Download ChronoScope¶
Option A: Clone with Git (Recommended)¶
# Clone the repository
git clone https://github.com/yourusername/chronoscope.git
# Navigate to the project directory
cd chronoscope
Option B: Download ZIP¶
- Visit github.com/yourusername/chronoscope
- Click the green "Code" button
- Select "Download ZIP"
- Extract the ZIP file
- Open terminal/command prompt in the extracted folder
Step 3: Create Virtual Environment¶
A virtual environment keeps ChronoScope's dependencies isolated from your system Python.
# Create virtual environment
python3 -m venv .venv
# Activate virtual environment
source .venv/bin/activate
When activated, you'll see (.venv) at the start of your terminal prompt.
Step 4: Install Dependencies¶
With your virtual environment activated, install ChronoScope's dependencies:
This will install:
- Streamlit - Web interface framework
- OpenAI - AI extraction capabilities
- Plotly - Interactive visualizations
- Pandas - Data manipulation
- And other supporting libraries
Installation Time
This usually takes 1-2 minutes depending on your internet speed.
Step 5: Configure OpenAI API Key¶
ChronoScope uses OpenAI's API for intelligent event extraction.
Get an API Key¶
- Go to platform.openai.com/api-keys
- Sign up or log in
- Click "Create new secret key"
- Copy your API key (it starts with
sk-)
Keep Your Key Secret
Never share your API key or commit it to version control!
Add Key to ChronoScope¶
Create a configuration file:
Replace sk-your-key-here with your actual API key.
Verify Configuration¶
Check that the file was created correctly:
You should see:
Step 6: Launch ChronoScope¶
Start the application:
Success!
Your default browser will open to http://localhost:8501
You should see the ChronoScope interface!
Verification Checklist¶
Before proceeding, verify:
- Python 3.9+ is installed
- Virtual environment is activated (you see
(.venv)in terminal) - Dependencies are installed (
pip listshows streamlit, openai, plotly) - OpenAI API key is configured in
.streamlit/secrets.toml - ChronoScope opens in your browser at
localhost:8501
Troubleshooting¶
Python Not Found¶
Virtual Environment Issues¶
Cannot activate virtual environment
macOS/Linux: Make sure you're using source:
Windows PowerShell: Enable script execution:
Dependency Installation Fails¶
pip install errors
Update pip first:
Still failing? Install individually:
OpenAI API Key Issues¶
OpenAI API key not recognized
Check file location:
Check file format: - No quotes around the key name - Quotes around the key value - Correct format: OPENAI_API_KEY = "sk-..."
Port Already in Use¶
Port 8501 already in use
Use a different port:
Next Steps¶
✅ Installation Complete!
Now you're ready to:
- Quick Start Tutorial - 5-minute walkthrough
- Create Your First Timeline - Step-by-step guide
- Upload Documents Guide - Best practices
Optional: Install Documentation Tools¶
If you want to build and view this documentation locally:
Visit http://localhost:8000 to view the documentation.
Optional: Advanced AI Features (LangChain)¶
ChronoScope works great out of the box, but developers can optionally install LangChain for enhanced AI extraction features.
What is LangChain?¶
LangChain is an optional framework that adds:
- Better error handling - Automatic retries with smarter fallback logic
- Enhanced debugging - Detailed logs of AI prompts and responses
- Structured prompts - Template-based prompt management
- Advanced monitoring - Track API usage, costs, and performance
Do I Need It?¶
No! Most users don't need LangChain. ChronoScope's default AI extraction works excellently for building timelines.
Install it only if you:
- Are a developer customizing extraction prompts
- Need detailed debugging information
- Want advanced API usage tracking
- Experience extraction reliability issues
Installation¶
# Activate your virtual environment first
source .venv/bin/activate # macOS/Linux
# or
.venv\Scripts\activate # Windows
# Install LangChain packages
pip install langchain langchain-openai
# Restart ChronoScope
streamlit run timeline-mvp-pipeline.py
What Changes?¶
Before (Direct OpenAI):
After (LangChain): - Info message disappears - Advanced debugging features available in Advanced Settings - Slightly better extraction confidence scores (85% vs 80%) - Same extraction quality and cost
Learn More¶
See Advanced Features: LangChain Integration for technical details and comparison.
Updating ChronoScope¶
To update to the latest version:
# Pull latest code
git pull origin main
# Update dependencies
pip install -r requirements.txt --upgrade
# Restart ChronoScope
streamlit run timeline-mvp-pipeline.py
Pro Tip: Create an Alias
Save time by creating a shell alias:
Add to ~/.bashrc or ~/.zshrc:
Then just type chronoscope to launch!