"... Only TXT files are allowed." #206
-
Hello, I'm using ragna ui with openai on windows 10 and it works great. I started from a python 3.11 installation and on top I installed with pip just openai, "ragna[all]", jupiterlab. It would be great if you could help me Thank you in advance pip freeze |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @lorenzo4519 👋 Could you run the following for me $ python -c 'from ragna.core import PdfDocumentHandler; print(PdfDocumentHandler.is_available())' If that is import httpx
client = httpx.Client(base_url="http://127.0.0.1:31476")
client.get("/").raise_for_status()
token = (
client.post(
"/token",
data={
"username": "ragna-206",
"password": "ragna-206",
},
)
.raise_for_status()
.json()
)
client.headers["Authorization"] = f"Bearer {token}"
components = client.get("/components").raise_for_status().json()
print(components["documents"]) |
Beta Was this translation helpful? Give feedback.
-
Thank you @pmeier for your quick feedback! the first command took a few seconds and returned false. |
Beta Was this translation helpful? Give feedback.
-
How did you reset your environment? |
Beta Was this translation helpful? Give feedback.
Hey @lorenzo4519 👋
Could you run the following for me
$ python -c 'from ragna.core import PdfDocumentHandler; print(PdfDocumentHandler.is_available())'
If that is
False
something is wrong with your environment. If it isTrue
however, could you run the following script when the UI (or just the API) is running and post the output