Uses of Class
dev.langchain4j.data.document.Metadata
Packages that use Metadata
Package
Description
-
Uses of Metadata in dev.langchain4j.data.document
Methods in dev.langchain4j.data.document that return MetadataModifier and TypeMethodDescriptionMetadata.copy()
Copies the metadata.static Metadata
Constructs a Metadata object from a single key-value pair.static Metadata
Constructs a Metadata object from a map of key-value pairs.Merges the current Metadata object with another Metadata object.DefaultDocument.metadata()
Document.metadata()
Returns the metadata associated with this document.DocumentSource.metadata()
Returns the metadata associated with the source of the document.static Metadata
Constructs a Metadata object from a single key-value pair.Adds a key-value pair to the metadata.Adds a key-value pair to the metadata.Adds a key-value pair to the metadata.Adds a key-value pair to the metadata.Adds a key-value pair to the metadata.Adds a key-value pair to the metadata.Removes the given key from the metadata.Methods in dev.langchain4j.data.document with parameters of type MetadataModifier and TypeMethodDescriptionstatic Document
Creates a new Document from the given text.static Document
Creates a new Document from the given text.Merges the current Metadata object with another Metadata object.Constructors in dev.langchain4j.data.document with parameters of type Metadata -
Uses of Metadata in dev.langchain4j.data.segment
Methods in dev.langchain4j.data.segment that return MetadataMethods in dev.langchain4j.data.segment with parameters of type MetadataModifier and TypeMethodDescriptionstatic TextSegment
Creates a new text segment.static TextSegment
TextSegment.textSegment
(String text, Metadata metadata) Creates a new text segment.Constructors in dev.langchain4j.data.segment with parameters of type MetadataModifierConstructorDescriptionTextSegment
(String text, Metadata metadata) Creates a new text segment. -
Uses of Metadata in dev.langchain4j.rag.content.injector
Methods in dev.langchain4j.rag.content.injector with parameters of type Metadata