Interface GPTEmbeddingService.EmbeddingsCache

  • Enclosing interface:
    GPTEmbeddingService

    public static interface GPTEmbeddingService.EmbeddingsCache
    Optional cache for embedding values. Tbe embeddings are encoded as a String.
    • Method Detail

      • getCachedEmbedding

        String getCachedEmbedding​(String text)
      • putCachedEmbedding

        void putCachedEmbedding​(String text,
                                String embedding)