Skip to content

germanocastanho/socrates-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“– Socrates Bot

Born from reflections on the "LabTec Cultura Digital" course, from the Philosophy Program at UNISINOS, taught in 2025/1 by Prof. Me. Tatiana Costa Leite, this project consists of an Artificial Intelligence chatbot that, mimicking Socrates' persona, provides users with an engaging dialogue with the philosopher! πŸ€”

Detail from "The Death of Socrates" by Jacques-Louis David. A classic representation of intellectual courage in the face of injustice. A timeless reminder of the transformative impact of ideas and the pursuit of truth, values that also guide technological innovation.

πŸš€ Main Features

  • Interactive Chatbot: πŸ€– Powerful tool to stimulate critical thinking and philosophical reflection.
  • Intelligent Model: 🧠 Uses OpenAI's GPT-4o model, providing more coherent responses.
  • User-Friendly Interface: 🎨 Interaction through a minimalist and visually appealing graphical interface.

πŸ€— Hugging Face

To facilitate experimentation, the project is also available on the Hugging Face platform, allowing anyone to interact with the chatbot efficiently, without the need for local installation. Simply access this link and start philosophizing with Socrates! πŸ’­

βœ… Prerequisites

  • Python 3.12+, available through the official website.
  • OpenAI API key, accessible through the platform.
  • .env file with the OPENAI_API_KEY variable configured.

πŸ› οΈ Local Installation

# Clone the repository
git clone https://github.com/germanocastanho/socrates-bot.git

# Navigate to the directory
cd socrates-bot

# Set up a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Set up your API key
echo "OPENAI_API_KEY=YOUR_API_KEY" > .env

# Run the "demo.py" script
python3 demo.py

πŸ“œ Free Software

Distributed under the GNU GPL v3, ensuring freedom to use, modify, and redistribute the software, as long as these freedoms are preserved in any derivative versions. By using or contributing, you support the free software philosophy and help build an open, community-driven technological environment! ✊