The High Priest chatbot is designed to assist users in engaging with ancient Egyptian cultural and spiritual practices, particularly within the context of the Luxor Temple in Thebes. The chatbot facilitates sacrificial offerings to various Egyptian deities, ensuring that rituals align with historical traditions. By leveraging machine learning, semantic understanding, and vectorization techniques, the chatbot provides a natural, intuitive, and immersive user experience.
The chatbot classifies user intentions into ten distinct intent types:
- Small Talk – General conversation.
- Name Management – Handling user names.
- Question Answering – Providing information about deities and rituals.
- Time – Managing time-based interactions.
- Sacrifice (Transaction) – Initiating sacrificial offerings.
- Check Sacrifice (Check Transaction) – Reviewing past sacrifices.
- Chisel off the Sacrifice (Delete the Transaction Record) – Removing sacrifice records.
- Bye – Exiting the interaction.
- Yes – Confirmations.
- No – Rejections.
The intent matching system is implemented using TF-IDF vectorization and a logistic regression model, making it more flexible and scalable than traditional rule-based approaches.
- Users can dedicate offerings to Egyptian deities through a structured Sacrifice Pipeline.
- The chatbot assists users in identifying the appropriate deity based on their prayers.
- Recognized deities include:
- Amun-Ra – Kingship
- Osiris – Agriculture
- Anubis – Mummification
- Thoth – Wisdom
- Sekhmet – War and Strength
- Hathor – Love
- The system records offerings and provides an option to inscribe them on an altar wall.
- Users can review and delete their past offerings.
- Uses TF-IDF vectorization and cosine similarity to retrieve relevant information.
- Queries are compared to a dataset of frequently asked questions to ensure accurate responses.
- Employs semantic matching to provide relevant responses to casual interactions.
- Uses a dataset of predefined question-answer pairs.
- Uses contextually appropriate phrases like "Welcome to the Royal Temple of Luxor!"
- Incorporates structured prompts and emoji-based engagement.
- Provides contextual guidance and clear descriptions of available functionalities.
- Helps users explore options such as learning about deities, performing offerings, or seeking divine guidance.
- Provides gentle prompts to guide users back on track.
- Enforces structured input formats to avoid confusion (e.g., numeric input for sacrifices).
- Addresses users by name for an immersive experience.
- Allows name modification through semantic matching.
- Adapts responses based on user actions and preferences.
- Ensures users verify their actions before proceeding (e.g., "Are you sure to sacrifice 22 jars of grape wine from Crete to Osiris?").
- Provides clear acknowledgments upon completion.
- Maintains continuity by remembering past interactions.
- Allows users to check prior contributions (e.g., "Thou hast offered 22 jars of grape wine from Crete unto Osiris.").
- Machine Learning: Logistic regression model for intent matching.
- Vectorization Techniques: TF-IDF for text processing.
- Semantic Understanding: Context-aware responses for a smooth conversational flow.
- Data Storage: JSON for transaction records; CSV for information retrieval.
- Clone the repository:
git clone https://github.com/HShawnSun/High-Priest-of-Luxor.git cd high-priest-chatbot
- Run the chatbot:
python main.py
- Interact with the chatbot by following prompts and exploring different functionalities.
- Multilingual Support to cater to a wider audience.
- Voice Interaction for a more immersive experience.
- Enhanced Knowledge Base for deeper engagement with Egyptian mythology.
- Integration with AR/VR for temple simulation experiences.
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests to improve the High Priest chatbot.
This project is licensed under the MIT License.