Skip to content

Elliotschu patch 1#8

Open
elliotschu wants to merge 3 commits intomainfrom
elliotschu-patch-1
Open

Elliotschu patch 1#8
elliotschu wants to merge 3 commits intomainfrom
elliotschu-patch-1

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