Skip to content

[LLM experiment] Cloud cover not passed on in CQL2 query #8

Open
@j08lue

Description

@j08lue

The semantic search bot adds some CQL2 filters to the query that

payload:

{"return_search_params_only":true,"query":"cloud-free sentinel-2 over london may 2025","limit":10}

response:

{
    "results": {
        "items": null,
        "search_params": {
            "max_items": 20,
            "collections": [
                "sentinel-2-l2a",
                "sentinel-2-c1-l2a",
                "sentinel-2-pre-c1-l2a",
                "sentinel-2-l1c"
            ],
            "datetime": "2025-05-01/2025-05-31",
            "filter": {
                "op": "and",
                "args": [
                    {
                        "op": "lte",
                        "args": [
                            {
                                "property": "eo:cloud_cover"
                            },
                            10
                        ]
                    }
                ]
            },
            "intersects": {
               ...

passed to the STAC API when I submit the query:

{"datetime":"2025-05-01T00:00:00.000Z/2025-05-31T00:00:00.000Z","intersects":{"type":"MultiPolygon","coordinates":[...],"limit":20,"collections":["sentinel-2-l2a","sentinel-2-c1-l2a","sentinel-2-pre-c1-l2a","sentinel-2-l1c"]}

Note that the filter objects are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions