|
1 | 1 | /* |
2 | | - * Copyright 2023-2024 the original author or authors. |
| 2 | + * Copyright 2023-2025 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
16 | 16 |
|
17 | 17 | package org.springframework.ai.vectorstore.chroma.autoconfigure; |
18 | 18 |
|
19 | | -import org.springframework.ai.chroma.vectorstore.ChromaVectorStore; |
| 19 | +import org.springframework.ai.chroma.vectorstore.common.ChromaApiConstants; |
20 | 20 | import org.springframework.ai.vectorstore.properties.CommonVectorStoreProperties; |
21 | 21 | import org.springframework.boot.context.properties.ConfigurationProperties; |
22 | 22 |
|
|
25 | 25 | * |
26 | 26 | * @author Christian Tzolov |
27 | 27 | * @author Soby Chacko |
| 28 | + * @author Jonghoon Park |
28 | 29 | */ |
29 | 30 | @ConfigurationProperties(ChromaVectorStoreProperties.CONFIG_PREFIX) |
30 | 31 | public class ChromaVectorStoreProperties extends CommonVectorStoreProperties { |
31 | 32 |
|
32 | 33 | public static final String CONFIG_PREFIX = "spring.ai.vectorstore.chroma"; |
33 | 34 |
|
34 | | - private String collectionName = ChromaVectorStore.DEFAULT_COLLECTION_NAME; |
| 35 | + private String tenantName = ChromaApiConstants.DEFAULT_TENANT_NAME; |
| 36 | + |
| 37 | + private String databaseName = ChromaApiConstants.DEFAULT_DATABASE_NAME; |
| 38 | + |
| 39 | + private String collectionName = ChromaApiConstants.DEFAULT_COLLECTION_NAME; |
| 40 | + |
| 41 | + public String getTenantName() { |
| 42 | + return tenantName; |
| 43 | + } |
| 44 | + |
| 45 | + public void setTenantName(String tenantName) { |
| 46 | + this.tenantName = tenantName; |
| 47 | + } |
| 48 | + |
| 49 | + public String getDatabaseName() { |
| 50 | + return databaseName; |
| 51 | + } |
| 52 | + |
| 53 | + public void setDatabaseName(String databaseName) { |
| 54 | + this.databaseName = databaseName; |
| 55 | + } |
35 | 56 |
|
36 | 57 | public String getCollectionName() { |
37 | 58 | return this.collectionName; |
|
0 commit comments