We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329e6c0 commit d66d85bCopy full SHA for d66d85b
spring-ai-core/src/main/java/org/springframework/ai/vectorstore/SimpleVectorStore.java
@@ -207,14 +207,12 @@ public void load(Resource resource) {
207
208
private String getVectorDbAsJson() {
209
ObjectWriter objectWriter = this.objectMapper.writerWithDefaultPrettyPrinter();
210
- String json;
211
try {
212
- json = objectWriter.writeValueAsString(this.store);
+ return objectWriter.writeValueAsString(this.store);
213
}
214
catch (JsonProcessingException e) {
215
throw new RuntimeException("Error serializing documentMap to JSON.", e);
216
217
- return json;
218
219
220
private float[] getUserQueryEmbedding(String query) {
0 commit comments