Find answers from the community

Updated 3 months ago

I'm using a query engine in llama index

I'm using a query engine in llama index and the following line of code..

Plain Text
response = query_engine.query('What was the first direct-to-video title produced by the company that co-purchased the rights to "Hustle & Flow"?')


Keeps giving me this error: Retrying llama_index.llms.openai.base.OpenAI._chat in 0.6104585767511872 seconds as it raised InternalServerError: Error code: 500 - {'statusCode': 500, 'message': 'Internal server error', 'activityId': 'b27959c7-65a9-46fc-8c84-8cb13ffc30a3'}.

Until it eventually fails. But when I remove the quotes for Hustle & Flow it works....

I'm using gpt-4o as the LLM - does anyone know why this is happening? Is it because of special characters or something?
@Logan M @WhiteFang_Jr
L
J
3 comments
Seems like some kind of sporadic error in openai?

Not really much I can say about this, but openai support themselves could investigate using the activity id.

Quotes would be fine imo
I'm seeing more and more 500s, too.
I'll keep an eye out.
Add a reply
Sign up and join the conversation on Discord