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 MetadataConstructs a Metadata object from a single key-value pair.static MetadataConstructs a Metadata object from a map of key-value pairs.Merges the current Metadata object with another Metadata object.DefaultDocument.metadata()Returns the value of themetadatarecord component.Document.metadata()Returns the metadata associated with this document.DocumentSource.metadata()Returns the metadata associated with the source of the document.static MetadataConstructs 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 DocumentCreates a new Document from the given text.static DocumentCreates 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 MetadataModifierConstructorDescriptionDefaultDocument(String text, Metadata metadata) Creates an instance of aDefaultDocumentrecord class. -
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 TextSegmentCreates a new text segment.static TextSegmentTextSegment.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