BulkInsert fails with knn_vector data type

Hello All,
I am using BulkInsert (Java client) to ingest with an Index that has knn_vector Data Type. Currently, I am able to ingest when I create document with a POJO Class object for every row that insert into Index. I am using List in the POJO for the "Embeddings" column values to work.

I just want to dynamically read from a file (with header) and ingest into Indexes. I tried with Map<Object, Object> to create the document but it complains for the "embeddings" column. I want to check if I have a way to ingest without pre-creating the POJO Class?

Ex: POJO class

@Builder
@Data
Class MoviesIndex {
private String movieName, 
private String movieGenre, 
.
.
private List<Float> embeddings;
.
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.