Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Evaluation saves traces to Default Project despite having set the OPIK_PROJECT_NAME env variable #524

Open
1 of 4 tasks
SrBliss opened this issue Oct 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SrBliss
Copy link

SrBliss commented Oct 31, 2024

Willingness to contribute

No. I can't contribute a fix for this bug at this time.

What component(s) are affected?

  • Python SDK
  • Opik UI
  • Opik Server
  • Documentation

Opik version

  • Opik version: 1.0.3

Describe the problem

Traces generated when calling the evaluate method are saved to the Default Project despite having set the OPIK_PROJECT_NAME environment variable

Reproduction steps

Code and output:

SWEEP_ID = "06"

# Project to track evaluation traces
os.environ["OPIK_PROJECT_NAME"] = f"{PROJECT_NAME}-{SWEEP_ID}"

for i, prompt in enumerate(system_prompts):
    SYSTEM_PROMPT = prompt
    experiment_config = {"system_prompt": SYSTEM_PROMPT, "model": "gpt-3.5-turbo"}
    experiment_name = f"comet-chatbot-{SWEEP_ID}-{i}"

    res = evaluate(
        experiment_name=experiment_name,
        dataset=dataset,
        experiment_config=experiment_config,
        task=evaluation_task,
        scoring_metrics=[hallucination_metric,
                         answerrelevance_metric]
    )

Evaluation:   0%|          | 0/5 [00:00<?, ?it/s]OPIK: Started logging traces to the "Default Project" project at https://www.comet.com/opik/rodrigom-comet/projects/.
@SrBliss SrBliss added the bug Something isn't working label Oct 31, 2024
@jverre
Copy link
Collaborator

jverre commented Oct 31, 2024

Thanks @SrBliss, indeed it should work as you described. We'll look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants