Add comments to clarify the structure of the result dict
This commit is contained in:
parent
71bb633da9
commit
bd5ecb8763
1 changed files with 2 additions and 0 deletions
|
|
@ -45,4 +45,6 @@ class RetrievalQAComponent(CustomComponent):
|
|||
self.status = runnable
|
||||
result = runnable.invoke({input_key: inputs})
|
||||
result = result.content if hasattr(result, "content") else result
|
||||
# Result is a dict with keys "query", "result" and "source_documents"
|
||||
# for now we just return the result
|
||||
return result.get("result")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue