[Feature] Add citations flag in query and chat functions of App to return context along with the answer (#859)

This commit is contained in:
Deven Patel
2023-11-01 13:06:28 -07:00
committed by GitHub
parent 5022c1ae29
commit 930280f4ce
15 changed files with 279 additions and 112 deletions

View File

@@ -234,6 +234,7 @@ class Pipeline(EmbedChain):
n_results=num_documents,
where=where,
skip_embedding=False,
citations=True,
)
result = []
for c in context: