Skip to content

Commit 3c23c44

Browse files
committed
Add comments to new_memory stores
1 parent 0849140 commit 3c23c44

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

python/samples/concepts/memory/new_memory.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ class MyDataModelList:
7171
collection_name = "test"
7272
MyDataModel = MyDataModelArray
7373

74+
# A list of VectorStoreRecordCollection that can be used.
75+
# Available stores are:
76+
# - ai_search: Azure AI Search
77+
# - postgres: PostgreSQL
78+
# - redis_json: Redis JSON
79+
# - redis_hashset: Redis Hashset
80+
# - qdrant: Qdrant
81+
# - volatile: In-memory store
82+
#
83+
# This is represented as a mapping from the store name to a
84+
# function which returns the store.
85+
# Using a function allows for lazy initialization of the store,
86+
# so that settings for unused stores do not cause validation errors.
7487
stores: dict[str, Callable[[], VectorStoreRecordCollection]] = {
7588
"ai_search": lambda: AzureAISearchCollection[MyDataModel](
7689
data_model_type=MyDataModel,

0 commit comments

Comments
 (0)