You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been struggling with method RA.add_documents() with Azure OpenAI since it returned:
Error: 400 ‘$.input’ is invalid.
I found the problem was due to split_text() function in utils.py since it, in some situations, could return empty chunk which would give error when sent to openai.
To fix this, I just added the following line of code:
chunks = [chunk for chunk in chunks if chunk.strip()] in build_from_text method of tree_builder.py
The text was updated successfully, but these errors were encountered:
I have been struggling with method RA.add_documents() with Azure OpenAI since it returned:
Error: 400 ‘$.input’ is invalid.
I found the problem was due to split_text() function in utils.py since it, in some situations, could return empty chunk which would give error when sent to openai.
To fix this, I just added the following line of code:
chunks = [chunk for chunk in chunks if chunk.strip()] in build_from_text method of tree_builder.py
The text was updated successfully, but these errors were encountered: