parse_citations#

langchain_cohere.react_multi_hop.parsing.parse_citations(grounded_answer: str, documents: List[MutableMapping]) Tuple[str, List[CohereCitation]][source]#

Parses a grounded_generation (from parse_actions) and documents (from convert_to_documents) into a (generation, CohereCitation list) tuple.

Parameters:
  • grounded_answer (str) –

  • documents (List[MutableMapping]) –

Return type:

Tuple[str, List[CohereCitation]]