[SUPPORT] Workbench Example Project: Agentic RAG

Hi, thanks for reaching out.

A 401 error typically means a incorrect, expired, malformed or missing API Key (as opposed to a 403 error, which indicates a correct API key but with improper permissions).

Do you know if your keys have recently expired, or if you rotated them recently? You may need to regenerate your API key and try again. If you had regenerated your key for something else, all previous keys typically become invalidated.

Thanks for the follow up I can check that out. Does each model require a separate key? I tried using a key I had generated the basic Hybrid RAG demo which is working fine.

But googling and seems this might be an NVCF RUN Key when an NGC API Key is needed?

Yeah the naming is an artifact that needs to be updated. Should be the same as the key often referred to as the NVIDIA_API_KEY or NGC Personal Key.

The key should be single and universal, but only the most recent generated key will work (provided it has not expired).

You can generate a personal key on NGC, set the scope for the key (to be safe, I usually enable all services), and set the expiration date.

Does it expect a certain Key name?

The personal keys I am generating start with __autogenerated_playgrounds with a set of numbers added. I can only save the secret in AI workbench if I enter it that way

The log file from when I start the ChatUI app is lengthy but ends with the 403 error below

File “/usr/lib/python3.10/urllib/request.py”, line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

I have Secrets Manager and NGC enabled as services. I am not able to add Public API Endpoints as a service

I have gone back and started from scratch. recreate the project. Did all of the configuration and still get the same result

For clarification I am using an NVIDIA API key (not personal) and a Tavily API key I generated for this project.

The Screenshot is what happens in the chat window when uploading a PDF document and when that happens is when I get the 403 error

The service log is also full of these errors about the chroma db

{“level”:“warn”,“projectPath”:“/home/workbench/nvidia-workbench/edtwarner-workbench-example-agentic-rag”,“file”:“data/chroma.sqlite3”,“time”:“2025-02-05T14:10:17-05:00”,“message”:“cannot return change content for binary files”}

not sure if that means anything but the PDF file does get uploaded as you can see in the screenshot and you can click on it in the UI and it opens.

It goes to 50% immediately then fails later so is the error trying to get the document into the vector database?

I have continued to work on resolving this without much luck.

It seems like there is something missing in the requests.py file that prevents the successful retrieval of the URLs.

Researching the 403 errors this seems to be the case that many sites reject requests from api based applications and the solution is to add headers to make the web site believe it is just a browser based request.

I can get two different errors from the UI

if I request an http:// site I get a 401 error
if I request an https://site I get a 403 error

I wanted to try and edit that requests.py file but the demo seems to have file permissions locked down.

Any suggestions appreciated and if this is beyond the scope of this support thread please just let me know and I will only reply if I am able to resolve.