解析引用#
- langchain_cohere.react_multi_hop.parsing.parse_citations(grounded_answer: str, documents: List[MutableMapping]) Tuple[str, List[CohereCitation]] [source]#
将grounded_generation(来自parse_actions)和documents(来自convert_to_documents)解析为(generation, CohereCitation列表)元组。
- Parameters:
grounded_answer (str)
documents (List[MutableMapping])
- Return type:
元组[str, 列表[CohereCitation]]