Class PostgresMlEmbeddingClient

java.lang.Object
org.springframework.ai.embedding.PostgresMlEmbeddingClient
All Implemented Interfaces:
EmbeddingClient, org.springframework.beans.factory.InitializingBean

public class PostgresMlEmbeddingClient extends Object implements EmbeddingClient, org.springframework.beans.factory.InitializingBean
PostgresML EmbeddingClient
Author:
Toshiaki Maki
  • Constructor Details

    • PostgresMlEmbeddingClient

      public PostgresMlEmbeddingClient(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
      a constructor
      Parameters:
      jdbcTemplate - JdbcTemplate
    • PostgresMlEmbeddingClient

      public PostgresMlEmbeddingClient(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String transformer)
      a constructor
      Parameters:
      jdbcTemplate - JdbcTemplate
      transformer - huggingface sentence-transformer name
    • PostgresMlEmbeddingClient

      public PostgresMlEmbeddingClient(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String transformer, PostgresMlEmbeddingClient.VectorType vectorType)
      a constructor
      Parameters:
      jdbcTemplate - JdbcTemplate
      transformer - huggingface sentence-transformer name
      vectorType - vector type in PostgreSQL
    • PostgresMlEmbeddingClient

      public PostgresMlEmbeddingClient(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, String transformer, PostgresMlEmbeddingClient.VectorType vectorType, Map<String,Object> kwargs, MetadataMode metadataMode)
      a constructor
      Parameters:
      jdbcTemplate - JdbcTemplate
      transformer - huggingface sentence-transformer name
      vectorType - vector type in PostgreSQL
      kwargs - optional arguments
  • Method Details