remove unused classes

This commit is contained in:
Mark Pollack
2025-05-11 06:34:40 -04:00
parent 60356fb5ba
commit 0c994b7477
2 changed files with 0 additions and 61 deletions

View File

@@ -1,24 +0,0 @@
package org.springframework.ai.chat.client.advisor.vectorstore;
import java.util.List;
import org.springframework.ai.chat.memory.ChatMemory;
import org.springframework.ai.chat.messages.Message;
/**
* Interface for chat memories that support parameterized retrieval. Implementations can
* define their own parameter types.
*
* @param <P> The type of parameters used for retrieval
*/
public interface ParameterizedChatMemory<P> extends ChatMemory {
/**
* Retrieve messages based on the provided parameters.
* @param conversationId The conversation identifier
* @param parameters The retrieval parameters
* @return List of retrieved messages
*/
List<Message> retrieve(String conversationId, P parameters);
}

View File

@@ -1,37 +0,0 @@
package org.springframework.ai.chat.client.advisor.vectorstore;
import org.springframework.ai.vectorstore.SearchRequest;
/**
* Parameters for vector store similarity search with default values.
*/
public record VectorSearchParameters(int topK, String filter) {
public static final int DEFAULT_TOP_K = 100;
public VectorSearchParameters() {
this(VectorStoreChatMemoryAdvisor.DEFAULT_CHAT_MEMORY_RESPONSE_SIZE, null);
}
public static VectorSearchParameters of(int topK) {
return new VectorSearchParameters(topK, null);
}
public static VectorSearchParameters forConversation(String conversationId) {
return new VectorSearchParameters(DEFAULT_TOP_K, "conversationId=='" + conversationId + "'");
}
public VectorSearchParameters withTopK(int topK) {
return new VectorSearchParameters(topK, this.filter);
}
/**
* Create a new instance with a different filter.
* @param filter the new filter expression
* @return a new VectorSearchParameters instance with the updated filter
*/
public VectorSearchParameters withFilter(String filter) {
return new VectorSearchParameters(this.topK, filter);
}
}