-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Conversation
import re | ||
import os | ||
import openai | ||
VARUN_KEY = os.getenv("OPENAI_API_KEY") |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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: " |
There was a problem hiding this comment.
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:==== |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: " |
There was a problem hiding this comment.
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:==== |
There was a problem hiding this comment.
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: " |
There was a problem hiding this comment.
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:==== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets remove this
Adding code for conscendi paper.