Uses of Class
org.springframework.ai.document.Document.Builder
Packages that use Document.Builder
-
Uses of Document.Builder in org.springframework.ai.document
Methods in org.springframework.ai.document that return Document.BuilderModifier and TypeMethodDescriptionstatic Document.BuilderDocument.builder()Sets an explicit ID for the document.Document.Builder.idGenerator(IdGenerator idGenerator) Sets theIdGeneratorused to generate the document ID when none is provided explicitly.Sets the media content of the document.Adds a single key-value pair to the metadata map.Replaces the metadata map with the given map.Document.mutate()Returns a newDocument.Builderpre-populated with all fields of this document, allowing selective modification without altering the original.Sets a score value for this document.Sets the text content of the document.