AI travel itinerary planner
Generates a day-trip itinerary from a city and interests, with Kubernetes logs shipped to ELK.
What it does
A Streamlit form collects a city and comma-separated interests, and a LangChain prompt asks Groq's llama-3.3-70b-versatile for a short bulleted day plan. The app runs on Kubernetes (Minikube on a Google Cloud VM) next to a logging namespace. Filebeat runs as a DaemonSet and ships container logs through Logstash into Elasticsearch, where Kibana index patterns are used to search them.
What was built
- 01
TravelPlanner class stores the city, parsed interests and message history, logging each step through a custom logger.
- 02
ChatPromptTemplate asks llama-3.3-70b-versatile at temperature 0.3 for a brief bulleted itinerary.
- 03
Filebeat DaemonSet tails /var/log/containers, adds Kubernetes metadata and forwards logs to Logstash on port 5044.
- 04
Logstash writes into Elasticsearch; Kibana is port-forwarded and an index pattern is created to explore app logs.
The pipeline, layer by layer
Five layers, one pipeline.
L1UI
- Streamlit form
L2Generation
- Itinerary prompt chain
- Groq Llama 3.3 70B
L3Runtime
- Docker image
- Kubernetes deployment
L4Log shipping
- Filebeat DaemonSet
- Logstash
L5Log analytics
- Elasticsearch
- Kibana