Uses of Interface
com.composum.ai.backend.base.service.chat.GPTEmbeddingService.EmbeddingsCache
-
Packages that use GPTEmbeddingService.EmbeddingsCache Package Description com.composum.ai.backend.base.service.chat com.composum.ai.backend.base.service.chat.impl -
-
Uses of GPTEmbeddingService.EmbeddingsCache in com.composum.ai.backend.base.service.chat
Methods in com.composum.ai.backend.base.service.chat with parameters of type GPTEmbeddingService.EmbeddingsCache Modifier and Type Method Description List<String>
GPTEmbeddingService. findMostRelated(String query, List<String> comparedStrings, int limit, GPTConfiguration configuration, GPTEmbeddingService.EmbeddingsCache cache)
Determines the at most limit to query semantically closest of the comparedStrings according to the embedding service.List<float[]>
GPTEmbeddingService. getEmbeddings(List<String> texts, GPTConfiguration configuration, GPTEmbeddingService.EmbeddingsCache cache)
Get embeddings for the given texts. -
Uses of GPTEmbeddingService.EmbeddingsCache in com.composum.ai.backend.base.service.chat.impl
Methods in com.composum.ai.backend.base.service.chat.impl with parameters of type GPTEmbeddingService.EmbeddingsCache Modifier and Type Method Description List<String>
GPTEmbeddingServiceImpl. findMostRelated(String query, List<String> comparedStrings, int limit, GPTConfiguration configuration, GPTEmbeddingService.EmbeddingsCache thecache)
List<float[]>
GPTEmbeddingServiceImpl. getEmbeddings(List<String> texts, GPTConfiguration configuration, GPTEmbeddingService.EmbeddingsCache cache)
-