File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ class UserBehaviorTypeEnum(IntEnum):
11
11
NODE_TRASHED_OPS = 4
12
12
NODE_RESTORED_OPS = 5
13
13
NODE_DELETED_OPS = 6
14
+ EXTENDED_NODE_ACCEPTED = 14
15
+
14
16
# search, backend
15
17
SEARCH_GLOBAL = 7
16
18
SEARCH_AT = 8
@@ -20,6 +22,7 @@ class UserBehaviorTypeEnum(IntEnum):
20
22
# view node, frontend
21
23
VIEW_NODE_FROM_RECOMMENDATION = 11
22
24
VIEW_NODE_FROM_LINKED_NODE = 12
25
+ VIEW_EXTENDED_NODE = 13
23
26
24
27
25
28
USER_BEHAVIOR_TYPE_MAP = {
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ async def async_deliver_unscheduled_extend_nodes() -> str:
47
47
if code != const .CodeEnum .OK :
48
48
logger .error (f"knowledge summary error: { code } " )
49
49
continue
50
- logger .debug (f"summary: { _summary } " )
50
+ oneline_s = _summary .replace ('\n ' , '\n \n ' )
51
+ logger .debug (f"summary: { oneline_s } " )
51
52
e0 = time .perf_counter ()
52
53
_extended , code = await knowledge .extend (
53
54
llm_service = knowledge .LLM_SERVICES [item ["extendService" ]],
@@ -59,7 +60,8 @@ async def async_deliver_unscheduled_extend_nodes() -> str:
59
60
if code != const .CodeEnum .OK :
60
61
logger .error (f"knowledge extend error: { code } " )
61
62
continue
62
- logger .debug (f"extended: { _extended } " )
63
+ oneline_e = _extended .replace ('\n ' , '\n \n ' )
64
+ logger .debug (f"extended: { oneline_e } " )
63
65
ext = ExtendedNode (
64
66
uid = item ["uid" ],
65
67
sourceNid = item ["nid" ],
You can’t perform that action at this time.
0 commit comments