OSM: slight adjustment to result instructions

This commit is contained in:
projectmoon 2024-09-17 22:43:54 +00:00
parent fc00abe030
commit 3477d972ce
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# OpenStreetMap Tool
**0.5.1:**
- Remove instruction to prioritize nodes over ways in search results.
**0.5.0:**
- Support Way results. This makes searching much more accurate and
useful. Many map features are marked as "ways" (shapes on the map)

9
osm.py
View File

@ -2,7 +2,7 @@
title: OpenStreetMap Tool
author: projectmoon
author_url: https://git.agnos.is/projectmoon/open-webui-filters
version: 0.5.0
version: 0.5.1
license: AGPL-3.0+
required_open_webui_version: 0.3.21
"""
@ -62,10 +62,8 @@ def detailed_instructions(tag_type_str: str) -> str:
"Only use relevant results. If there are no relevant results, "
"say so. Do not make up answers or hallucinate. "
f"\n\n{NO_CONFUSION}\n\n"
"The primary results are below. "
"Remember that the CLOSEST result is first, and you should use "
"that result first. "
"Prioritize OSM **nodes** over **ways** and **relations**.\n\n"
"that result first.\n\n"
"The results (if present) are below, in Markdown format."
)
@ -89,8 +87,7 @@ def simple_instructions(tag_type_str: str) -> str:
"say so. Do not make up answers or hallucinate. "
"Make sure that your results are in the actual location the user is talking about, "
"and not a place of the same name in a different country."
"The primary results are below. "
"Prioritize OSM **nodes** over **ways** and **relations**."
"The search results are below."
)
def way_has_info(way):