Skip to content

Commit

Permalink
fix: logs and pipeline query api
Browse files Browse the repository at this point in the history
skip common_qa when checking intent via bus api
  • Loading branch information
JarbasAl committed Dec 19, 2024
1 parent a4a15a2 commit 5872f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ovos_core/intent_services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from ovos_adapt.opm import AdaptPipeline
from ovos_commonqa.opm import CommonQAService
from padacioso.opm import PadaciosoPipeline as PadaciosoService

from ocp_pipeline.opm import OCPPipelineMatcher
from ovos_bus_client.message import Message
Expand All @@ -33,6 +32,7 @@
from ovos_utils.lang import standardize_lang_tag
from ovos_utils.log import LOG, log_deprecation, deprecated
from ovos_utils.metrics import Stopwatch
from padacioso.opm import PadaciosoPipeline as PadaciosoService


class IntentService:
Expand Down Expand Up @@ -355,6 +355,7 @@ def handle_utterance(self, message: Message):
lang = self.disambiguate_lang(message)

utterances = message.data.get('utterances', [])
LOG.info(f"Parsing utterance: {utterances}")

stopwatch = Stopwatch()

Expand Down Expand Up @@ -465,6 +466,7 @@ def handle_get_intent(self, message):

# Loop through the matching functions until a match is found.
for pipeline, match_func in self.get_pipeline(skips=["converse",
"common_qa",
"fallback_high",
"fallback_medium",
"fallback_low"],
Expand Down
1 change: 1 addition & 0 deletions ovos_core/intent_services/converse_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def converse_with_skills(self, utterances: List[str], lang: str, message: Messag
if skill_id in session.blacklisted_skills:
LOG.debug(f"ignoring match, skill_id '{skill_id}' blacklisted by Session '{session.session_id}'")
continue
LOG.debug(f"Attempting to converse with skill: {skill_id}")
if self.converse(utterances, skill_id, lang, message):
state = session.utterance_states.get(skill_id, UtteranceState.INTENT)
return PipelineMatch(handled=state != UtteranceState.RESPONSE,
Expand Down

0 comments on commit 5872f60

Please sign in to comment.