NVIDIA / GenerativeAIExamples

Generative AI reference workflows optimized for accelerated infrastructure and microservice architecture.
Apache License 2.0
2.36k stars 499 forks source link

Rag model examples - When uploading a sample ".pdf" file its producing an exception. #219

Open sushanthtws opened 2 weeks ago

sushanthtws commented 2 weeks ago

After using the playground for quite sometime, I shifted from one example to other example of RAG models. Later when I uploaded the same pdf into the knowledge base, its giving an exception. While the same file was working properly till then. Then I tried with different files all formats like ".txt", and ".md" each of these too failed with same exception as provided below.

Image

Attached the sample file uploaded during testing.uploaded_Software Engineer Resume.pdf

ChahalK commented 1 week ago

Hello sushanthtws, I was able to replicate the issue and it was because your api key is expired and if you try to regenerate the the nvidia api key and do

Try running:

docker logs chain-server 

in the LOGS you'll see a 401 unauthorized error where it suggests to regenerate the key.

unset NVIDIA_API_KEY  

and export it again with a new api key using

export NVIDIA_API_KEY=nvapi-.....
docker compose down 
docker compose up -d --build 

and now try uploading or deleting the files it worked for me.