Reduce GpfDescribeType output - #189
Open
LionelZoubritzky-IGN wants to merge 5 commits into
Open
LionelZoubritzky-IGN wants to merge 5 commits into
LionelZoubritzky-IGN wants to merge 5 commits into
Conversation
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
August 17, 2026 12:06
8b09cc1 to
a553fe5
Compare
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
September 21, 2026 12:35
a553fe5 to
dd241b9
Compare
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
September 30, 2026 10:33
dd241b9 to
e7986ce
Compare
LionelZoubritzky-IGN
changed the base branch from
main
to
136/more-spatial_extras
September 30, 2026 10:34
LionelZoubritzky-IGN
changed the base branch from
136/more-spatial_extras
to
closedWorldAnnotation
September 30, 2026 10:52
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
September 30, 2026 13:19
e7986ce to
744e0bf
Compare
mborne
approved these changes
Sep 30, 2026
esgn
force-pushed
the
closedWorldAnnotation
branch
from
October 1, 2026 13:26
95b2670 to
5378e59
Compare
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
October 1, 2026 14:05
744e0bf to
24b6bb8
Compare
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
2 times, most recently
from
October 1, 2026 15:01
ece1d1b to
3523b4a
Compare
LionelZoubritzky-IGN
force-pushed
the
split-describe-tool
branch
from
October 2, 2026 12:35
3523b4a to
623eea1
Compare
Member
|
Ok so you're removed : At type level :
For non geometric properties:
For non geometric properties enums (
@mborne => I'd like your opinion here based on the tests you've conducted on your part. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #142, the output of GpfDescribeType is very lengthy. In practice, the LLM reads the output of GpfDescribeType into a file, then
greps it for the terms it is looking for... so, the full schema seems to be a bit too much for it to handle.This PR is a compromise: we provide a summarized schema, with only:
typename(currently missing because of the OGC API Features specifications).oneOf) when it exists. Only theconstfield is kept.polygon,point-or-multipoint,any, ... extracted from theformatfield of the store schema, removed the "geometry-" prefix). When no geometry or multiple geometries without a "primary-geometry", this field is undefined.Note that this is rather close to what we had pre-#142, but the URL is a nice bonus because now the LLM can fetch more info if need be. In the end, what's missing from the returned output and only present in the schema is:
const, which is vastly redundant with the name of the property /constand with its description.descriptionof theconstfields. Those may be relevant in some contexts, but I haven't seen it used in my tests so far.I initially intended to provide a second tool (GpfDescribeTypeDetails added in 902d478 and removed in 8609708) but I observed during testing that this tool was never called, even when querying something as niche as "Fonds de taille" or "Darce", which never appears in the output of GpfDescribeTool. GpfSearchTypes is actually enough to orient the LLM towards the right type, and GpfDescribeType is basically only here to provide the name of the properties and to give precisions on what is described by what, to prevent the LLM from hallucinating answers. So, the LLM never really needs the additional data provided by GpfDescribeTypeDetails; and if it ever does, it can still fetch the full schema by URL.