langchain/docs/snippets/modules/chains/document/combine_docs.mdx

9 lines
276 B
Plaintext
Raw Normal View History

```python
class BaseCombineDocumentsChain(Chain, ABC):
"""Base interface for chains combining documents."""
@abstractmethod
def combine_docs(self, docs: List[Document], **kwargs: Any) -> Tuple[str, dict]:
"""Combine documents into a single string."""
```