Class SpringAIOllamaConfig.EmptyRedisVectorStore

java.lang.Object
org.springframework.ai.vectorstore.observation.AbstractObservationVectorStore
org.springframework.ai.vectorstore.redis.RedisVectorStore
com.bytedesk.ai.springai.ollama.SpringAIOllamaConfig.EmptyRedisVectorStore
All Implemented Interfaces:
Consumer<List<org.springframework.ai.document.Document>>, org.springframework.ai.document.DocumentWriter, org.springframework.ai.vectorstore.VectorStore, org.springframework.beans.factory.InitializingBean
Enclosing class:
SpringAIOllamaConfig

private static class SpringAIOllamaConfig.EmptyRedisVectorStore extends org.springframework.ai.vectorstore.redis.RedisVectorStore
空的 RedisVectorStore 实现,用于完全降级情况
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.springframework.ai.vectorstore.redis.RedisVectorStore

    org.springframework.ai.vectorstore.redis.RedisVectorStore.Algorithm, org.springframework.ai.vectorstore.redis.RedisVectorStore.Builder, org.springframework.ai.vectorstore.redis.RedisVectorStore.MetadataField
  • Field Summary

    Fields inherited from class org.springframework.ai.vectorstore.redis.RedisVectorStore

    DEFAULT_CONTENT_FIELD_NAME, DEFAULT_EMBEDDING_FIELD_NAME, DEFAULT_INDEX_NAME, DEFAULT_PREFIX, DEFAULT_VECTOR_ALGORITHM, DISTANCE_FIELD_NAME

    Fields inherited from class org.springframework.ai.vectorstore.observation.AbstractObservationVectorStore

    batchingStrategy, embeddingModel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(List<org.springframework.ai.document.Document> documents)
     
    void
     
    void
     

    Methods inherited from class org.springframework.ai.vectorstore.redis.RedisVectorStore

    builder, createObservationContextBuilder, doAdd, doDelete, doDelete, doSimilaritySearch, getJedis, getNativeClient

    Methods inherited from class org.springframework.ai.vectorstore.observation.AbstractObservationVectorStore

    delete, similaritySearch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Consumer

    andThen

    Methods inherited from interface org.springframework.ai.document.DocumentWriter

    write

    Methods inherited from interface org.springframework.ai.vectorstore.VectorStore

    accept, delete, getName, similaritySearch
  • Constructor Details

    • EmptyRedisVectorStore

      public EmptyRedisVectorStore()
  • Method Details

    • add

      public void add(List<org.springframework.ai.document.Document> documents)
      Specified by:
      add in interface org.springframework.ai.vectorstore.VectorStore
      Overrides:
      add in class org.springframework.ai.vectorstore.observation.AbstractObservationVectorStore
    • delete

      public void delete(List<String> ids)
      Specified by:
      delete in interface org.springframework.ai.vectorstore.VectorStore
      Overrides:
      delete in class org.springframework.ai.vectorstore.observation.AbstractObservationVectorStore
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Overrides:
      afterPropertiesSet in class org.springframework.ai.vectorstore.redis.RedisVectorStore