liveBook · Manning

Semantic function

As explained in Generative AI in Action

A semantic function is a Semantic Kernel callable operation defined by a natural-language prompt and input parameters.

A semantic function is a callable operation in Semantic Kernel, defined through a natural-language prompt and input parameters. It gives an LLM application a way to use capabilities such as database interactions, API calls, or email operations alongside conventional code. section 10.3.3

Semantic Kernel can orchestrate relevant functions toward a goal stated in natural language, rather than requiring developers to choreograph every LLM interaction by hand. For an enterprise workflow, this can reduce integration work, but the resulting application still needs to be scalable, secure, and reliable. section 10.3.3

How Generative AI in Action covers it

How deep it goes
Defines the role and orchestration of semantic functions but does not show their prompt definitions or input-parameter syntax.
Examples
Uses database interactions, API calls, and email operations as examples of application capabilities.
What you can do after
Apply it via Semantic Kernel to expose application operations for AI-driven orchestration.
How it connects
Connects semantic functions to Semantic Kernel, LLM orchestration, API calls, and conventional application code.

Also explained in

Compare how 2 books explain semantic function →

Related concepts

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