Find answers from the community

s
F
Y
a
P
Updated 2 years ago

hi trying to add documents to a simple

hi, trying to add documents to a simple vector index and hitting these openai errors.. is there anything i should keep in mind while doing this? @jerryjliu0
Attachments
Screen_Shot_2023-02-24_at_11.21.01_PM.png
Screen_Shot_2023-02-24_at_11.21.20_PM.png
b
K
j
20 comments
what do the docs_all_up look like
list of llama_index Documents
that stack trace doesnt' look like it's coming from the lines you pasted
hmm, i'm trying to debug this as well, but there's no where else where i might be interfacing with the openai endpoint
ok - running a test where i comment out that line, will see if i still get this error
are all your docs well-formed? e.g. is there a chance a chunk of a doc could have all spaces
oh - i'm not running checking for that
was reading and dumping into docs
yea just finished checking, it's definitely the simplevectorindex line i shared
is there any reference / things i should be checking for?
i was actually trying to help someone debug this issue, and i wasn't sure what the cause was
will devote some time tmrw to fixing it
if you can send me some sample help to repro that'd be πŸ™
hmm thinking aloud - can't share the data file for privacy stuff.. what else could i send that might be helpful?
yeah no worries. i'm mostly just tryign to repro and fix the issue. so let me know if you run across it on test data too
taking a deeper look, this seems triggered if any Document object just contains a blank string. could you verify all your text has content in it?
i ended up writing a pretty simple regex
to check if the content was well-formed
Add a reply
Sign up and join the conversation on Discord