Real-time philosophical argument analysis platform powered by Redis 8 and Claude AI
🏆 Contest: Redis AI Challenge - Real-Time AI Innovators
⏰ Deadline: August 10, 2025
💰 Prize: $1,500 USD + DEV++ Membership + Exclusive Badge
PhiloLogic uses Redis 8 as the backbone for AI-powered philosophical argument analysis, providing:
- Real-time Analysis: Instant AI feedback on argument structure and logic
- Fallacy Detection: Identify and explain logical fallacies with confidence scores
- Philosophical Context: Connect arguments to relevant philosophical works
- Vector Similarity: Find semantically similar arguments using Redis vector search
- Semantic Caching: Lightning-fast responses through intelligent caching
- Python 3.8+
- Redis Cloud account (free tier) OR local Redis installation
- Anthropic Claude API key
git clone <repository-url>
cd PhiloLogic
# Create virtual environment
python3 -m venv philologic-env
source philologic-env/bin/activate # Windows: philologic-env\Scripts\activate
# Install dependencies
pip install -r requirements.txt# Copy environment template
cp .env.example .env
# Edit .env with your credentials:
# - REDIS_URL (Redis Cloud connection string)
# - ANTHROPIC_API_KEY (Claude API key)python test_redis.py# Backend API
python backend/app.py
# Frontend (coming soon)
cd frontend && npm start- Store argument embeddings for semantic similarity matching
- Find related arguments and philosophical positions
- Enable "Arguments like this" feature
- Cache Claude API responses using argument content hashes
- Dramatically reduce response times for similar arguments
- Intelligent TTL management
- Store complex argument structures with nested premises
- Rich metadata and analysis results
- Queryable philosophical content
- Real-time argument processing pipeline
- Queue management for AI analysis tasks
- Handle concurrent analysis requests
- Live notifications for analysis completion
- Real-time collaborative features
- Event-driven architecture
{
"id": "arg_001",
"raw_text": "All humans are mortal. Socrates is human. Therefore, Socrates is mortal.",
"premises": [
{
"text": "All humans are mortal",
"type": "empirical_claim",
"confidence": 0.9
}
],
"conclusion": {
"text": "Socrates is mortal",
"logical_connection": "deductive"
},
"fallacies": [],
"strength_score": 9.2,
"philosophical_context": ["Aristotelian logic", "Syllogistic reasoning"]
}Input: "God must exist because the universe is so complex and perfectly designed"
- Detects: Argument from design, possible argument from ignorance
- Context: Paley's watchmaker, Hume's critique, intelligent design debate
- Counter-arguments: Natural selection, multiverse theory
Input: "You can't trust John's economic policy because he's not even married"
- Detects: Ad hominem fallacy (attacking person, not policy)
- Confidence: 0.95
- Educational explanation provided
PhiloLogic/
├── backend/ # Flask API
│ ├── models/ # Data models (Argument, Analysis)
│ ├── services/ # Redis, Claude, Vector operations
│ ├── api/ # REST endpoints
│ └── utils/ # Prompts, validation
├── frontend/ # React application
│ ├── components/ # UI components
│ ├── hooks/ # Real-time data hooks
│ └── services/ # API integration
└── test_redis.py # Redis connection testing
GET /- Health check and feature overviewPOST /api/analyze- Analyze philosophical argumentGET /api/arguments/recent- Get recent argumentsGET /api/arguments/similar/:id- Find similar argumentsGET /api/fallacies/stats- Fallacy detection statistics
PhiloLogic is designed as an educational tool to help users:
- Understand logical argument structure
- Identify and avoid common fallacies
- Explore philosophical traditions and thinkers
- Improve critical thinking skills
- Engage with classical and contemporary philosophy
- Domain Expertise: Built by philosophy graduate with deep understanding
- Redis Integration: Comprehensive use of all 5 Redis features
- Educational Value: Genuine utility beyond tech demonstration
- Real-time Processing: Instant feedback enhances learning
- Philosophical Database: Connections to actual philosophical literature
- Days 1-4: Foundation (Redis setup, AI integration, architecture)
- Days 5-11: Core development (API, features, frontend)
- Days 12-14: Deployment, demo, submission
This is a contest submission project, but feedback and suggestions are welcome!
Open source as required by Redis AI Challenge
Built with ❤️ for the Redis AI Challenge by Jacob Keller
University of Pennsylvania - Philosophy & Biology