Skip to content

Commit 20c6a1a

Browse files
hakusai22tzolov
authored andcommitted
fix: typo
1 parent 77afc60 commit 20c6a1a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

spring-ai-bom/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
</dependency>
132132

133133

134-
<!-- Vector Databses -->
134+
<!-- Vector Databases -->
135135
<dependency>
136136
<groupId>org.springframework.ai</groupId>
137137
<artifactId>spring-ai-azure-store</artifactId>

spring-ai-core/src/main/java/org/springframework/ai/chat/client/AdvisedRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.springframework.ai.model.function.FunctionCallback;
2727

2828
/**
29-
* The data of the chat client request that can be modifed before the execution of the
29+
* The data of the chat client request that can be modified before the execution of the
3030
* ChatClient's call method
3131
*
3232
* @author Christian Tzolov

vector-stores/spring-ai-azure-store/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<scope>test</scope>
5858
</dependency>
5959

60-
<!-- Contains smaple test data -->
60+
<!-- Contains sample test data -->
6161
<dependency>
6262
<groupId>org.springframework.ai</groupId>
6363
<artifactId>spring-ai-test</artifactId>

vector-stores/spring-ai-gemfire-store/src/main/java/org/springframework/ai/vectorstore/GemFireVectorStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public Builder withHost(String host) {
122122
}
123123

124124
public Builder withPort(int port) {
125-
Assert.isTrue(port > 0, "port must be postive");
125+
Assert.isTrue(port > 0, "port must be positive");
126126
this.port = port;
127127
return this;
128128
}

vector-stores/spring-ai-weaviate-store/src/main/java/org/springframework/ai/vectorstore/WeaviateVectorStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public class WeaviateVectorStore implements VectorStore, InitializingBean {
115115
* Used to serialize/deserialize the document metadata when stored/retrieved from the
116116
* weaviate vector store.
117117
*/
118-
private final ObjectMapper objetMapper = new ObjectMapper();
118+
private final ObjectMapper objectMapper = new ObjectMapper();
119119

120120
/**
121121
* Configuration class for the WeaviateVectorStore.
@@ -370,7 +370,7 @@ private WeaviateObject toWeaviateObject(Document document) {
370370
Map<String, Object> fields = new HashMap<>();
371371
fields.put(CONTENT_FIELD_NAME, document.getContent());
372372
try {
373-
String metadataString = this.objetMapper.writeValueAsString(document.getMetadata());
373+
String metadataString = this.objectMapper.writeValueAsString(document.getMetadata());
374374
fields.put(METADATA_FIELD_NAME, metadataString);
375375
}
376376
catch (JsonProcessingException e) {
@@ -501,7 +501,7 @@ private Document toDocument(Map<String, ?> item) {
501501
try {
502502
String metadataJson = (String) item.get(METADATA_FIELD_NAME);
503503
if (StringUtils.hasText(metadataJson)) {
504-
metadata.putAll(this.objetMapper.readValue(metadataJson, Map.class));
504+
metadata.putAll(this.objectMapper.readValue(metadataJson, Map.class));
505505
}
506506
}
507507
catch (Exception e) {

0 commit comments

Comments
 (0)