Skip to content

Commit

Permalink
Update medapp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudhendra committed Oct 16, 2024
1 parent 14b9b8b commit 0a60865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def retrieve_passages(query: str, index, embeddings: np.ndarray, video_data: Lis
def generate_answer(query: str, context: str) -> str:
try:
response = client.chat.completions.create(
model="gpt-4-0125-preview",
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "You are a helpful assistant that answers medical questions based on the provided context. Always ground your answers in the given context and be concise."},
{"role": "user", "content": f"Context: {context}\n\nQuestion: {query}\n\nAnswer:"}
Expand Down

0 comments on commit 0a60865

Please sign in to comment.