weaviate / Verba

Retrieval Augmented Generation (RAG) chatbot powered by Weaviate
BSD 3-Clause "New" or "Revised" License
6.28k stars 679 forks source link

The error encountered when the Chunker option is set to Code. #270

Open redkit75 opened 2 months ago

redkit75 commented 2 months ago

Hello,

On the Import Config page, when I select the Chunker option as Code, I choose either the Python or PHP option. Then, I select a file with the .py or .php extension according to my choice, and when I perform the import, I get the following error. I wonder if this error is related to LangChain? I feel like I might be missing something that needs to be done, but I also wanted to report it in case it might be a issue.

Import for framework.py failed: '>' not supported between instances of 'int' and 'str' | 0


✔ Collected all Batches of framework.py ℹ Removing framework.py from BatchManager ℹ Found existing Client ℹ FileStatus.STARTING | framework.py | Starting Import | 0 ℹ Loading framework.py (py) ℹ FileStatus.LOADING | framework.py | Loaded framework.py | 0.14 ℹ FileStatus.CHUNKING | framework.py | | 0 ℹ FileStatus.ERROR | framework.py | Import for framework.py failed: '>' not supported between instances of 'int' and 'str' | 0.0 ✘ No documents imported 0 of 1 succesful tasks ℹ FileStatus.ERROR | framework.py | Import for framework.py failed: Import for framework.py failed: '>' not supported between instances of 'int' and 'str' | 0

thomashacker commented 1 month ago

Thanks for the issue, I'll look into it!

redkit75 commented 1 month ago

It is clear that this is definitely a bug. Could you update the status as a bug? Thanks.