Adding inline links in LLM response

131 Views Asked by At

Background

Bing Copilot's response is partially clickable. That means, some sentences are links. I'd like to have this feature in my LLM.

In this discussion, it is recommended to lookup the source document and then:

feed that link as part of the prompt to the LLM and do some prompt engineering to also return the documentation link alongside the response.

Based on my understanding, the response can then be converted to HTML with <a href="..."> tags as a post-processing step.

Question

Given that the source documents are provided in the prompt, as recommended, what should the prompt include in order to get a response that can be converted into clickable sentences as a post-process step?

0

There are 0 best solutions below