Skip to content

Commit

Permalink
small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ncorriveau committed Jul 24, 2024
1 parent 16e267c commit 613accc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/app/api_v1/endpoints/appointments.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ async def analyze_appointment(appt_rqt: ApptRqt, background_tasks: BackgroundTas
context = loader.load_data()
text = " ".join([doc.text for doc in context])

# check if response in redis cache first
cache_key = create_hash_id(text, {"filename": appt_rqt.data_location})
encoded_info = await get_cached_data(cache_key)
info = json.loads(encoded_info) if encoded_info else None
Expand Down Expand Up @@ -311,7 +312,7 @@ async def get_appointments(user_id: int):

client = AsyncOpenAI()

context = SimpleDirectoryReader("/Users/nickocorriveau/dev/wilson/data").load_data()
context = SimpleDirectoryReader("../data").load_data()
appt = AppointmentAnalysis(client, context)

logger.info("Starting timer")
Expand Down

0 comments on commit 613accc

Please sign in to comment.