Skip to content

Commit c9382ae

Browse files
sobychackoStudiousXiaoYu
authored andcommitted
Remove deprecations in Coherence and Qdrant vector stores
Signed-off-by: StudiousXiaoYu <[email protected]>
1 parent 3396790 commit c9382ae

File tree

2 files changed

+0
-90
lines changed

2 files changed

+0
-90
lines changed

vector-stores/spring-ai-coherence-store/src/main/java/org/springframework/ai/vectorstore/coherence/CoherenceVectorStore.java

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,6 @@ public enum DistanceType {
139139

140140
private IndexType indexType;
141141

142-
/**
143-
* Creates a new CoherenceVectorStore with minimal configuration.
144-
* @param embeddingModel the embedding model to use
145-
* @param session the Coherence session
146-
* @deprecated Since 1.0.0-M5, use {@link #builder(Session, EmbeddingModel)} ()}
147-
* instead
148-
*/
149-
@Deprecated(since = "1.0.0-M5", forRemoval = true)
150-
public CoherenceVectorStore(EmbeddingModel embeddingModel, Session session) {
151-
this(builder(session, embeddingModel));
152-
}
153-
154142
/**
155143
* Protected constructor that accepts a builder instance. This is the preferred way to
156144
* create new CoherenceVectorStore instances.
@@ -177,46 +165,6 @@ public static Builder builder(Session session, EmbeddingModel embeddingModel) {
177165
return new Builder(session, embeddingModel);
178166
}
179167

180-
/**
181-
* @deprecated Since 1.0.0-M5, use {@link #builder(Session, EmbeddingModel)} ()}
182-
* instead
183-
*/
184-
@Deprecated(since = "1.0.0-M5", forRemoval = true)
185-
public CoherenceVectorStore setMapName(String mapName) {
186-
this.mapName = mapName;
187-
return this;
188-
}
189-
190-
/**
191-
* @deprecated Since 1.0.0-M5, use {@link #builder(Session, EmbeddingModel)} ()}
192-
* instead
193-
*/
194-
@Deprecated(since = "1.0.0-M5", forRemoval = true)
195-
public CoherenceVectorStore setDistanceType(DistanceType distanceType) {
196-
this.distanceType = distanceType;
197-
return this;
198-
}
199-
200-
/**
201-
* @deprecated Since 1.0.0-M5, use {@link #builder(Session, EmbeddingModel)} ()}
202-
* instead
203-
*/
204-
@Deprecated(since = "1.0.0-M5", forRemoval = true)
205-
public CoherenceVectorStore setIndexType(IndexType indexType) {
206-
this.indexType = indexType;
207-
return this;
208-
}
209-
210-
/**
211-
* @deprecated Since 1.0.0-M5, use {@link #builder(Session, EmbeddingModel)} ()}
212-
* instead
213-
*/
214-
@Deprecated(since = "1.0.0-M5", forRemoval = true)
215-
public CoherenceVectorStore setForcedNormalization(boolean forcedNormalization) {
216-
this.forcedNormalization = forcedNormalization;
217-
return this;
218-
}
219-
220168
@Override
221169
public void doAdd(final List<Document> documents) {
222170
Map<DocumentChunk.Id, DocumentChunk> chunks = new HashMap<>((int) Math.ceil(documents.size() / 0.75f));

vector-stores/spring-ai-qdrant-store/src/main/java/org/springframework/ai/vectorstore/qdrant/QdrantVectorStore.java

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import java.util.UUID;
2323
import java.util.concurrent.ExecutionException;
2424

25-
import io.micrometer.observation.ObservationRegistry;
2625
import io.qdrant.client.QdrantClient;
2726
import io.qdrant.client.grpc.Collections.Distance;
2827
import io.qdrant.client.grpc.Collections.VectorParams;
@@ -142,43 +141,6 @@ public class QdrantVectorStore extends AbstractObservationVectorStore implements
142141

143142
private final BatchingStrategy batchingStrategy;
144143

145-
/**
146-
* Constructs a new QdrantVectorStore.
147-
* @param qdrantClient A {@link QdrantClient} instance for interfacing with Qdrant.
148-
* @param collectionName The name of the collection to use in Qdrant.
149-
* @param embeddingModel The client for embedding operations.
150-
* @param initializeSchema A boolean indicating whether to initialize the schema.
151-
* @deprecated Use {@link #builder(QdrantClient, EmbeddingModel)}
152-
*/
153-
@Deprecated(forRemoval = true, since = "1.0.0-M5")
154-
public QdrantVectorStore(QdrantClient qdrantClient, String collectionName, EmbeddingModel embeddingModel,
155-
boolean initializeSchema) {
156-
this(qdrantClient, collectionName, embeddingModel, initializeSchema, ObservationRegistry.NOOP, null,
157-
new TokenCountBatchingStrategy());
158-
}
159-
160-
/**
161-
* Constructs a new QdrantVectorStore.
162-
* @param qdrantClient A {@link QdrantClient} instance for interfacing with Qdrant.
163-
* @param collectionName The name of the collection to use in Qdrant.
164-
* @param embeddingModel The client for embedding operations.
165-
* @param initializeSchema A boolean indicating whether to initialize the schema.
166-
* @param observationRegistry The observation registry to use.
167-
* @param customObservationConvention The custom search observation convention to use.
168-
* @deprecated Use {@link #builder(QdrantClient, EmbeddingModel)}
169-
*/
170-
@Deprecated(forRemoval = true, since = "1.0.0-M5")
171-
public QdrantVectorStore(QdrantClient qdrantClient, String collectionName, EmbeddingModel embeddingModel,
172-
boolean initializeSchema, ObservationRegistry observationRegistry,
173-
VectorStoreObservationConvention customObservationConvention, BatchingStrategy batchingStrategy) {
174-
175-
this(builder(qdrantClient, embeddingModel).collectionName(collectionName)
176-
.initializeSchema(initializeSchema)
177-
.observationRegistry(observationRegistry)
178-
.customObservationConvention(customObservationConvention)
179-
.batchingStrategy(batchingStrategy));
180-
}
181-
182144
/**
183145
* Protected constructor for creating a QdrantVectorStore instance using the builder
184146
* pattern.

0 commit comments

Comments
 (0)