Spaces:
Running
Running
Commit
·
ab68bb9
1
Parent(s):
2e35712
Upd debugs
Browse files
memory.py
CHANGED
@@ -11,7 +11,8 @@ import logging
|
|
11 |
_LLM_SMALL = "gemini-2.5-flash-lite-preview-06-17"
|
12 |
# Load embedding model
|
13 |
EMBED = SentenceTransformer("/app/model_cache", device="cpu").half()
|
14 |
-
logger = logging.getLogger("
|
|
|
15 |
|
16 |
class MemoryManager:
|
17 |
def __init__(self, max_users=1000, history_per_user=10, max_chunks=30):
|
|
|
11 |
_LLM_SMALL = "gemini-2.5-flash-lite-preview-06-17"
|
12 |
# Load embedding model
|
13 |
EMBED = SentenceTransformer("/app/model_cache", device="cpu").half()
|
14 |
+
logger = logging.getLogger("rag-agent")
|
15 |
+
logging.basicConfig(level=logging.INFO, format="%(asctime)s — %(name)s — %(levelname)s — %(message)s", force=True) # Change INFO to DEBUG for full-ctx JSON loader
|
16 |
|
17 |
class MemoryManager:
|
18 |
def __init__(self, max_users=1000, history_per_user=10, max_chunks=30):
|