liveBook · Manning

Spring Cloud Function

As explained in Spring AI in Action

Spring Cloud Function is a Spring project for defining and composing functions that can be deployed and invoked through various bindings.

Spring Cloud Function coordinates Spring components as composable functions, reducing the wiring needed for pipelines that move files through document processing and storage. section 4.3.1 section 4.3.2

A document-loading pipeline can connect these stages:

  • fileSupplier watches /var/dropoff and forwards selected files. section 4.3.2
  • documentReader converts files into Document objects. section 4.3.2
  • splitter creates smaller document chunks, and vectorStoreConsumer writes them to a vector store. section 4.3.2
spring.cloud.function.definition=\
  fileSupplier|\
  documentReader|\
  splitter|\
  titleDeterminer|\
  vectorStoreConsumer

The pipe-delimited definition expresses the composed function as fileSupplier|documentReader|splitter|titleDeterminer|vectorStoreConsumer. section 4.3.2

How Spring AI in Action covers it

How deep it goes
Explains composition, bean naming, directory configuration, and filtering, without descending into framework internals.
Examples
Uses a file-to-vector-store loader composed from fileSupplier, documentReader, splitter, titleDeterminer, and vectorStoreConsumer.
What it assumes
Assumes a Spring Boot project and an understanding that pipeline names resolve to beans in the application context.
What you can do after
Configure a composed Spring function pipeline with directory, filename-pattern, and bean-definition properties.
How it connects
Connects Spring Function Catalog, Spring AI, DocumentReader, TextSplitter, VectorStore, and Spring Batch.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring AI in Action. The section links point to the parts of the book it draws on.