Hi guys. I have a question:
I am using RetrieverQueryEngine but with different llm model than OpenAI, I am using Llama2. when I want to run the following snippet:
from llama_index.core.retrievers import VectorIndexRetriever
from llama_index.core.query_engine import RetrieverQueryEngine
retriever = VectorIndexRetriever(
index = index,
similarity_top_k = 4)
query_engine = RetrieverQueryEngine(retriever=retriever)
I get the following error:
ValueError:
**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-keysTo disable the LLM entirely, set llm=None.
**how I can solve it?