Skip to content

Commit

Permalink
add benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kore committed Nov 28, 2024
1 parent 8715fc1 commit f6821ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions health_rec/services/rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ def _filter_by_location(
"""Filter services by location and radius."""
filtered_services = []
for service in services:
if service.metadata.get("Latitude") and service.metadata.get("Longitude"):
if service.metadata.get("latitude") and service.metadata.get("longitude"):
service_location = (
float(service.metadata["Latitude"]),
float(service.metadata["Longitude"]),
float(service.metadata["latitude"]),
float(service.metadata["longitude"]),
)
distance = _calculate_distance(service_location, location)
if distance <= radius:
Expand Down

0 comments on commit f6821ad

Please sign in to comment.