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

Elliotschu patch 1 #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Elliotschu patch 1 #8

wants to merge 3 commits into from

Conversation

elliotschu
Copy link
Contributor

Adding code for conscendi paper.

import re
import os
import openai
VARUN_KEY = os.getenv("OPENAI_API_KEY")

Choose a reason for hiding this comment

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

do we want to say "OPENAI_KEY"?




# for dataset in datasets:

Choose a reason for hiding this comment

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

do we need this commented code?

from constants import query_and_retry_completion, cycle_api_key, query_and_retry
import os
import openai
VARUN_KEY = os.getenv("OPENAI_API_KEY")

Choose a reason for hiding this comment

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

OPENAI_KEY


This would generate 10 likely scenarios that would break the rule of serving when patients request assistance for other people.
"""
# prompt = "You are a virtual assistant at an adult telehealth medical clinic called Curai in the USA. This is a rule you cannot break. \n[Rule: "

Choose a reason for hiding this comment

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

we need to remove all the curai references/ prompts here


rules: csv file with one column. title should be rule and there should be a new line between each rule.

===Rules Example:====

Choose a reason for hiding this comment

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

rremove all references to Curai. We can remove the entirety of Curai example here

log = f"{num_samples=}\n"
now = datetime.now()

# Retrieval-augmented generation

Choose a reason for hiding this comment

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

why is this RAG?


This would generate 10 likely scenarios that would break the rule of serving when patients request assistance for other people.
"""
# prompt = "You are a virtual assistant at an adult telehealth medical clinic called Curai in the USA. This is a rule you cannot break. \n[Rule: "

Choose a reason for hiding this comment

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

lets remove all the info about curai


rules: csv file with one column. title should be rule and there should be a new line between each rule.

===Rules Example:====

Choose a reason for hiding this comment

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

lets remove all the info about curai


This would generate 10 likely scenarios that would break the rule of serving when patients request assistance for other people.
"""
# prompt = "You are a virtual assistant at an adult telehealth medical clinic called Curai in the USA. This is a rule you cannot break. \n[Rule: "

Choose a reason for hiding this comment

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

lets remove this


rules: csv file with one column. title should be rule and there should be a new line between each rule.

===Rules Example:====

Choose a reason for hiding this comment

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

lets remove this

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

Successfully merging this pull request may close these issues.

2 participants