Update README.md to reflect the chatbot's multi-perspective analysis and empathetic response generation features.

This commit is contained in:
2025-06-01 12:11:51 +02:00
parent 8a1bc6220b
commit e23e5b0049

View File

@@ -4,23 +4,20 @@
> ⚠️ **This README.md has been automatically generated using AI and might contain hallucinations or inaccuracies. Please proceed with caution!**
# Empathy Chatbot
# Empathy AI Chatbot
## Description
The Empathy Chatbot is a conversational AI designed to understand and respond to user messages with empathy by analyzing them from four different perspectives: factual content (Sache), self-disclosure (Selbst), relationship dynamics (Beziehung), and underlying appeals or desires (Appell).
This repository contains a Python script for an empathetic AI chatbot that analyzes user input from multiple perspectives (Sachebene, Selbstkundgabe, Beziehungsebene, Appell) and generates a personalized response. The chatbot uses the LangChain and Ollama models to perform these analyses.
## Features
- **Factual Analysis**: Extracts the core message and categorizes it.
- **Self-Disclosure Interpretation**: Identifies feelings, wishes, moods, or values expressed by the user.
- **Relationship Dynamics**: Assesses how the user perceives their relationship with the chatbot.
- **Appeal Detection**: Recognizes hidden desires or appeals within the user's message.
- **Empathetic Response**: Generates a response that addresses all four aspects in an empathetic and personal manner.
- **Multi-Perspective Analysis**: Analyzes user input on four levels: what is said (Sache), what it reveals about the self (Selbstkundgabe), how it perceives the relationship (Beziehungsebene), and underlying appeals or wishes (Appell).
- **Empathetic Response Generation**: Generates responses that are empathetic, considerate of user feelings, and tailored to the context.
- **Debugging Mode**: Includes a debug mode for detailed logging of the analysis process.
## Requirements
- Python 3.8+
- `langgraph`
- `langchain_ollama`
- Ollama model (`mistral-small3.1:24b`)
- `langchain_ollama` library
- Ollama model server running locally or accessible via an API
## Installation
1. Clone the repository:
@@ -30,27 +27,18 @@ The Empathy Chatbot is a conversational AI designed to understand and respond to
2. Install dependencies:
```bash
pip install -r requirements.txt
pip install langchain_ollama
## Usage
Run the chatbot with the following command:
Run the script with Python:
bash
python Neuer_Ordner_mit_Objekten/empathy_Kopie.py --debug
python Neuer\ Ordner\ mit\ Objekten/empathy\ Kopie.py --debug
Use `--debug` to enable detailed debug output.
- The `--debug` flag is optional and enables detailed debug output.
## License
The Empathy Chatbot is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request with your changes.
## Contact
For any questions, feel free to reach out:
- Email: your.email@example.com
- GitHub: [yourusername](https://github.com/yourusername)
---
**Note**: Replace `your.username` and `your.email@example.com` with the actual username and email address of the repository owner or maintainer.