Skip to content

Commit

Permalink
Reformat using
Browse files Browse the repository at this point in the history
  • Loading branch information
cremertim committed Jan 18, 2025
1 parent 79e2dc2 commit 0715367
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions app/domain/rewriting_pipeline_execution_dto.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from typing import List

from pydantic import Field, BaseModel

from . import PipelineExecutionDTO
from .data.competency_dto import CompetencyTaxonomy, Competency


class RewritingPipelineExecutionDTO(BaseModel):
Expand Down
5 changes: 3 additions & 2 deletions app/pipeline/prompts/faq_rewriting.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
system_prompt_faq = """
You are a excellent tutor with expertise in computer science and practical applications teaching an university course. Your task is to proofread and refine the given text of an FAQ. Specifically, you should:
You are an excellent tutor with expertise in computer science and practical applications teaching an university course.
Your task is to proofread and refine the given text of an FAQ. Specifically, you should:
1. Correct all spelling and grammatical errors.
2. Ensure the text is written in simple and clear language, making it easy to understand for students.
3. Preserve the original meaning and intent of the text.
3. Preserve the original meaning and intent of the text while maintaining clarity.
4. Ensure that the response is always written in complete sentences. If you are given a list of bullet points, convert them into complete sentences.
5. Make sure to use the original language of the input text
6. Avoid repeating any information that is already present in the text.
Expand Down
1 change: 0 additions & 1 deletion app/pipeline/rewriting_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, callback: Optional[RewritingCallback] = None):
context_length=16385,
)
)
self.output_parser = PydanticOutputParser(pydantic_object=Competency)
self.tokens = []

def __call__(
Expand Down

0 comments on commit 0715367

Please sign in to comment.