Closed eRuaro closed 1 year ago
Found that restarting the dev container fixed it.
Okay, I've found that some llm_call
will trigger sources
being blank and have them in the answer
field. For me, llm_call
with the words ellipsis
, punctuation marks
, single quotes
, and double quotes
trigger it.
Hi, @eRuaro! I'm Dosu, and I'm helping the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
Based on my understanding, the issue you reported is related to the RetrievalQAWithSourcesChain
not returning any sources in the sources
field when using the map_reduce
chain type. You mentioned that restarting the dev container fixed the issue, but you also discovered that certain llm_call
triggers the sources
field being blank and have them in the answer
field. It seems that you are awaiting assistance from @hwchase17.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the LangChain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your contribution to the LangChain repository!
I am having the exact same issue!
System Info
System Info (Docker Dev Container):
Python: 3.10
Pip:
Who can help?
@hwchase17
Information
Related Components
Reproduction
Write the code below:
Expected behavior
I'm expecting that I'll be having a
result["answer"]
and non emptyresult["sources"]
but here's what I get instead:As you can see,
sources
is empty but it's included inresult["answer"]
as a string.