upvote
There's been quite a bit of research into this over the past 3-4 years under the name "generative retrieval." The general approach is to use a transformer and treat the weights as the index. You input the query, and then used constrained decoding to generate the document ID.
reply
In some sense there's probably a database compression scheme that does something similar. Usually people care too much about fidelity
reply