Thanks @Logan M. Then when I run
query_engine = NLSQLTableQueryEngine(sql_database=sql_db,synthesize_response=False)
it raises the error below
ValueError:
**Could not load OpenAI embedding 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-keysConsider using embed_model='local'.
Visit our documentation for more embedding options:
https://docs.llamaindex.ai/en/stable/module_guides/models/embeddings.html#modules**