Browsing bing through a gpt call

what could cause the following request to respond with hypothetical data instead of real results?

Json Request -

{

“model”:“gpt-4-0125-preview”,

“messages”:[{“role”:“system”,“content”:“You will be provided with unstructured data, and your task is to parse it into CSV format.”},

{“role”:“user”,

“content”:"Browse, find within a 50 mile range of Atlanta, GA, US find 5 top results for a 5 star MARRIOTT for 30000 people between US$250.00 - US$450.00 per night with spa, golf, tennis available include hotel name, description, distance, price, rating, address, phone number, website address and meeting space

temperature":0}


API Response responseBody: {

“id”: “chatcmpl-9UdByelbFfj6QHchNhPXSczvseYs6”,

“object”: “chat.completion”,

“created”: 1717087522,

“model”: “gpt-4-0125-preview”,

“choices”: [

{

“index”: 0,

“message”: {

“role”: “assistant”,

“content”: “Given the nature of this task, I’ll create a hypothetical example of how the data might be structured in a CSV format based on your requirements. Please note, the information provided below is fictional and for illustrative purposes only.\n\ncsv\nHotel Name,Description,Distance from Atlanta (miles),Price per night,Rating,Address,Phone Number,Website Address,Meeting Space\nMarriott Grand Estate,"Nestled in the heart of Georgia’s scenic beauty, Marriott Grand Estate offers an unparalleled luxury experience with its world-class spa, championship golf course, and premier tennis courts. Perfect for both leisure and business, it caters to all your needs with elegance.",12,"US$350.00","5 stars","123 Peachtree St, Atlanta, GA 30303","(123) 456-7890","http://www.marriottgrandestateatlanta.com","50,000 sq ft"\nMarriott Luxe Haven,"Marriott Luxe Haven redefines luxury with its exquisite rooms, state-of-the-art spa, and an 18-hole golf course. Its serene environment and top-notch amenities make it a perfect escape for those seeking relaxation and adventure.",45,"US$425.00","5 stars","789 Oak St, Atlanta, GA 30318","(234) 567-8901","http://www.marriottluxehaven.com","75,000 sq ft"\nMarriott Elite Retreat,"Offering a sanctuary of luxury, Marriott Elite Retreat boasts a full-service spa, a professional golf course, and world-class tennis facilities. Its elegant accommodations and superior service ensure a memorable stay.",30,"US$275.00","5 stars","456 Maple Ave, Atlanta, GA 30315","(345) 678-9012","http://www.marriotteliteretreat.com","60,000 sq ft"\nMarriott Serenity Shores,"With its breathtaking views, Marriott Serenity Shores offers a unique luxury experience. Enjoy its renowned spa, championship golf course, and top-tier tennis courts. Ideal for both relaxation and business needs.",38,"US$400.00","5 stars","321 Willow Ln, Atlanta, GA 30309","(456) 789-0123","http://www.marriottserenityshores.com","80,000 sq ft"\nMarriott Oasis,"Marriott Oasis stands as a beacon of luxury, offering lavish accommodations, a world-class spa, an acclaimed golf course, and premier tennis facilities. It’s the perfect venue for large gatherings and corporate events.",25,"US$300.00","5 stars","987 Elm St, Atlanta, GA 30324","(567) 890-1234","http://www.marriottoasis.com","100,000 sq ft"\n\n\nThis CSV format includes columns for the hotel name, a brief description, distance from Atlanta, price per night, rating, address, phone number, website address, and meeting space available. Each row after the header row represents a fictional Marriott hotel that meets your specified criteria.”

},

“logprobs”: null,

“finish_reason”: “stop”

}

],

“usage”: {

“prompt_tokens”: 108,

“completion_tokens”: 614,

“total_tokens”: 722

},

“system_fingerprint”: null

}

Unlike in the ChatGPT interface, the API does not come with browsing capabilities. Absent of those capabilities, it provides you with hypothetical data.

In order to obtain real data, you would need to create a function call and use a search API such as the Bing API to perform actual browsing based on the user content and then feed the results from the search API response back to the model to create a response.

1 Like

I’m currently recommending the new search capabilities attached to the Jina Reader API.

1 Like

thank you for responding. this request is through the chat gpt browser interface. are you saying you cant prompt this way throught that interface?

What benefits do you see here compared to just using a typical scraper w/ an HTML → MD library?

It’s an all-in-one, pre-built solution available through a free API.

While it’s certainly possible to roll your own solution for search-based RAG and come away with something that outperforms this for your own particular niche use case, the vast majority of people—especially those asking for search to be incorporated into the API—will find this turnkey solution gets them >90% of the way to the best possible version of search.

You or I might,

  1. Be interested in building our own search-based RAG appliance, and
  2. Have the technical capacity to do so

The proportion of people who meet both of those criteria is actually very small.

So, when recommending something to total strangers, I think this is among the best solutions out there based on my own set of criteria—chiefly,

  1. It’s free
  2. It’s easy
  3. It works
  4. It’s open source

So, even if someone does decide to take the plunge and try to build their own solution, this gives them a great base from which to work.

2 Likes

TO JR.25O9…
This prompt was sent through the chatgpt interface as a browser request. the prompting is structured to give back the data in a formatted statement, but it still is a brower request. is this format not allowed to send and have bing invoked? this is not intended as an api call.

i see now that the response is to an api call which explains it. getting the data back in csv format is the reason that call was made. i should be able to do a browse call and specify the columns needed then parse that data into the tiles i need to show and it will be interpreted as a gpt call and jump to bing as planned. thank you very much for your help.

gene harrison