fix: typo

This commit is contained in:
yinpeng
2024-05-31 16:48:52 +08:00
committed by Christian Tzolov
parent 77afc6028f
commit 20c6a1adcf
5 changed files with 7 additions and 7 deletions

View File

@@ -131,7 +131,7 @@
</dependency>
<!-- Vector Databses -->
<!-- Vector Databases -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-azure-store</artifactId>

View File

@@ -26,7 +26,7 @@ import org.springframework.ai.chat.prompt.ChatOptions;
import org.springframework.ai.model.function.FunctionCallback;
/**
* The data of the chat client request that can be modifed before the execution of the
* The data of the chat client request that can be modified before the execution of the
* ChatClient's call method
*
* @author Christian Tzolov

View File

@@ -57,7 +57,7 @@
<scope>test</scope>
</dependency>
<!-- Contains smaple test data -->
<!-- Contains sample test data -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-test</artifactId>

View File

@@ -122,7 +122,7 @@ public class GemFireVectorStore implements VectorStore {
}
public Builder withPort(int port) {
Assert.isTrue(port > 0, "port must be postive");
Assert.isTrue(port > 0, "port must be positive");
this.port = port;
return this;
}

View File

@@ -115,7 +115,7 @@ public class WeaviateVectorStore implements VectorStore, InitializingBean {
* Used to serialize/deserialize the document metadata when stored/retrieved from the
* weaviate vector store.
*/
private final ObjectMapper objetMapper = new ObjectMapper();
private final ObjectMapper objectMapper = new ObjectMapper();
/**
* Configuration class for the WeaviateVectorStore.
@@ -370,7 +370,7 @@ public class WeaviateVectorStore implements VectorStore, InitializingBean {
Map<String, Object> fields = new HashMap<>();
fields.put(CONTENT_FIELD_NAME, document.getContent());
try {
String metadataString = this.objetMapper.writeValueAsString(document.getMetadata());
String metadataString = this.objectMapper.writeValueAsString(document.getMetadata());
fields.put(METADATA_FIELD_NAME, metadataString);
}
catch (JsonProcessingException e) {
@@ -501,7 +501,7 @@ public class WeaviateVectorStore implements VectorStore, InitializingBean {
try {
String metadataJson = (String) item.get(METADATA_FIELD_NAME);
if (StringUtils.hasText(metadataJson)) {
metadata.putAll(this.objetMapper.readValue(metadataJson, Map.class));
metadata.putAll(this.objectMapper.readValue(metadataJson, Map.class));
}
}
catch (Exception e) {