simple-rag icon indicating copy to clipboard operation
simple-rag copied to clipboard

It seems that there's something wrong with "rag.py"

Open Konisberg opened this issue 9 months ago • 0 comments

after creating a python venv and install all the pkg that might be needed, I run "python rag.py" in my terminal.

It shows that:

...  
File ".../lamini-simple-rag/rag.py", line 27, in get_embeddings     
embeddings = ebd.generate(examples)   
File ".../lamini-simple-rag/rag/lib/python3.10/site-packages/lamini/api/embedding.py", line 25, in generate     
resp = make_web_request(   
File ".../lamini-simple-rag/rag/lib/python3.10/site-packages/lamini/api/rest_requests.py", line 123, in make_web_request     "Authorization": "Bearer " + key, 
TypeError: can only concatenate str (not "NoneType") to str

Could you plz tell me whether it's because that it lacks the lamini config file?

Konisberg avatar May 03 '24 10:05 Konisberg