Skip to content

Commit 4ec78f8

Browse files
committed
Imptove redis VD docs
1 parent 8f9a147 commit 4ec78f8

File tree

1 file changed

+4
-0
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs

1 file changed

+4
-0
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public VectorStore vectorStore(EmbeddingClient embeddingClient) {
100100
}
101101
----
102102

103+
> [NOTE]
104+
> It is more convenient and preferred to create the `RedisVectorStore` as a Bean.
105+
> But if you decide to create it manually, then you must call the `RedisVectorStore#afterPropertiesSet()` after setting the properties and before using the client.
106+
103107
> [NOTE]
104108
> You must list explicitly all metadata field names and types (`TAG`, `TEXT`, or `NUMERIC`) for any metadata field used in filter expression.
105109
> The `withMetadataFields` above registers filterable metadata fields: `country` of type `TAG`, `year` of type `NUMERIC`.

0 commit comments

Comments
 (0)