BaseMedia#
- class langchain_core.documents.base.BaseMedia[source]#
Bases:
Serializable
Use to represent media content.
Media objects can be used to represent raw data, such as text or binary data.
LangChain Media objects allow associating metadata and an optional identifier with the content.
The presence of an ID and metadata make it easier to store, index, and search over the content in a structured way.
- param id: str | None = None#
An optional identifier for the document.
Ideally this should be unique across the document collection and formatted as a UUID, but this will not be enforced.
New in version 0.2.11.
- param metadata: dict [Optional]#
Arbitrary metadata associated with the content.