feat: set default last n on redisadapter

This commit is contained in:
hajdul88 2025-10-16 17:26:18 +02:00
parent dc519f5d26
commit 48c832bf5f
2 changed files with 2 additions and 2 deletions

View file

@ -58,7 +58,7 @@ class CacheDBInterface(ABC):
pass
@abstractmethod
async def get_latest_qa(self, user_id: str, session_id: str, last_n: int = 10):
async def get_latest_qa(self, user_id: str, session_id: str, last_n: int = 5):
"""
Retrieve the most recent Q/A/context triplets for a session.
"""

View file

@ -157,7 +157,7 @@ class RedisAdapter(CacheDBInterface):
logger.error(error_msg)
raise CacheConnectionError(error_msg) from e
async def get_latest_qa(self, user_id: str, session_id: str, last_n: int = 10):
async def get_latest_qa(self, user_id: str, session_id: str, last_n: int = 5):
"""
Retrieve the most recent Q/A/context triplet(s) for the given session.
"""