LangChain · Class
Document
Document stores text and related metadata for retrieval workflows. Use message types instead when sending text in an LLM conversation.
Last updated
Syntax
Document(page_content: str, kwargs: Any = {})In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
BaseMedialangchain.messagesDocument loadersRetrievers