9 ms·
Can you elaborate a little more on this? What's an example of how you do that in the prompt?
by sahn44 2y ago
Can you elaborate a little more on this? What's an example of how you do that in the prompt?
- tkellogg 2y agonot OP, but for the "unique identifiers", you can think of it like the footnote style of markdown links. Most of these models are fine-tuned to do markdown well, and a short identifier is less likely to be hallucinated (my philosophy anyway), so it usually works pretty well. For the examples, something like this can work ID: 1 URL: https://example.com/test.html https://example.com/test.html Text: lksdjflkdsjlksjkl And then tell it to use the ID to link to the page.
- throwthrowuknow 2y agoInstead of having the LLM generate the links couldn’t you use a combination of keyword matching and similarity on the model output and the results to automatically add citations? You could use a smaller NLP model or even a rule based system to extract entities or phrases to compare. I’m sure this is already being done by bing for example.
- bigfudge 2y agoYou definitely can do that. It’s just sometimes simpler to dump lots of stuff in context and then check it wasn’t made up. It like the idea of using markdown footnotes. I think that would word well - ChatGPT does handle markdown really well.