Skip to main content

Module search_grounding

Module search_grounding 

Source
Expand description

Builds the system-prompt addendum appended when Azure Search is offered, grounding answers in retrieved course material and pointing the model at whichever other course-material tools this chatbot’s configuration actually offers.

Structs§

ToolMention 🔒
One sentence pointing the model at another tool, included only when its category is enabled.

Constants§

TOOL_MENTIONS 🔒

Functions§

build_search_grounding_instruction
Only called when AZURE_AI_SEARCH_TOOL_NAME itself is in the request’s tool list. Each row in TOOL_MENTIONS is appended only when its category is enabled, so the instruction never points the model at a tool this configuration doesn’t actually offer.