|
10 | 10 | load_dotenv() |
11 | 11 |
|
12 | 12 |
|
13 | | -class zep_client: |
| 13 | +class zepClient: |
14 | 14 | def __init__(self): |
15 | 15 | from zep_cloud.client import Zep |
16 | 16 |
|
@@ -42,7 +42,7 @@ def search(self, query, user_id, top_k): |
42 | 42 | return nodes, edges |
43 | 43 |
|
44 | 44 |
|
45 | | -class mem0_client: |
| 45 | +class mem0Client: |
46 | 46 | def __init__(self, enable_graph=False): |
47 | 47 | from mem0 import MemoryClient |
48 | 48 |
|
@@ -85,7 +85,7 @@ def search(self, query, user_id, top_k): |
85 | 85 | return res |
86 | 86 |
|
87 | 87 |
|
88 | | -class memobase_client: |
| 88 | +class memobaseClient: |
89 | 89 | def __init__(self): |
90 | 90 | from memobase import MemoBaseClient |
91 | 91 |
|
@@ -114,7 +114,7 @@ def search(self, query, user_id, top_k): |
114 | 114 | return memories |
115 | 115 |
|
116 | 116 |
|
117 | | -class memos_api_client: |
| 117 | +class memosApiClient: |
118 | 118 | def __init__(self): |
119 | 119 | self.memos_url = os.getenv("MEMOS_URL") |
120 | 120 | self.headers = {"Content-Type": "application/json", "Authorization": os.getenv("MEMOS_KEY")} |
@@ -155,7 +155,7 @@ def search(self, query, user_id, top_k): |
155 | 155 | return json.loads(response.text)["data"] |
156 | 156 |
|
157 | 157 |
|
158 | | -class supermemory_client: |
| 158 | +class supermemoryClient: |
159 | 159 | def __init__(self): |
160 | 160 | from supermemory import Supermemory |
161 | 161 |
|
@@ -197,7 +197,7 @@ def search(self, query, user_id, top_k): |
197 | 197 | raise e |
198 | 198 |
|
199 | 199 |
|
200 | | -class memu_client: |
| 200 | +class memuClient: |
201 | 201 | def __init__(self): |
202 | 202 | from memu import MemuClient |
203 | 203 |
|
@@ -245,20 +245,3 @@ def wait_for_completion(self, task_id): |
245 | 245 | timestamp = 1682899200 |
246 | 246 | query = "杭州西湖有什么" |
247 | 247 | top_k = 5 |
248 | | - |
249 | | - # # memu |
250 | | - # memu_client = memu_client() |
251 | | - # memu_client.add(messages, user_id, iso_date) |
252 | | - # res = memu_client.search(query, user_id, top_k) |
253 | | - |
254 | | - # # supermemory |
255 | | - # supermemory_client = supermemory_client() |
256 | | - # supermemory_client.delete('locomo_exp_user_5_speaker_b_default') |
257 | | - |
258 | | - # # mem0 |
259 | | - # mem0_client = mem0_client(enable_graph=False) |
260 | | - # mem0_client.add(messages, user_id, timestamp) |
261 | | - # s = mem0_client.search(query, user_id, top_k) |
262 | | - |
263 | | - # zep |
264 | | - zep_client = zep_client() |
0 commit comments