Another option could be - assuming this is an LLMChain that adds the most similar (n) embedding(s) to the prompt before passing to LLM - basic entity recognition to find the asset name from the query initially and dynamic prompt that if the most similar results don't contain the asset name, don't provide examples and respond saying you don't know.
I can't speak for this model specifically, but the way GPT works is by first coming up with a list of likely words along with their probabilities of being the next word to follow from the current state of the prompt. Then it uses some math (Top-P controls how much of that list to use, temperature controls how strongly it should prefer the 'most likely' words as opposed to the lesser likely ones) to randomly select the next word. Repeat until you're happy with the length.
Visual example: https://i.imgur.com/FvoSiC7.png
In this way, the model knows how likely the word it's about to choose is, but that says nothing about whether it's hallucinating or not. All the words in the list are equally 'true' to the model.
So, no. Not currently. All LLM's know is how likely a word is to appear next to another word, given the preceding X,000 words.
While knowing might be impossible, it seems like the model could provide a confidence level and only provide answers that exceed some threshold. It'd be a bit like asking a human "are you sure about that?"
And in practice, I really don't think it is that different. We humans effectively make things up all the time. Sometimes we are well aware of our educated guesses and sometimes we are less aware.
It isn't realistic to expect an artificial intelligence to be vastly better than human intelligence in this regard.
Perhaps researchers will find some clever solution to mitigate this, but for now hallucinating is a pretty good word precisely because the model doesn't give confidence.
I don't think the model can access this information, but an external "lie detector" would be interesting. Thanks for the paper.
A: "Stonks GPT is a trading name for Stocks & Breads, a UK-based provider of bread and breakfast products. The company was founded in 1894 and is headquartered in London. It is a leading provider of bread products in the UK, with a portfolio of over 50 brands. Stonks GPT is a subsidiary of Unilever PLC, which owns the brands including Pepperidge Farm, Lipton, and Marmite. The company's core business is the production of bread and breakfast products, with a focus on quality and freshness."
There are a lot of hallucinations here. Recommend really specifying in the prompt that if it doesn't know or is unsure, say that and don't make up facts. Understand it's alpha rn and this is all free UAT but for trading related products, accuracy and trust in the product is vital