openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

current-day data restriction example is out of date

Open mcascone opened this issue 1 year ago • 4 comments
trafficstars

Trying out this example today, the models are able to answer this question with their default knowledge:

https://github.com/openai/openai-cookbook/blob/a5197083bd834567d29a2d7b2ec34f125351433d/examples/Question_answering_using_embeddings.ipynb#L176-L193

Can this please be updated with an example that it can't answer as of today, May-20-2024?

mcascone avatar May 21 '24 02:05 mcascone

GPT-4o has data up to October 2023.

The 2024 Academy Awards might be a good new example.

# an example question about the 2024 Oscars
query = 'Who won the 2024 oscars for best actor?'

response = client.chat.completions.create(
    messages=[
        {'role': 'system', 'content': 'You answer questions about the 2024 Academy Awards.'},
        {'role': 'user', 'content': query},
    ],
    model=GPT_MODEL,
    temperature=0,
)

I'm sorry, but I don't have the information on the winners of the 2024 Academy Awards. The event may not have occurred yet, or the results may not be available in my current dataset. You can check the latest updates from reliable sources such as the official Oscars website or major news outlets.

mcascone avatar May 21 '24 02:05 mcascone

@ted-at-openai @MikeHeaton

mcascone avatar May 21 '24 15:05 mcascone

I can't get the Embedding article linked from the example to work with the 2024 Oscars, though.

mcascone avatar May 21 '24 15:05 mcascone

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Jul 21 '24 01:07 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Aug 01 '24 01:08 github-actions[bot]