Find answers from the community

Updated last year

Having trouble with azure I have a key

Having trouble with azure. I have a key and everything set up, I set my environment variables, but it still says you must set OPENAI_API_BASE. I’ve confirmed it’s correct and available in the environment.
L
b
18 comments
I did not do the “import openai” openai.stuff, it wasn’t in the azure openai page
Hmmm, I think the openai module stuff is maybe for embeddings? hard to say, but give it a shot
That works but I’m terrified of sending all my company data to openai lmao
It's azure though, so maybe a bit more enterprise friendly though 👌
What up. New problem, same tender. Trying to get system prompts working with gpt 3.5 turbo (don’t have 16k yet so can’t use agent). I’m using retrieverqueryengine.from_args and I’ve passed text_qa_template and refine_qa_template like everywhere possible. Any ideas??
I’m using compactandrefine response synthesizer, if that means anything
If you specifically declared the response synthesizer, then the prompts should go into that I think 🤔
Yeah and I put my prompt as both refine and text qa so not sure what’s up
Progress- I’m getting keyerror existing_answer. I’m using the template you made back in April
hmmm can you share the full error?
or also the prompt you have right now?
Got it to work, just had to delete the other prompts from your example
Ty for all your help. Stay tender ✊
Add a reply
Sign up and join the conversation on Discord