此版本仍在开发中,尚未被视为稳定版本。最新的快照版本请使用 Spring AI 1.0.0-SNAPSHOT!spring-doc.cn

请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。
请参阅 Repositories 部分,将 Milestone 和/或 Snapshot Repositories 添加到您的构建文件中。
这是一个突破性的变化!在早期版本的 Spring AI 中,默认情况下会进行此架构初始化。
财产 描述 默认值

spring.ai.vectorstore.redis.urispring-doc.cn

服务器连接 URIspring-doc.cn

redis://localhost:6379spring-doc.cn

spring.ai.vectorstore.redis.indexspring-doc.cn

索引名称spring-doc.cn

default-indexspring-doc.cn

spring.ai.vectorstore.redis.initialize-schemaspring-doc.cn

是否初始化所需的 schemaspring-doc.cn

falsespring-doc.cn

spring.ai.vectorstore.redis.prefixspring-doc.cn

前缀spring-doc.cn

default:spring-doc.cn

请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。

创建 as bean 更方便,也是首选。 但是,如果您决定手动创建它,则必须在设置属性之后和使用 Client 端之前调用 。RedisVectorStoreRedisVectorStore#afterPropertiesSet()spring-doc.cn

您必须明确列出筛选条件表达式中使用的任何元数据字段的所有元数据字段名称和类型(、 或 )。 上述寄存器可筛选的元数据字段: 类型 、 类型 。TAGTEXTNUMERICwithMetadataFieldscountryTAGyearNUMERICspring-doc.cn