parse_citations#
- langchain_cohere.react_multi_hop.parsing.parse_citations(
- grounded_answer: str,
- documents: List[MutableMapping],
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]]