Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Jun 21, 2024
1 parent c569095 commit 74fbdfc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
11 changes: 0 additions & 11 deletions app/pipeline/chat/exercise_chat_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,6 @@ def _run_exercise_chat_pipeline(self, dto: ExerciseChatPipelineExecutionDTO, sho
)
self._add_relevant_chunks_to_prompt(retrieved_lecture_chunks)

retrieved_lecture_chunks = self.retriever(
chat_history=history,
student_query=query.contents[0].text_content,
result_limit=10,
course_name=dto.course.name,
course_id=dto.course.id,
problem_statement=problem_statement,
exercise_title=exercise_title,
)
self._add_relevant_chunks_to_prompt(retrieved_lecture_chunks)

self.callback.in_progress()

# Add the final message to the prompt and run the pipeline
Expand Down
1 change: 1 addition & 0 deletions app/pipeline/prompts/lecture_retrieval_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
Craft your response to closely reflect the style and content of university lecture materials.
Do not exceed 300 words.
Add keywords and phrases that are relevant to student intent.
You should create a slide like response to the student query.
"""

rewrite_student_query_prompt_with_exercise_context = """
Expand Down

0 comments on commit 74fbdfc

Please sign in to comment.