Find answers from the community

Updated 3 months ago

what do you think the problem ?

what do you think the problem ?
L
P
V
46 comments
I have no idea. Do you mean the documents returned by the reader is an empty list? I feel like that would only happen if either the folder is empty, or the file types in the folder are unsupported somehow
this my old code and always return without anything in debugger
Attachment
Screenshot_1445-06-20_at_12.40.32_AM.png
this my new one and you can see the file is not empty
Attachment
Screenshot_1445-06-20_at_12.40.51_AM.png
but now its return from debugger this error masseage
(<class 'ValueError'>, Invalid file llamaindex-docs-tmp. The FileType.UNK file type is not supported in partition., <traceback object at 0x163b295c0>)
According to https://github.com/chatchat-space/Langchain-Chatchat/issues/46, you need to provide a path to a file, not a folder.
yeah i detect that and i provided a full path but its stell nothing return , ioll shwo you
Can you share your Run Configuration?
I don't think your own files are supposed to be put under .venv. It is managed by other programs.
so what do you suggest ?
Put it there.
Attachment
image.png
because as you see here its print there 1 doxuments
Attachment
Screenshot_1445-06-20_at_1.14.07_AM.png
its already there
I see. You can add a breakpoint there and step through the function call (which you just commented out). Maybe that will provide more clues on where it is stuck.
No, I meant to say putting your ingestion.py under llamaindex-ppos.
its same problem
1 min oll try and show you
Attachments
Screenshot_1445-06-20_at_1.28.24_AM.png
Screenshot_1445-06-20_at_1.28.19_AM.png
still same ):
it says loaded 1 docs -- so it worked?
if i print documents its shows the text
but why not appear in debugger like this ?
not sure -- i never use pycharm πŸ˜…
ahh OK thank alot my friend
Oh, so it works when you RUN it, but it doesn't when you DEBUG it. Am I understanding it correctly?
Attachments
Screenshot_1445-06-20_at_1.57.34_AM.png
Screenshot_1445-06-20_at_1.57.06_AM.png
Have you set up a breakpoint anywhere yet? I didn't see any little red dot on any of your screenshots, so I want to doublecheck with you.
Debugger won't know where to pause until you add a breakpoint.
Yeah I think that's the problem.
Can you read the manual on creating breakpoints on IntelliJ IDEA / PyCharm? It's a extremely useful tool to learn.
ohh thanks aloot my friend iwill
solved finally
you are the king here
Add a reply
Sign up and join the conversation on Discord