Pandas Query Engine #12102
Replies: 1 comment
-
Hey @Raghulkannan14, long time no see! Hope you've been doing well amidst all the coding adventures. 🚀 Let's dive into this new puzzle you've got! Based on the error message you're encountering, it seems like the OpenAI API key is not being found. Even though you've set To resolve this issue, you can try the following steps:
If you're interested in understanding more about the
You can find more details about this in the PandasQueryEngine class in the LlamaIndex codebase. I hope this helps! If you have any more questions or need further clarification, feel free to ask. Sources
|
Beta Was this translation helpful? Give feedback.
-
I am using the below code to analysis the data in the dataframe and I have set llm=None but it showing the Below Error, How to fix this issue
Error
Could not load OpenAI model. If you intended to use OpenAI, please check your OPENAI_API_KEY.
Original error:
No API key found for OpenAI.
Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.
API keys can be found or created at https://platform.openai.com/account/api-keys
To disable the LLM entirely, set llm=None.
Code I am Using
llm=None
query_engine = PandasQueryEngine(llm=llm,df=df, verbose=True)
Beta Was this translation helpful? Give feedback.
All reactions