This project demonstrates a Local LLM (Ollama + LLaMA3) integrated with OpenStreetMap using Leaflet js. It allows users to search for places worldwide using natural language prompts and displays results interactively on a map.
- Backend: Node.js + Express.js
- Frontend: EJS templates, Leaflet.js for map rendering
- LLM: Ollama running LLaMA3
- Maps: OpenStreetMap (via Nominatim API)
- User Input: User types a prompt (e.g., "chinese restaurants in singapore").
- LLM Processing: The prompt is parsed by the local LLM to extract keyword and location.
- OSM Query: Backend queries OpenStreetMap Nominatim API for matching places.
- Results Display: Places are shown on a Leaflet map and in a sidebar with OpenStreetMap links.
npm install
ollama pull llama3,
ollama list ( output : llama3 ),
ollama run llama3
npm run dev