Skip to content

Commit 2948211

Browse files
committed
updates for Trevor review
1 parent d9d0467 commit 2948211

File tree

2 files changed

+3
-12
lines changed
  • Java/CosmosDB-NoSQL-RAG-Chatbot
    • spring-chatgpt-sample-cli/src/main/java/com/microsoft/azure/spring/chatgpt/sample/cli

2 files changed

+3
-12
lines changed

Java/CosmosDB-NoSQL-RAG-Chatbot/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>com.azure</groupId>
3838
<artifactId>azure-spring-data-cosmos</artifactId>
39-
<version>3.46.0</version>
39+
<version>LATEST</version>
4040
</dependency>
4141
</dependencies>
4242
<dependencyManagement>

Java/CosmosDB-NoSQL-RAG-Chatbot/spring-chatgpt-sample-cli/src/main/java/com/microsoft/azure/spring/chatgpt/sample/cli/Config.java

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ public class Config extends AbstractCosmosConfiguration {
3737
@Value("${AZURE_OPENAI_APIKEY}")
3838
private String apiKey;
3939

40-
/* @Value("${COSMOS_URI}")
41-
private String cosmosEndpoint;
42-
43-
@Value("${COSMOS_KEY}")
44-
private String cosmosKey;*/
45-
46-
4740
@Autowired
4841
private CosmosProperties properties;
4942

@@ -53,9 +46,6 @@ public class Config extends AbstractCosmosConfiguration {
5346
@Autowired
5447
private ApplicationContext applicationContext;
5548

56-
//@Autowired
57-
//private CosmosTemplate cosmosTemplate;
58-
5949
public Config() throws IOException {
6050
}
6151

@@ -89,7 +79,8 @@ public CosmosClientBuilder cosmosClientBuilder() {
8979

9080
@Bean
9181
public CosmosDBVectorStore vectorStore() {
92-
CosmosDBVectorStore store = new CosmosDBVectorStore(cosmosEntityRepository, properties.getContainerName(), properties.getDatabaseName(),applicationContext);
82+
CosmosDBVectorStore store = new CosmosDBVectorStore(cosmosEntityRepository, properties.getContainerName(),
83+
properties.getDatabaseName(), applicationContext);
9384
return store;
9485
}
9586
}

0 commit comments

Comments
 (0)