rapid-appointment-83587
06/27/2024, 11:07 PM## Optional 1. git clone <https://github.com/unionai-oss/union-rag.git> 2. code union-rag/union_rag
• the streamlit piece didn't quite match. I had to put stuff in the Settings > Secrets (not advanced) which is toml format, and had to include the openai_api_key 🧵 then restart the app by reloading the app's page.
UNIONAI_SERVERLESS_API_KEY="c2Vydxxx"
OPENAI_API_KEY="sk-proj-qxTvSMxxx"
Got mine working after many zoom meeting interruptions 🙂rapid-appointment-83587
06/27/2024, 11:08 PMrapid-appointment-83587
06/27/2024, 11:11 PMbroad-monitor-993
06/28/2024, 2:24 PMbroad-monitor-993
06/28/2024, 2:25 PMbroad-monitor-993
06/28/2024, 2:26 PMthe streamlit piece didn’t quite match. I had to put stuff in the Settings > Secrets (not advanced) which is toml formatstrange… you don’t actually need the open ai api key in the streamlit app. Was there an error if you didn’t include it?
broad-monitor-993
06/28/2024, 2:33 PM• In the first text cell you may want
What’s option 2?Copy code## Optional 1. git clone <https://github.com/unionai-oss/union-rag.git> 2. code union-rag/union_rag
broad-monitor-993
06/28/2024, 2:36 PMbroad-monitor-993
06/28/2024, 2:36 PMbroad-monitor-993
06/28/2024, 4:02 PMrapid-appointment-83587
06/28/2024, 5:42 PM2. code union-rag/union_ragthis was just to open visual code on the git repo that was just cloned. I'm cmdline / linux so perhaps that doesn't work for everyone, but I think it should in a mac terminal or WSL
rapid-appointment-83587
06/28/2024, 6:21 PMre: secrets, there’s an “Advanced Settings” button in the initial app deployment flow:great, I must have just missed it. Re: hallucination. not clear how I got that odd answer, but undoubtedly something on my end since the streamlit part doesn't reference any openai stuff. I had a few bad (old keys generating 429) so perhaps I hit weird timing. Sifting through execution logs I couldn't find an error back from openai. Using the union ui I don't see a way "grep" the logs to hunt down the errors. I suspect that my streamlit needed a reboot and was connected to an older workflow that didn't have my correct openai key.
rapid-appointment-83587
06/28/2024, 6:29 PM