Skip to content

Feature/geo aware place retrieval - #16

Open
pepecanomanuelclaver wants to merge 3 commits into
mainfrom
feature/geo-aware-place-retrieval
Open

Feature/geo aware place retrieval#16
pepecanomanuelclaver wants to merge 3 commits into
mainfrom
feature/geo-aware-place-retrieval

Conversation

@pepecanomanuelclaver

Copy link
Copy Markdown
Collaborator

Hi @Gerson-datacation , find here the pr for the geo-location tool.

Added geo-aware ranking as a retrieval method (it's qwen_hybrid_geo).

Pages get geocoded once via just geocode-pages (1. LLM picks up the name and stored in page_locations, 2. nominatim turns into latitude and longitude).

When querying, if it name's a place (checked with the llm), we rescale each candidate chunk's score by distance to it. Far ones never get deleted fully.

The existing qwen_hybrid retriever is plugged into eval like any other method.

Added tests for the distance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant