Skip to content

Sequential Preprocessing Creates Unnecessary Latency #110

Description

@bleedblack1

Sequential Preprocessing Introduces Unnecessary Latency

File: src/agent/profiles/base.py
Function: preprocess()

Description

The preprocess() method executes the following steps sequentially using await:

  1. rephrase
  2. safety_check
  3. language_detection

While rephrase must complete first, safety_check and language_detection are independent operations. Running them sequentially introduces avoidable latency.

Expected Behavior

After rephrase, run safety_check and language_detection concurrently.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions