Instruct gpt to stop returning a list of place names in travel itinerary

I’m using chatgpt-3.5-turbo-16k to prompt it to provide a 10-day travel itinerary:

Please write a detailed 10-day travel itinerary for Croatia. Divide the article into individual days, and write several paragraphs for each day in the itinerary. In each paragraph, provide as many suggestions as possible for places the reader should visit on each day.

Return the response as json in the format:
        
        {
          "days": [ // Each day should have its own entry in this array
            {
              "title": "", // For example, "Day 1"
              "paragraphs": [], // Return 2-4 string paragraphs. Bold every single place name, like "**Dubrovnik**", in each paragraph.
              "places": [ // Return a list of places used in the paragraphs
                {
                  "name": "", // The place name used in the paragraph. Must match the name in the paragraph exactly.
                  "coordinates": "" // You must include latitude and longitude coordinates of the place in the format "latitude,longitude", for example "-14.48051,46.64408"
                },
              ]
            }
          ]
        }

However, gpt keeps including a list of “Places to visit” mentioned in the previous paragraphs which I DON’T want it to do, for example the last string in the array:

            "paragraphs": [
                "Welcome to **Split**, the vibrant coastal city in Croatia! Start your day by visiting the **Diocletian's Palace**. This ancient palace, built for the Roman emperor Diocletian, is a UNESCO World Heritage site and is filled with stunning architecture and history. Explore the underground cellars, peruse the local shops, and don't miss the **Cathedral of Saint Domnius**, located within the palace complex.",
                "Afterward, take a stroll through the **Riva Promenade**, a popular waterfront walkway lined with cafes, bars, and restaurants. Enjoy a leisurely lunch with a view of the Adriatic Sea. Continue your day by visiting the **Marjan Hill**, a natural park offering breathtaking views of the city. Hike or bike through the trails, or simply relax and soak in the stunning panoramas.",
                "In the evening, head to the **Poljud Stadium** to witness the passion of Croatian football. If there's a game playing, grab a ticket and join in the electric atmosphere. Wrap up your day with a delicious dinner at one of the local seafood restaurants near the **Fisherman's Bastion**.",
                "Places to visit: **Diocletian's Palace**, **Cathedral of Saint Domnius**, **Riva Promenade**, **Marjan Hill**, **Poljud Stadium**, **Fisherman's Bastion**."
            ]

How can I prompt gpt to NEVER return a list of places to visit that were previously mentioned in the other paragraph strings, like:

 "Places to visit: **Diocletian's Palace**, **Cathedral of Saint Domnius**, **Riva Promenade**, **Marjan Hill**, **Poljud Stadium**, **Fisherman's Bastion**."

No matter what prompt I give it, it seems to ignore my instructions.

Thanks.

1 Like

Hi @_patrick

Please check HERE

I used on GPT 3.5

Does your use case require you to use 3.5? What about using a newer model. The responses are generally better.

{
  "days": [
    {
      "title": "Day 1",
      "paragraphs": [
        "Start your journey in **Dubrovnik**, often called the 'Pearl of the Adriatic'. Spend your morning exploring the historic **Old Town**, a UNESCO World Heritage site known for its well-preserved medieval walls and stunning architecture. Don't miss walking along the **City Walls**, which offer breathtaking views of the Adriatic Sea and the city's red-roofed buildings.",
        "In the afternoon, visit the **Rector's Palace**, a beautiful Gothic-Renaissance structure that now houses the **Cultural History Museum**. Afterwards, take a stroll down the **Stradun** (also known as Placa), the main street of Dubrovnik, lined with shops, cafes, and historic buildings. End your day with a cable car ride up to **Mount Srđ** for a panoramic sunset view over Dubrovnik."
      ],
      "places": [
        {
          "name": "Dubrovnik",
          "coordinates": "42.6507,18.0944"
        },
        {
          "name": "Old Town",
          "coordinates": "42.6401,18.1105"
        },
        {
          "name": "City Walls",
          "coordinates": "42.6410,18.1070"
        },
        {
          "name": "Rector's Palace",
          "coordinates": "42.6405,18.1103"
        },
        {
          "name": "Cultural History Museum",
          "coordinates": "42.6405,18.1103"
        },
        {
          "name": "Stradun",
          "coordinates": "42.6410,18.1085"
        },
        {
          "name": "Mount Srđ",
          "coordinates": "42.6500,18.1100"
        }
      ]
    },
    {
      "title": "Day 2",
      "paragraphs": [
        "Today, take a day trip to the nearby **Elaphiti Islands**. Begin with a visit to **Koločep**, the closest island to Dubrovnik, known for its beautiful sandy beaches and crystal-clear waters. Explore the island’s olive groves and citrus gardens.",
        "Next, head to **Lopud**, famous for its sandy **Šunj Beach**. Enjoy swimming, sunbathing, and the tranquil atmosphere. After lunch, visit the Franciscan Monastery and the small botanical garden. End your island tour on **Šipan**, the largest of the Elaphiti Islands, known for its olive oil production and historic sites like the **St. Stephen’s Church**."
      ],
      "places": [
        {
          "name": "Elaphiti Islands",
          "coordinates": "42.6800,18.0000"
        },
        {
          "name": "Koločep",
          "coordinates": "42.6790,18.0030"
        },
        {
          "name": "Lopud",
          "coordinates": "42.6860,17.9450"
        },
        {
          "name": "Šunj Beach",
          "coordinates": "42.6875,17.9415"
        },
        {
          "name": "Franciscan Monastery",
          "coordinates": "42.6865,17.9455"
        },
        {
          "name": "Šipan",
          "coordinates": "42.7341,17.8988"
        },
        {
          "name": "St. Stephen’s Church",
          "coordinates": "42.7400,17.8980"
        }
      ]
    },
    {
      "title": "Day 3",
      "paragraphs": [
        "Leave Dubrovnik and head towards **Split**, Croatia's second-largest city. On your way, stop by the charming town of **Ston**. Famous for its medieval walls, which are the second-longest in the world after the Great Wall of China, Ston is also known for its salt pans and delicious oysters.",
        "Upon arriving in Split, explore the impressive **Diocletian's Palace**, a UNESCO World Heritage site that forms about half of Split's old town. Wander through the narrow streets, visit the **Cathedral of Saint Domnius**, and climb the bell tower for stunning views of the city."
      ],
      "places": [
        {
          "name": "Split",
          "coordinates": "43.5081,16.4402"
        },
        {
          "name": "Ston",
          "coordinates": "42.8386,17.6991"
        },
        {
          "name": "Diocletian's Palace",
          "coordinates": "43.5085,16.4390"
        },
        {
          "name": "Cathedral of Saint Domnius",
          "coordinates": "43.5085,16.4402"
        }
      ]
    },
    {
      "title": "Day 4",
      "paragraphs": [
        "Today, explore more of Split. Start with a visit to the **Marjan Hill** for a morning hike. The hill offers beautiful walking trails and panoramic views of Split and the surrounding islands. Visit the **Ivan Meštrović Gallery** on your way back, which houses works of Croatia's most famous sculptor.",
        "In the afternoon, take a stroll along the **Riva Promenade**, where you can enjoy the lively atmosphere, seaside views, and numerous cafes and restaurants. Don’t miss the **Green Market (Pazar)**, a bustling local market where you can sample fresh produce and local delicacies."
      ],
      "places": [
        {
          "name": "Marjan Hill",
          "coordinates": "43.5113,16.4224"
        },
        {
          "name": "Ivan Meštrović Gallery",
          "coordinates": "43.5096,16.4180"
        },
        {
          "name": "Riva Promenade",
          "coordinates": "43.5074,16.4390"
        },
        {
          "name": "Green Market (Pazar)",
          "coordinates": "43.5085,16.4407"
        }
      ]
    },
    {
      "title": "Day 5",
      "paragraphs": [
        "Take a day trip from Split to the beautiful island of **Hvar**. Start your visit in **Hvar Town**, known for its lively atmosphere, historical sites, and stunning waterfront. Explore the **Fortica Fortress**, which offers breathtaking views over Hvar Town and the surrounding islands.",
        "Spend the afternoon relaxing at **Dubovica Beach**, one of the most beautiful beaches on the island. For dinner, head back to Hvar Town and enjoy some fresh seafood at one of the local restaurants."
      ],
      "places": [
        {
          "name": "Hvar",
          "coordinates": "43.1729,16.4428"
        },
        {
          "name": "Hvar Town",
          "coordinates": "43.1729,16.4428"
        },
        {
          "name": "Fortica Fortress",
          "coordinates": "43.1733,16.4432"
        },
        {
          "name": "Dubovica Beach",
          "coordinates": "43.1587,16.5493"
        }
      ]
    },
    {
      "title": "Day 6",
      "paragraphs": [
        "Leave Split and travel to **Zadar**, a city known for its rich history and vibrant cultural scene. Start your day by exploring the **Old Town** with its Roman and Venetian ruins, and visit the **Church of St. Donatus**, an iconic 9th-century structure.",
        "In the afternoon, experience the unique **Sea Organ**, an architectural sound art object that uses the movement of the sea to create music. Nearby, you can also find the **Greeting to the Sun**, a large solar-powered circle that lights up at night in a beautiful display of colors."
      ],
      "places": [
        {
          "name": "Zadar",
          "coordinates": "44.1194,15.2314"
        },
        {
          "name": "Old Town",
          "coordinates": "44.1158,15.2272"
        },
        {
          "name": "Church of St. Donatus",
          "coordinates": "44.1168,15.2257"
        },
        {
          "name": "Sea Organ",
          "coordinates": "44.1177,15.2199"
        },
        {
          "name": "Greeting to the Sun",
          "coordinates": "44.1178,15.2200"
        }
      ]
    },
    {
      "title": "Day 7",
      "paragraphs": [
        "Take a day trip from Zadar to **Plitvice Lakes National Park**, one of Croatia's most famous natural attractions. The park is a UNESCO World Heritage site and is known for its stunning lakes, waterfalls, and lush forests. Spend the day hiking the well-marked trails and enjoy the beautiful scenery.",
        "Make sure to visit the **Veliki Slap** (Big Waterfall), the tallest waterfall in the park, and take a boat ride across the largest lake, **Kozjak**. The park offers several different routes, so choose one that fits your schedule and fitness level."
      ],
      "places": [
        {
          "name": "Plitvice Lakes National Park",
          "coordinates": "44.8802,15.6166"
        },
        {
          "name": "Veliki Slap",
          "coordinates": "44.9054,15

2 Likes