Don't classify, hallucinate
41–50 of 118 posts
Re: Don't classify, hallucinate
#42Re: Don't classify, hallucinate
#43I would propose the following, query vector store for 10 closest categories based on a query, feed it to an LLM, in the prompt ask it to produce a single digit 0-9 representing the number of the most appropriate choice. Use plain text prompt, dont inflate token count with JSON. There you go, you just drastically reduced the output pricing. Additionally you could experiment with a reranker instead of an LLM or after r…
Re: Don't classify, hallucinate
#44I would propose the following, query vector store for 10 closest categories based on a query, feed it to an LLM, in the prompt ask it to produce a single digit 0-9 representing the number of the most appropriate choice. Use plain text prompt, dont inflate token count with JSON. There you go, you just drastically reduced the output pricing. Additionally you could experiment with a reranker instead of an LLM or after r…
Or press 9 to hear these options again
Re: Don't classify, hallucinate
#45Re: Don't classify, hallucinate
#46Re: Don't classify, hallucinate
#47Nice trick. Couldn't you embed the query though, compare it to the embedding of the categories, then ship only categories that are close to it in the prompt to a smaller model?
Re: Don't classify, hallucinate
#48No? This is just giving up and hoping.