Skip to content
GitHub

Troubleshooting

Common issues and how to fix them.


Cause: You haven’t registered an evaluator or misspelled its name.

Solution:

from lexigram.ai.evaluation import EvaluationProvider
# Ensure it's registered in the module

Cause: Embedding provider not configured or API key missing.

Solution:

Terminal window
# Configure embedding model
export LEX_AI_EVALUATION__EMBEDDING_MODEL="text-embedding-3-small"

Cause: Score never passes the threshold (default 0.8).

Solution:

from lexigram.ai.evaluation.config import EvaluationConfig
config = EvaluationConfig(default_threshold=0.5)
EvaluationModule.configure(config)

Cause: Too many samples or evaluator taking too long.

Solution:

config = EvaluationConfig(timeout_seconds=120)
# Or limit max_samples
config = EvaluationConfig(max_samples=50)

  • enable verbose logging for the evaluation package
  • check EvaluationRunContext for detailed error info
  • verify evaluator type matches your metric needs

  • check the evaluation docs
  • open an issue on GitHub
  • review example tests in tests/