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.
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!