Since documents
is the list containing Document
objects
document
variable should be documents
vectorStore.add(List.of(document));
-> vectorStore.add(documents);
Since documents
is the list containing Document
objects
document
variable should be documents
vectorStore.add(List.of(document));
-> vectorStore.add(documents);