liveBook · Manning

Spring Function Catalog

As explained in Spring AI in Action

FunctionCatalog is a Spring Cloud Function registry for discovering and retrieving function beans by name.

Spring Function Catalog provides reusable function beans that Spring Cloud Function can discover and compose. In a document-loading application, its fileSupplier watches a directory, selects incoming files, and sends them into a processing pipeline. section 4.3.1 section 4.3.2

A typical loader connects the catalog function to application-defined components:

  • Configure spring.cloud.function.definition with pipe-separated beans such as fileSupplier, documentReader, splitter, titleDeterminer, and vectorStoreConsumer. section 4.3.2
  • Set file.supplier.directory to identify the watched directory and file.supplier.filename-regex to restrict accepted extensions. section 4.3.2
  • Inject FunctionCatalog, look up the composed function, and call run() from an ApplicationRunner to start processing. section 4.3.4
spring.cloud.function.definition=\
  fileSupplier|\
  documentReader|\
  splitter|\
  titleDeterminer|\
  vectorStoreConsumer

Shows the concise Spring Cloud Function definition that wires the catalog-provided fileSupplier into the document-processing pipeline. section 4.3.2

How Spring AI in Action covers it

How deep it goes
Explains discovery, configuration, composition, and startup, but stops short of detailing the catalog implementation internals.
Examples
Uses a watched dropoff directory, PDF/DOCX/TXT filtering, and a Burger Battle rules document written to Qdrant.
What it assumes
Assumes Spring Boot configuration and beans while teaching the catalog's file supplier and composed-function startup within the application.
What you can do after
Operate and configure a file-driven function pipeline, then start it through FunctionCatalog and verify its vector-store output.
How it connects
Connects Spring Cloud Function with document readers, text splitters, vector stores, and Spring AI document processing.

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.