System and method for training an embeddings cache model (ecm)
Патент · US A1
Полный текст
Disclosed herein are systems and methods for training an embeddings cache model (ECM). The method includes generating a main embedding by a main embedding model based on a received input query. The method also includes searching for the input query or the generated main embedding in a cache table. Based on a determination that the input query is not found in the cache table and the main embedding is not found in the cache table within the embedding similarity threshold, the method further includes: based on a determination that the number of entries in the cache table is equal to or greater than the predetermined threshold for training the ECM, storing the input query and the main embedding in the cache table, and training or fine-tuning the ECM based on the input query and the main embedding, and transmitting the main embedding to the LLM service.