A less complicated form of Instrument use is Retrieval Augmented Generation: augment an LLM with document retrieval, at times using a vector database. Offered a query, a doc retriever is called to retrieve one of the most appropriate (normally measured by very first encoding the query and also the documents into vectors, then obtaining the files wi