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
Title says all. Current implementation assumes len(chain.output_keys) > 1 is a retrieval chain, but that is not always the case, since it can be any other type of chain (like a custom one which won't have the source key).
Or alternatively, the detection may be made more strict by checking the actual output keys
The text was updated successfully, but these errors were encountered:
File "venv\lib\site-packages\langcorn\server\api.py", line 118, in handler
source_documents=[str(t) for t in output.get("source_documents")],
TypeError: 'NoneType' object is not iterable
Expected: It should return all keys, or just the output key without exception
Title says all. Current implementation assumes
len(chain.output_keys) > 1
is a retrieval chain, but that is not always the case, since it can be any other type of chain (like a custom one which won't have thesource
key).Or alternatively, the detection may be made more strict by checking the actual output keys
The text was updated successfully, but these errors were encountered: