You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Search long-term memory for relevant information based on a query. Use this when you need to recall past conversations, user preferences, or previously stored information. Note: This searches only long-term memory, not current working memory.",
840
+
"description": "Search long-term memory for relevant information using a query for vector search. Use this when you need to recall past conversations, user preferences, or previously stored information. Note: This searches only long-term memory, not current working memory.",
832
841
"parameters": {
833
842
"type": "object",
834
843
"properties": {
835
844
"query": {
836
845
"type": "string",
837
-
"description": "The search query describing what information you're looking for",
846
+
"description": "The query for vector search describing what information you're looking for",
Copy file name to clipboardExpand all lines: agent_memory_server/config.py
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,12 @@ class Settings(BaseSettings):
56
56
anthropic_api_base: str|None=None
57
57
generation_model: str="gpt-4o"
58
58
embedding_model: str="text-embedding-3-small"
59
+
60
+
# Model selection for query optimization
61
+
slow_model: str="gpt-4o"# Slower, more capable model for complex tasks
62
+
fast_model: str= (
63
+
"gpt-4o-mini"# Faster, smaller model for quick tasks like query optimization
64
+
)
59
65
port: int=8000
60
66
mcp_port: int=9000
61
67
@@ -124,6 +130,21 @@ class Settings(BaseSettings):
124
130
0.7# Fraction of context window that triggers summarization
125
131
)
126
132
133
+
# Query optimization settings
134
+
query_optimization_prompt_template: str="""Transform this natural language query into an optimized version for semantic search. The goal is to make it more effective for finding semantically similar content while preserving the original intent.
135
+
136
+
Guidelines:
137
+
- Keep the core meaning and intent
138
+
- Use more specific and descriptive terms
139
+
- Remove unnecessary words like "tell me", "I want to know", "can you"
0 commit comments