renumics-rag
renumics-rag copied to clipboard
Not able to invoke the rag_chain given in the example Notebook
I am trying to implement the renumics-spotlight
package and I was referring to the example notebook that is given and followed the tutorial mentioned in this link.
I had to make some changes in the code in my local notebook - and the steps upto when the rag_chain
is invoked works fine, but these steps fail due to Authentication error from OpenAI , which I am not able to understand why?
question = "Who built the nuerburgring"
response = rag_chain.invoke(question)
answer = response["answer"]
answer
Since the error stack trace is large, I'm sharing this via a link
Do we need to provide any additional authentication here since I've already set the env variable and also tried doing this before invoking the rag_chain
from getpass import getpass
OPENAI_API_KEY = getpass()
import os
os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
But this still makes no difference. Can you please help me out in this issue.