Class CockroachDBVectorStore
java.lang.Object
com.cockroachlabs.data.ai.springai.CockroachDBVectorStore
- All Implemented Interfaces:
Consumer<List<org.springframework.ai.document.Document>>,org.springframework.ai.document.DocumentWriter,org.springframework.ai.vectorstore.VectorStore,org.springframework.ai.vectorstore.VectorStoreRetriever
public class CockroachDBVectorStore
extends Object
implements org.springframework.ai.vectorstore.VectorStore
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbuilder(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.ai.embedding.EmbeddingModel embeddingModel) voidvoiddelete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression) getName()<T> Optional<T> List<org.springframework.ai.document.Document> similaritySearch(org.springframework.ai.vectorstore.SearchRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.document.DocumentWriter
writeMethods inherited from interface org.springframework.ai.vectorstore.VectorStore
accept, deleteMethods inherited from interface org.springframework.ai.vectorstore.VectorStoreRetriever
similaritySearch
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet() -
add
- Specified by:
addin interfaceorg.springframework.ai.vectorstore.VectorStore
-
delete
- Specified by:
deletein interfaceorg.springframework.ai.vectorstore.VectorStore
-
delete
public void delete(org.springframework.ai.vectorstore.filter.Filter.Expression filterExpression) - Specified by:
deletein interfaceorg.springframework.ai.vectorstore.VectorStore
-
similaritySearch
public List<org.springframework.ai.document.Document> similaritySearch(org.springframework.ai.vectorstore.SearchRequest request) - Specified by:
similaritySearchin interfaceorg.springframework.ai.vectorstore.VectorStoreRetriever
-
getName
- Specified by:
getNamein interfaceorg.springframework.ai.vectorstore.VectorStore
-
getNativeClient
- Specified by:
getNativeClientin interfaceorg.springframework.ai.vectorstore.VectorStore
-
builder
public static CockroachDBVectorStore.Builder builder(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, org.springframework.ai.embedding.EmbeddingModel embeddingModel)
-