类的使用
io.agentscope.core.rag.model.DocumentMetadata.Builder
使用DocumentMetadata.Builder的程序包
-
io.agentscope.core.rag.model中DocumentMetadata.Builder的使用
修饰符和类型方法说明DocumentMetadata.Builder.addPayload(String key, Object value) Adds a single payload field.static DocumentMetadata.BuilderDocumentMetadata.builder()Creates a new builder for constructing DocumentMetadata instances.Sets the chunk ID.DocumentMetadata.Builder.content(ContentBlock content) Sets the content block.Sets the document ID.Sets the entire payload map.