Geolocation in RAG docs

Hello! I am trying to build an email autoresponder workflow where the agent will receive questions via form including city and postcode. The agent is connected to a RAG system with multiple case studies from different cities, and it’s job is to compose a response including information from the nearest case study to the city submitted via the form.

All working if the location submitted via form is explicitly mentioned in RAG docs, but otherwise the agent is incapable of understanding what the nearest city would be.

Thanks so much in advance guys!!!

1 Like

Do you have the geolocation attached as metadata to the vectors? In that case (and if your db supports this) you could limit results first with metadata and continue vector serach on similarity of the actual case study. Maybe you could also tell us which vector db you are using? I havent done something similar but sounds like an interesting problem!

1 Like

Thanks for the reply Julian! To your questions

  • We don´t have metadata attached to the vectors, case studies have been uploaded only with the city
  • We are using Supabase

But your idea could definitely be a winner, we will check and report :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.