@@ -28,6 +28,56 @@ class Settings(BaseSettings):
28
28
port : int = 8000
29
29
mcp_port : int = 9000
30
30
31
+ # Long-term memory backend configuration
32
+ long_term_memory_backend : str = (
33
+ "redis" # redis, chroma, pinecone, weaviate, qdrant, etc.
34
+ )
35
+
36
+ # Redis backend settings (existing)
37
+ # redis_url already defined above
38
+
39
+ # Chroma backend settings
40
+ chroma_host : str = "localhost"
41
+ chroma_port : int = 8000
42
+ chroma_collection_name : str = "agent_memory"
43
+ chroma_persist_directory : str | None = None
44
+
45
+ # Pinecone backend settings
46
+ pinecone_api_key : str | None = None
47
+ pinecone_environment : str | None = None
48
+ pinecone_index_name : str = "agent-memory"
49
+
50
+ # Weaviate backend settings
51
+ weaviate_url : str = "http://localhost:8080"
52
+ weaviate_api_key : str | None = None
53
+ weaviate_class_name : str = "AgentMemory"
54
+
55
+ # Qdrant backend settings
56
+ qdrant_url : str = "http://localhost:6333"
57
+ qdrant_api_key : str | None = None
58
+ qdrant_collection_name : str = "agent_memory"
59
+
60
+ # Milvus backend settings
61
+ milvus_host : str = "localhost"
62
+ milvus_port : int = 19530
63
+ milvus_collection_name : str = "agent_memory"
64
+ milvus_user : str | None = None
65
+ milvus_password : str | None = None
66
+
67
+ # PostgreSQL/PGVector backend settings
68
+ postgres_url : str | None = None
69
+ postgres_table_name : str = "agent_memory"
70
+
71
+ # LanceDB backend settings
72
+ lancedb_uri : str = "./lancedb"
73
+ lancedb_table_name : str = "agent_memory"
74
+
75
+ # OpenSearch backend settings
76
+ opensearch_url : str = "http://localhost:9200"
77
+ opensearch_username : str | None = None
78
+ opensearch_password : str | None = None
79
+ opensearch_index_name : str = "agent-memory"
80
+
31
81
# The server indexes messages in long-term memory by default. If this
32
82
# setting is enabled, we also extract discrete memories from message text
33
83
# and save them as separate long-term memory records.
@@ -45,7 +95,7 @@ class Settings(BaseSettings):
45
95
ner_model : str = "dbmdz/bert-large-cased-finetuned-conll03-english"
46
96
enable_ner : bool = True
47
97
48
- # RedisVL Settings
98
+ # RedisVL Settings (kept for backwards compatibility)
49
99
redisvl_distance_metric : str = "COSINE"
50
100
redisvl_vector_dimensions : str = "1536"
51
101
redisvl_index_name : str = "memory"
0 commit comments