openai / openai-cookbook

Examples and guides for using the OpenAI API
https://cookbook.openai.com
MIT License
58.83k stars 9.34k forks source link

current-day data restriction example is out of date #1219

Closed mcascone closed 2 months ago

mcascone commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

@ted-at-openai @MikeHeaton

mcascone commented 4 months ago

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

github-actions[bot] commented 2 months ago

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] commented 2 months ago

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