mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-28 10:39:23 +00:00
We currently return string (and therefore no content blocks / citations) if the response is of the form ``` [ {"text": "a claim", "citations": [...]}, ] ``` There are other cases where we do return citations as-is: ``` [ {"text": "a claim", "citations": [...]}, {"text": "some other text"}, {"text": "another claim", "citations": [...]}, ] ``` Here we update to return content blocks including citations in the first case as well. |
||
---|---|---|
.. | ||
cli | ||
community | ||
core | ||
experimental | ||
langchain | ||
partners | ||
standard-tests | ||
text-splitters | ||
packages.yml |