pbesa 4.0.30__tar.gz → 4.0.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pbesa-4.0.30 → pbesa-4.0.32}/PKG-INFO +1 -1
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/cognitive.py +41 -21
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/dialog.py +1 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa.egg-info/PKG-INFO +1 -1
- {pbesa-4.0.30 → pbesa-4.0.32}/setup.py +1 -1
- {pbesa-4.0.30 → pbesa-4.0.32}/.gitignore +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/LICENSE +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/LICENSE.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/MANIFEST +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/README.md +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/db.sqlite3 +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/settings.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/asgi.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/pbesa.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/settings.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/urls.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/wsgi.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/manage.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/admin.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/apps.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/translatecontroller.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/translatedelegate.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/controller/translateresponse.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/translatetask.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/workeragent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/migrations/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/migrations/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/models.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/tests.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/urls.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/views.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/countercontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/counterdelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/counterresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/translatecontroller.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/translatedelegate.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/__pycache__/translateresponse.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/countercontroller.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/counterdelegate.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/controller/counterresponse.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/counteragent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/countertask.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/remote_a.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/remote_b.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/remote_c.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_casos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_consultas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_conversador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_cuestionador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_datos_identificables.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_evaluador.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_expertos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_extraccion.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_generar_caso.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_generar_documento.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_instruccion.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_parafraseo.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_pertinencia.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_preguntas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_respuesta.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_saludos.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/celula_simulador_ciudadano.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/data_extraction_cel.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/celulas/web.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/adapter.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/agent.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/io/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/io/system_file.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/io/tcp_server.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/__pycache__/__init__.cpython-36.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/__pycache__/__init__.cpython-37.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/__pycache__/__init__.cpython-38.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/__pycache__/__init__.cpython-39.pyc +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/res/conf.json +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/util.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/kernel/world.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/mas.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/models.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/adm_listener.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/adm_listener_handler.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/exceptions.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/remote_adm.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/remote/remote_adm_handler.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/__init__.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/collaborative_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/delegator.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/delegator_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/dispatcher_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/prompts.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/selected_dispatcher_team.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/templates.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa/social/worker.py +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa.egg-info/SOURCES.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa.egg-info/dependency_links.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa.egg-info/requires.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/pbesa.egg-info/top_level.txt +0 -0
- {pbesa-4.0.30 → pbesa-4.0.32}/setup.cfg +0 -0
@@ -334,7 +334,7 @@ class AugmentedGeneration(ABC):
|
|
334
334
|
traceback.print_exc()
|
335
335
|
logging.info(f"------------RESET---------------")
|
336
336
|
self.reset()
|
337
|
-
return
|
337
|
+
return DialogState.ERROR
|
338
338
|
|
339
339
|
def derive(self, query, max_tokens=4096, temperature=0, top_p=0.9) -> str:
|
340
340
|
""" Generate method
|
@@ -361,7 +361,7 @@ class AugmentedGeneration(ABC):
|
|
361
361
|
traceback.print_exc()
|
362
362
|
logging.info(f"------------RESET---------------")
|
363
363
|
self.reset()
|
364
|
-
return
|
364
|
+
return DialogState.ERROR
|
365
365
|
|
366
366
|
def get_role(self) -> Role:
|
367
367
|
""" Get role method
|
@@ -575,7 +575,7 @@ class Dialog(ABC):
|
|
575
575
|
"counter": 0
|
576
576
|
}
|
577
577
|
# Define recovery message
|
578
|
-
self.RECOVERY_MSG = "
|
578
|
+
self.RECOVERY_MSG = "Lo lamento, no puedo responder en este momento. O si desea puede recibir asistencia humana vía correo electrónico al ministerio@minjsuticia.gov.co"
|
579
579
|
# Define vertices list
|
580
580
|
self.__vertices = []
|
581
581
|
# Define visited nodes
|
@@ -589,6 +589,7 @@ class Dialog(ABC):
|
|
589
589
|
self.rules = None
|
590
590
|
self.__q_attemps = 0
|
591
591
|
|
592
|
+
|
592
593
|
def setup_world(self):
|
593
594
|
""" Set up model method """
|
594
595
|
# Define role
|
@@ -801,6 +802,7 @@ class Dialog(ABC):
|
|
801
802
|
|
802
803
|
def recovery(self, session_id, query):
|
803
804
|
try:
|
805
|
+
'''
|
804
806
|
logging.info("\n\n\n")
|
805
807
|
logging.info(f"------------RECOVERY---------------")
|
806
808
|
logging.info("\n\n\n")
|
@@ -817,10 +819,17 @@ class Dialog(ABC):
|
|
817
819
|
self.reset()
|
818
820
|
self.notify(session_id, "STOP")
|
819
821
|
return "Web", DialogState.START, self.RECOVERY_MSG, "Web"
|
822
|
+
'''
|
823
|
+
logging.info(f"------------RESET---------------")
|
824
|
+
logging.info(f"Recovery from: {self.__recovery['performative']}")
|
825
|
+
self.reset()
|
826
|
+
self.notify(session_id, "STOP")
|
827
|
+
return "Web", DialogState.START, DialogState.ERROR, "Web"
|
820
828
|
except Exception as e:
|
821
829
|
logging.error(f"Error en la recuperación: {e}")
|
822
|
-
msg =
|
830
|
+
msg = DialogState.ERROR
|
823
831
|
return "Web", DialogState.START, msg, "Web"
|
832
|
+
|
824
833
|
|
825
834
|
def stage_one_classification(self, session_id, messages, attemps, query):
|
826
835
|
""" Stage one classification """
|
@@ -834,10 +843,16 @@ class Dialog(ABC):
|
|
834
843
|
|
835
844
|
self.__analaizer_work_memory:list = [{"role": "system", "content": ANALIZER_PROMPT}]
|
836
845
|
|
846
|
+
es_verificacion = False
|
847
|
+
if len(messages) >= 3:
|
848
|
+
last_message = messages[-2]['text']
|
849
|
+
es_verificacion = '¿Desea que le ayude con una consulta o una demanda?' in last_message
|
837
850
|
|
838
|
-
if attemps > 1:
|
851
|
+
if attemps > 1 and not es_verificacion:
|
852
|
+
saludo = "NO_SALUDO"
|
853
|
+
elif attemps > 2 or es_verificacion:
|
854
|
+
|
839
855
|
saludo = "NO_SALUDO"
|
840
|
-
|
841
856
|
self.__sintetizer_work_memory:list = [{"role": "system", "content": SINTETIZER_PROMPT}]
|
842
857
|
|
843
858
|
cont = 0
|
@@ -1035,7 +1050,7 @@ class Dialog(ABC):
|
|
1035
1050
|
self.reset()
|
1036
1051
|
self.notify(session['session_id'], "STOP")
|
1037
1052
|
return "Web", DialogState.START, res, "Web"
|
1038
|
-
query = res
|
1053
|
+
query = res
|
1039
1054
|
#--------------------------
|
1040
1055
|
# Obtiene los hijos del
|
1041
1056
|
# nodo
|
@@ -1205,7 +1220,7 @@ class Dialog(ABC):
|
|
1205
1220
|
logging.info(f"------------RESET---------------")
|
1206
1221
|
self.reset()
|
1207
1222
|
self.notify(session['session_id'], "STOP")
|
1208
|
-
return owner, DialogState.START,
|
1223
|
+
return owner, DialogState.START, DialogState.ERROR, owner
|
1209
1224
|
|
1210
1225
|
def chek_user_interaction(self, children):
|
1211
1226
|
""" Check user interaction method
|
@@ -1278,7 +1293,7 @@ class Dialog(ABC):
|
|
1278
1293
|
if 'team-response' in conversation:
|
1279
1294
|
res = conversation['team-response']
|
1280
1295
|
else:
|
1281
|
-
res =
|
1296
|
+
res = DialogState.ERROR
|
1282
1297
|
logging.info("[Node]:[Action]:[Call]:[Terminal]:[Consulta]: No hay respuesta de equipo")
|
1283
1298
|
logging.info("[Node]:[Action]:[Call]:[Terminal]:[Consulta]: Especialistas")
|
1284
1299
|
else:
|
@@ -1395,11 +1410,10 @@ class Dialog(ABC):
|
|
1395
1410
|
if self.__visited_nodes > 3:
|
1396
1411
|
self.__visited_nodes = 0
|
1397
1412
|
logging.info(f"[Inferencia]:[Recursion]: Deep limit")
|
1398
|
-
#return self.recovery(session['session_id'], "Lo lamento, no puedo responder en este momento")
|
1399
1413
|
logging.info(f"------------RESET---------------")
|
1400
1414
|
self.reset()
|
1401
1415
|
self.notify(session['session_id'], "STOP")
|
1402
|
-
res =
|
1416
|
+
res = DialogState.ERROR
|
1403
1417
|
return "Web", DialogState.START, res, "Web"
|
1404
1418
|
logging.info(f"[Inferencia]:[Recursion]:[Performativa]: {node.performative}")
|
1405
1419
|
self.notify(session['session_id'], "efectuando inferencia en profundidad")
|
@@ -1420,7 +1434,7 @@ class Dialog(ABC):
|
|
1420
1434
|
logging.info(f"------------RESET---------------")
|
1421
1435
|
self.reset()
|
1422
1436
|
self.notify(session['session_id'], "STOP")
|
1423
|
-
return owner, DialogState.START,
|
1437
|
+
return owner, DialogState.START, DialogState.ERROR, owner
|
1424
1438
|
|
1425
1439
|
def set_knowledge(self, knowledge) -> str:
|
1426
1440
|
""" Set knowledge method
|
@@ -1552,7 +1566,7 @@ class Dialog(ABC):
|
|
1552
1566
|
conversacion = self.parse_conversation()
|
1553
1567
|
res = celula_conversador.derive(self.__ai_service, self.definitions, self.rules, conversacion, max_tkns=200)
|
1554
1568
|
if not res and res == "":
|
1555
|
-
res =
|
1569
|
+
res = DialogState.ERROR
|
1556
1570
|
res = res.replace("*", " ").strip()
|
1557
1571
|
if 'Formulación de la pregunta' in res:
|
1558
1572
|
res = res.split('Formulación de la pregunta: ')[1].strip()
|
@@ -1564,7 +1578,7 @@ class Dialog(ABC):
|
|
1564
1578
|
else:
|
1565
1579
|
logging.warning(f"Resultado inesperado: {result}")
|
1566
1580
|
self.__evaluate_work_memory = []
|
1567
|
-
return
|
1581
|
+
return DialogState.ERROR
|
1568
1582
|
else:
|
1569
1583
|
logging.warning(f"Resultado de evaluación vacío o nulo: {result}")
|
1570
1584
|
if _ < 2:
|
@@ -1573,13 +1587,13 @@ class Dialog(ABC):
|
|
1573
1587
|
else:
|
1574
1588
|
self.__evaluate_work_memory = []
|
1575
1589
|
logging.error("No se pudo evaluar la consulta después de 3 intentos.")
|
1576
|
-
return
|
1590
|
+
return DialogState.ERROR
|
1577
1591
|
self.__evaluate_work_memory = []
|
1578
|
-
return
|
1592
|
+
return DialogState.ERROR
|
1579
1593
|
except Exception as e:
|
1580
1594
|
logging.error(f"Error al evaluar la consulta: {query}")
|
1581
1595
|
logging.error(e)
|
1582
|
-
return
|
1596
|
+
return DialogState.ERROR
|
1583
1597
|
|
1584
1598
|
# --------------------------------------------------------
|
1585
1599
|
# Define Special Dispatch
|
@@ -1751,10 +1765,15 @@ class SpecialDispatch():
|
|
1751
1765
|
logging.info("=> No se seleccionó ningun agente")
|
1752
1766
|
|
1753
1767
|
major_id, response, score = self.retrieval(query)
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1768
|
+
if 'glosario' in major_id.lower():
|
1769
|
+
major_id = 'glosario'
|
1770
|
+
elif 'inicial' in major_id.lower():
|
1771
|
+
major_id = 'portal'
|
1772
|
+
else:
|
1773
|
+
major_id_split = major_id.split("_")
|
1774
|
+
major_id = major_id_split[0] if len(major_id_split) > 0 else major_id
|
1775
|
+
major_id_split = major_id.split("-")
|
1776
|
+
major_id = major_id_split[1] if len(major_id_split) > 0 else major_id
|
1758
1777
|
|
1759
1778
|
compare_llm = 0
|
1760
1779
|
compare_index = 0
|
@@ -1797,4 +1816,5 @@ class SpecialDispatch():
|
|
1797
1816
|
|
1798
1817
|
self.kusto_close()
|
1799
1818
|
self.__meta_work_memory = []
|
1819
|
+
self.major_id = None
|
1800
1820
|
return select_agent, response
|
@@ -29,6 +29,7 @@ class DialogState:
|
|
29
29
|
ASK_CONFIRMATION_NEGATIVE = "ask confirmation negative"
|
30
30
|
ASK_CONFIRMATION_POSITIVE = "ask confirmation_positive"
|
31
31
|
END = "end"
|
32
|
+
ERROR = "Lo lamento, no puedo responder en este momento, intente más tarde."
|
32
33
|
|
33
34
|
#------------------------------------------
|
34
35
|
# Define Node class
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/pbesa.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/helloworld/__pycache__/wsgi.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/admin.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/apps.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/models.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/urls.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/__pycache__/views.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/translatetask.py
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/django/helloworld/translate/mas/worker/workeragent.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/counteragent.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/countertask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/translatetask.cpython-36.pyc
RENAMED
File without changes
|
{pbesa-4.0.30 → pbesa-4.0.32}/examples/remote/mas/worker/__pycache__/workeragent.cpython-36.pyc
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|