Skip to content

Commit 865ffe6

Browse files
committed
update the limit of the element for the limit
1 parent a9e2097 commit 865ffe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/context/cosmos_memory_kernel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ async def get_plan(self, plan_id: str) -> Optional[Plan]:
269269

270270
async def get_all_plans(self) -> List[Plan]:
271271
"""Retrieve all plans."""
272-
query = "SELECT * FROM c WHERE c.user_id=@user_id AND c.data_type=@data_type ORDER BY c._ts DESC OFFSET 0 LIMIT 5"
272+
query = "SELECT * FROM c WHERE c.user_id=@user_id AND c.data_type=@data_type ORDER BY c._ts DESC OFFSET 0 LIMIT 10"
273273
parameters = [
274274
{"name": "@data_type", "value": "plan"},
275275
{"name": "@user_id", "value": self.user_id},

0 commit comments

Comments
 (0)