This system uses the Anthropic Claude AI to analyze declassified JFK assassination documents, extract key information, identify connections between entities, and surface potentially significant findings.
- Python 3.8+
- pip (Python package manager)
- JFK assassination documents in PDF format (place in
jfk_pdfs/directory) - Anthropic API key
-
Clone this repository or download the files
-
Install required dependencies:
pip install -r requirements.txt -
Create a
.envfile in the project root with your Anthropic API key:ANTHROPIC_API_KEY=your-api-key-here
- Go to https://console.anthropic.com/
- Sign up for an account or log in
- Navigate to API Keys section
- Create a new API key
- Copy the key and add it to your
.envfile
File: parse_pdfs.py
This script processes PDF documents to extract meaningful information related to the JFK assassination.
python parse_pdfs.py- Converts each PDF to images
- Analyzes each page using Claude
- Looks for evidence related to 10 key conspiracy categories
- Generates initial JSON analysis files and summaries
- Creates a global summary of findings
File: parse_responses.py
This script analyzes the initial findings to identify the most significant documents and connections.
# Basic usage - processes most recent output directory
python parse_responses.py
# Process a specific output directory
python parse_responses.py --output output_20250318_180803
# Filter by category
python parse_responses.py --category "WITNESS_TESTIMONIES"
# Filter by entity
python parse_responses.py --entity "Lee Harvey Oswald"
# Show only documents with connections between entities
python parse_responses.py --connections-only
# Adjust confidence threshold
python parse_responses.py --min-confidence 7Outputs:
- significant_findings.txt: Detailed report of findings
- high_confidence_findings.csv: Tabular data for further analysis
- entity_relationships.csv: Mapping of entity relationships
- structured_findings.json: Complete data in JSON format
- knowledge_graph.json: Network visualization data
File: final_parse.py
This script uses Claude 3.7 Sonnet (the most powerful model) to perform deeper analysis on the most promising documents.
# Analyze top 5 most promising documents (default)
python final_parse.pyOutputs detailed JSON analyses and a comprehensive summary in a timestamped directory.
File: analyze_document.py
This script analyzes a specific document by ID with Claude 3.7 Sonnet.
# Analyze a specific document, automatically finding the most relevant page
python analyze_document.py 104-10332-10023
# Analyze a specific page
python analyze_document.py 104-10332-10023 --page 5
# Analyze all relevant pages in a document
python analyze_document.py 104-10332-10023 --all-pagesProvides a focused analysis of a single document, useful for investigating specific leads.
output_TIMESTAMP/: Contains results fromparse_pdfs.pyoutput_final_TIMESTAMP/: Contains results fromfinal_parse.pydoc_analysis_TIMESTAMP/: Contains results fromanalyze_document.py
The system evaluates documents based on:
- Relevance: Connection to the JFK assassination
- Credibility: Quality of the evidence
- Entity Connections: Relationships between people and organizations
- Contradictions: Inconsistencies with the official narrative
- Significance: Historical importance of findings
-
Process all PDFs with initial analysis:
python parse_pdfs.py -
Identify significant documents and connections:
python parse_responses.py -
Run deeper analysis on promising documents:
python final_parse.py -
Investigate specific documents of interest:
python analyze_document.py DOCUMENT_ID
- Processing large numbers of documents can be time and API-cost intensive
- The quality of analysis depends on document legibility
- The system uses a tiered approach, using cheaper models for initial screening and more powerful models for promising documents
- If you encounter JSON parsing errors, the scripts include fallback mechanisms
- For best results, ensure PDFs are high quality and text is legible
- If a script crashes, you can usually resume by running it again - it will skip already processed documents