Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wanderlust is an AI-powered travel itinerary generator that helps users plan their trips effortlessly by asking a series of questions and generating personalized travel recommendations.

License

aki-008/Wanderlust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌍 Wanderlust - AI-Powered Travel Itinerary Generator

wanderlust

Wanderlust is an AI-powered travel itinerary generator that helps users plan their trips effortlessly by asking a series of questions and generating personalized travel recommendations. It uses LangChain, Groq's Llama3-8B-8192 model, and TavilySearch to create highly customized itineraries based on user preferences.


🎯 Live Demo

Check out the live version on Hugging Face Spaces: πŸ‘‰ Wanderlust - AI-Powered Travel Itinerary Generator


πŸš€ Features

  • βœ… Interactive Chat Interface: Guided conversation to gather user preferences.
  • πŸ” Smart Search Integration: Fetches top recommendations for destinations using TavilySearch.
  • πŸ€– AI-Powered Itinerary Generation: Generates a detailed multi-day itinerary based on preferences and search results.
  • πŸ”„ Restart Option: Easily start over and plan a new trip.
  • πŸ› οΈ Seamless Gradio Interface: User-friendly chatbot interface built using Gradio.

πŸ“¦ Installation

1. Clone the Repository

git clone https://github.com/SHASWATSINGH3101/Wanderlust.git
cd wanderlust

2. Create a Virtual Environment

# Create a virtual environment
python -m venv wanderlust-env

# Activate the virtual environment
# For Windows
wanderlust-env\Scripts\activate

# For macOS/Linux
source wanderlust-env/bin/activate

3. Install Dependencies

pip install -r requirements.txt

4. Set Up Environment Variables

Create a .env file in the root directory and add the following:

TAVILY_API_KEY=your_tavily_api_key
GROQ_API_KEY=your_groq_api_key

πŸ‘‰ API Key Setup:


▢️ Usage

1. Run the Application

python wanderlust.py

2. Open the Gradio Interface

Visit the link provided in your terminal, usually:

http://127.0.0.1:7860

3. Example Interaction

Bot: Hello! Ready to plan your next trip? Type 'START' to begin.
User: START
Bot: Great! Where would you like to go?
User: Paris, France
and so on....
...

⚑ Key Components

1. ChatGroq Model

  • Utilizes llama3-8b-8192 from Groq to generate the final itinerary.
  • Processes user preferences and search results to craft detailed recommendations.

2. TavilySearch

  • Searches for top-rated activities and recommendations.
  • Helps provide relevant suggestions for the itinerary.

3. State Management

  • Stores user responses and progress in a Python dictionary.
  • Tracks the conversation flow and resets after completion.

πŸ› οΈ File Structure

πŸ“ wanderlust
β”œβ”€β”€ πŸ“„ wanderlust.py          # Main script with Gradio interface and logic
β”œβ”€β”€ πŸ“„ requirements.txt       # Dependencies
β”œβ”€β”€ πŸ“„ .env                   # API keys for Groq and Tavily (ignored in Git)
└── πŸ“‚ asset
    └── πŸ“„ logo.png           # Logo image

πŸ“š Dependencies

  • gradio
  • langchain_groq
  • langchain_tavily
  • python-dotenv

Install them using:

pip install gradio langchain_groq langchain_tavily python-dotenv

🧠 AI Models Used

  • LLM: Llama3-8B-8192 (Groq API)
  • Search API: Tavily API for fetching relevant travel data

❗ Troubleshooting

  • Make sure to correctly set API keys in the .env file.
  • Check the console for any errors while running the application.

πŸ’» System Requirements

  • Python 3.8+
  • Compatible with Windows, macOS, and Linux

πŸ“ Virtual Environment Deactivation

# Deactivate the virtual environment after usage
# For Windows/macOS/Linux
deactivate

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


🀝 Contributing

Pull requests are welcome! Please check out the CONTRIBUTING.md before making any changes.


πŸ“§ Contact

For any inquiries, reach out to:

Happy Traveling! ✈️🌟

About

Wanderlust is an AI-powered travel itinerary generator that helps users plan their trips effortlessly by asking a series of questions and generating personalized travel recommendations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages