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
Problem
Right now PreProcessor (as many other "indexing" nodes) do not really support Document objects, I don't see a reason why that should be the case other than legacy. In addition, the current error message is highly misleading because, given a Document, PreProcessor will complain that the given value is "neither a list nor a Document", when it should say "neither a list nor a dictionary".
Solution
I propose to update PreProcessor to be able to deal with proper Document objects and review other nodes with document: Dict or documents: List[Dict] in their signatures.
The text was updated successfully, but these errors were encountered:
Problem
Right now PreProcessor (as many other "indexing" nodes) do not really support
Document
objects, I don't see a reason why that should be the case other than legacy. In addition, the current error message is highly misleading because, given a Document, PreProcessor will complain that the given value is "neither a list nor a Document", when it should say "neither a list nor a dictionary".Solution
I propose to update PreProcessor to be able to deal with proper
Document
objects and review other nodes withdocument: Dict
ordocuments: List[Dict]
in their signatures.The text was updated successfully, but these errors were encountered: