Structured Citations from Native Functions #8884
-
Hey gang, I am looking for a way to produce structured citations in my responses from native functions (Like AI Search does for the Azure OpenAI SDK). I have tried a few things (including trying to structure the prompt output) but the results are inconsistent. Then I found the This gives me what I need.
This example uses AI Search, but the same will requirement apply to Bing and whatever we come up with in the future. Bing is what prompted this requirement as it is retrieval, but not "memory" per say. Is it safe to use the Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @htaljaard |
Beta Was this translation helpful? Give feedback.
Hi @htaljaard
you can use the
Kernel.Data
property once you are creating transient instances of theKernel
so you avoid have citations from one request overwriting those from another.Is your
GetUnitGoals
function being invoked via LLM function calling? If it is you have the option to terminate the function calling loop when this function gets called and than return this function response as the final response from the LLM.