File size: 2,428 Bytes
9689cdb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66

# Travel and Museum Chatbot

## Introduction
The Travel and Museum Chatbot is a domain-specific conversational assistant designed to provide detailed and context-aware responses related to:
- Tourism
- Travel destinations
- Cultural sites
- Museums
- Historical landmarks
- Art exhibitions
- Travel tips

Built using *Streamlit* and *Google Generative AI*, the chatbot offers multilingual support and maintains conversational context for seamless interactions.

## Table of Contents
1. [Introduction](#introduction)
2. [Features](#features)
3. [Usage](#usage)
4. [Configuration](#configuration)
5. [Dependencies](#dependencies)
6. [Examples](#examples)

## Features
- *Domain-Specific Assistance:* Focused exclusively on tourism, museums, and cultural topics.
- *Multilingual Support:* Provides responses in both English and Arabic.
- *Conversational Memory:* Maintains session history for a coherent user experience.
- *Customized Prompting:* Dynamically adjusts prompts based on the conversation and user input.
- *Ancient Egyptian Expertise:* Offers brief, detailed answers about ancient Egyptian history.
- *Polite Redirection:* Guides users back to relevant topics if inquiries fall outside the domain.


## Usage
1. Run the Streamlit application:
   bash
   streamlit run chatbot.py
   
2. Open the provided local URL in your web browser.
3. Interact with the chatbot by asking tourism-related questions.

## Configuration
- *Google API Key:* 
  - Obtain a Google Generative AI API key and add it to a .env file in the project root:
    

    GOOGLE_API_KEY=your_api_key_here

    


## Dependencies
- [Streamlit](https://streamlit.io/) - Web application framework.
- [Python-dotenv](https://pypi.org/project/python-dotenv/) - For environment variable management.
- [Google Generative AI](https://ai.google/) - For AI-driven text generation.


## Examples
### Example Question (English):
*User:* "Can you recommend museums in Paris?"  
*Bot:* "Sure! The Louvre is a must-visit, featuring iconic art like the Mona Lisa. You might also enjoy Musée d'Orsay for its Impressionist masterpieces."

### Example Question (Arabic):
*User:* "ما هي أهم المتاحف في مصر؟"  
*Bot:* "يُعتبر المتحف المصري في القاهرة من أهم المتاحف، حيث يضم مجموعة كبيرة من الآثار الفرعونية."