Skip to content

JoyceAcacioPedro/Travel-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ Travel Guide

This is a practical project of an AI Travel Itinerary Generator that uses 100% local Artificial Intelligence. Powered by the LangChain framework, the system takes a destination and travel style to create a detailed, personalized itinerary.

๐Ÿš€ Features

  • Local Processing: Runs the Llama-3.2-1B model via GPT4All (100% privacy, no API keys required).
  • Prompt Engineering: Optimized English templates for better logical reasoning, with output tailored to the user's needs.
  • LCEL Architecture: Built using LangChain Expression Language for a clean and scalable data pipeline.

๐Ÿ› ๏ธ Tech Stack

  • Python 3.10+
  • LangChain (Orchestration Framework)
  • GPT4All (Backend for local model execution)
  • Llama-3.2-1B-Instruct (Meta's lightweight LLM)

๐Ÿ“‹ Prerequisites

Before running the project, you must download the model using the GPT4All software and note the absolute path to the .gguf file.

Install the required libraries:

pip install langchain langchain-community gpt4all

โš™๏ธ Configuration

In the main script, ensure you update the model path to the correct directory on your machine:

model_path = r"C:\Users\YOUR_USER\...\Llama-3.2-1B-Instruct-Q4_0.gguf"

๐Ÿ–ฅ๏ธ How to Use

The main script uses an input dictionary to define the trip details:

input_data = {
    "destination": "Rio de Janeiro",
    "days": "3",
    "style": "budget-friendly and cultural"
}

To run the generator:

python main.py

๐Ÿง  Project Structure

  1. Model (LLM): Loading Llama-3.2 via the GPT4All integration.
  2. Prompt Template: A structured instruction set that defines the AI's behavior as an expert travel guide.
  3. Chain: Connecting the prompt and the model using the pipe (|) operator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages