Skip to content

Commit

Permalink
Remove debug print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelOwenDyer committed Aug 9, 2024
1 parent 97d4c24 commit 15c5a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/pipeline/competency_extraction_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,18 @@ def __call__(
prompt = system_prompt.format(
taxonomy_list=taxonomy_options,
course_description=dto.course_description,
n=dto.max_n,
max_n=dto.max_n,
)
prompt = PyrisMessage(
sender=IrisMessageRole.SYSTEM,
contents=[TextMessageContentDTO(text_content=prompt)],
)

self.callback.in_progress("Starting competency extraction")

response = self.request_handler.chat(
[prompt], CompletionArguments(temperature=0.4)
)
response = response.contents[0].text_content

print(f"Received response from OpenAI: {response}")

generated_competencies: list[Competency] = []

# Find all competencies in the response
Expand Down
3 changes: 2 additions & 1 deletion app/pipeline/prompts/competency_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@
Here is the provided course description: {course_description}
Respond with up to {n} competencies extracted from the course description, each in JSON format, split by two newlines.
Respond with up to {max_n} competencies extracted from the course description,
each in JSON format, split by two newlines.
"""

0 comments on commit 15c5a51

Please sign in to comment.