Class MetadataVectorTable


public class MetadataVectorTable extends AbstractCassandraTable<MetadataVectorRecord>
Table representing persistence for Vector Stores support. As the name stated it holds both a vector and a metadata map. CREATE TABLE langchain4j.test_embedding_store ( row_id text PRIMARY KEY, attributes_blob text, body_blob text, metadata_s map<text, text>, vector vector<float, 11> );
  • Constructor Details

    • MetadataVectorTable

      public MetadataVectorTable(com.datastax.oss.driver.api.core.CqlSession session, String keyspaceName, String tableName, int vectorDimension)
      Constructor with mandatory parameters.
      Parameters:
      session - cassandra session
      keyspaceName - keyspace name
      tableName - table name
      vectorDimension - vector dimension
    • MetadataVectorTable

      public MetadataVectorTable(com.datastax.oss.driver.api.core.CqlSession session, String keyspaceName, String tableName, int vectorDimension, CassandraSimilarityMetric metric)
      Constructor with mandatory parameters.
      Parameters:
      session - cassandra session
      keyspaceName - keyspace name
      tableName - table name
      vectorDimension - vector dimension
      metric - similarity metric
  • Method Details