类的使用
dev.langchain4j.data.document.Metadata
使用Metadata的程序包
程序包
说明
-
dev.langchain4j.data.document中Metadata的使用
修饰符和类型方法说明已过时。已过时。as of 0.31.0, useput(String, String),put(String, int),put(String, long),put(String, float),put(String, double)instead.Metadata.copy()Copies the metadata.static Metadata已过时。Usefrom(String, String)insteadstatic MetadataConstructs a Metadata object from a single key-value pair.static MetadataConstructs a Metadata object from a map of key-value pairs.Document.metadata()Returns the metadata associated with this document.DocumentSource.metadata()Returns the metadata associated with the source of the document.static Metadata已过时。Usemetadata(String, String)insteadstatic 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.参数类型为Metadata的dev.langchain4j.data.document中的方法修饰符和类型方法说明static DocumentCreates a new Document from the given text.static DocumentCreates a new Document from the given text.参数类型为Metadata的dev.langchain4j.data.document中的构造器 -
dev.langchain4j.data.segment中Metadata的使用
参数类型为Metadata的dev.langchain4j.data.segment中的方法修饰符和类型方法说明static TextSegmentCreates a new text segment.static TextSegmentTextSegment.textSegment(String text, Metadata metadata) Creates a new text segment.参数类型为Metadata的dev.langchain4j.data.segment中的构造器 -
dev.langchain4j.rag.content.injector中Metadata的使用
put(String, String),put(String, int),put(String, long),put(String, float),put(String, double)instead.