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

Qawtp 137 parametrize ia prompt #31

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

JoseAlvaradoCevallos
Copy link
Contributor

@JoseAlvaradoCevallos JoseAlvaradoCevallos commented Dec 2, 2024

Se añade la parametrización de los labels y el percentil con el que ejecutar el asistente.
La solución por la que se ha optado ha sido solicitarle al asistente que ignore de sus instrucciones principales, los labels y percentile establecidos y que utilice los enviados en el prompt

Testeado con un csv con labels variados y distintos a la anteriror pr para asegurarnos que es capaz de filtrar los labels que se le solicitan.

Se cumple parte de esta tarea tambien https://jira.tid.es/browse/QAWTP-141

@@ -134,6 +137,8 @@ def download_results(self, thread_id):
API_VERSION = "2024-10-01-preview"
AZURE_ENDPOINT = "https://chatgpt-qa-licenses.openai.azure.com/"
ASSISTANT_ID = "asst_yZPBn70DcKVh4YCRdYP10KVr"
LABELS = os.environ("LABELS")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing .get??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corregido

@davidgca davidgca self-requested a review December 2, 2024 13:58
Copy link
Collaborator

@pablodiazc pablodiazc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Probamos el E2E completo

@JoseAlvaradoCevallos JoseAlvaradoCevallos merged commit 7bd7a47 into master Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants