adding parameters differently - Restore Point from here
Browse files- process_data.py +11 -0
process_data.py
CHANGED
|
@@ -16,6 +16,17 @@ from schema_classes import FarmActivities, Interactions, Trial, FarmActivitiesLi
|
|
| 16 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
| 17 |
client = OpenAI()
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
def generate_json(input_data, parameters):
|
| 21 |
"""
|
|
|
|
| 16 |
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
| 17 |
client = OpenAI()
|
| 18 |
|
| 19 |
+
# Parameters - The Levers and Flippers to be chosen
|
| 20 |
+
# Use this for reference for now then work backwards
|
| 21 |
+
parameters = {
|
| 22 |
+
'model_version': ['gpt-4o-2024-08-06', 'gpt-4o-2024-08-06'],
|
| 23 |
+
'input_modality': ['free-text-input', 'form-text-input'],
|
| 24 |
+
'json_nested': ['single-level-nested', 'no-nesting'],
|
| 25 |
+
'creation_style': ['single-JSON-creation', 'stepwise-JSON-creation'],
|
| 26 |
+
'pre_processing': ['yes', 'no'],
|
| 27 |
+
'pre_processing_specification': ['not_specified', 'summarization', 'otter.ai-summary', 'specific-field-extraction'],
|
| 28 |
+
'prompting_style': ['no_specific_style', 'example_driven', 'role_specific', 'step_by_step', 'error_detection'],
|
| 29 |
+
}
|
| 30 |
|
| 31 |
def generate_json(input_data, parameters):
|
| 32 |
"""
|