A less complicated kind of Device use is Retrieval Augmented Generation: augment an LLM with doc retrieval, in some cases employing a vector databases. Given a query, a document retriever is called to retrieve one of the most related (ordinarily calculated by first encoding the query as well as files into vectors, then obtaining the files with vect