79 Downloads Updated 9 months ago
Overview
This project simulates text-based consumer interactions with a focus on churn risk. It integrates demographics, historical purchasing data, psychographics, and emotional/cognitive signals to produce rich, realistic conversation logs. These logs can be used for analysis, model training, or to enhance customer engagement strategies.
Install Ollama: Follow the official Ollama installation guide for your environment.
Clone the Repository:
git clone https://github.com/your-username/text-based-consumer-churn-simulator.git
cd text-based-consumer-churn-simulator
Load into Ollama:
ollama run --model=./models/consumer_churn_model --prompt=./prompts/sample_prompt.txt
Customize: Tweak the prompt, model parameters, or data sources in the config/
directory to match your churn scenarios and demographic/psychographic details.
Clone the Repository:
git clone https://github.com/skylerseeg/text-based-consumer-churn-simulator.git
Dependencies: Install required Python packages:
pip install -r requirements.txt
Run Simulations:
python simulate_conversations.py
Configuration:
config/settings.json
to change demographics, purchase history patterns, or churn thresholds.templates/
folder to expand scenario variations.Development:
Hugging Face Hub: The model and scripts can be published to Hugging Face for easy sharing and collaboration.
Installation:
pip install huggingface_hub
Usage:
huggingface-cli login
huggingface-cli repo create consumer-churn-simulator
git clone https://huggingface.co/your-username/consumer-churn-simulator
file_path = hf_hub_download(repo_id=“your-username/consumer-churn-simulator”, filename=“simulate_conversations.py”) “`
Inference:
We appreciate contributions of any kind. Whether you discover a bug, have an idea for improvement, or want to add new conversation templates:
feature/your-feature-name
)This project is licensed under the MIT License. You’re free to use, modify, and distribute the code, provided you include proper attribution.
For questions or feedback, please open an issue on GitHub, or reach out via the repository’s discussion board.
Happy simulating and exploring churn risk scenarios! If you find this project useful, consider giving a star on GitHub or sharing your fork on Hugging Face.