Skip to content

[BUG] QdrantVectorStore Bad request: Index required but not found for pathSegments.5 #10365

@rossdonald

Description

@rossdonald

Problem (one or two sentences)

ERR [Extension Host] [QdrantVectorStore] Failed to delete points by file paths:
Bad request: Index required but not found for "pathSegments.5" of one of the following types: [keyword].
Help: Create an index for this key or use a different filter.

The Qdrant collection only has indexes for pathSegments.0 through pathSegments.4 (5 indexes), but the file path being deleted has 6 segments, requiring pathSegments.5.

Cause:

  • In _createPayloadIndexes() the loop creates indexes for 5 segments
  • The file webview-ui\src\i18n\locales\hi\welcome.json has 6 path segments
  • Qdrant requires a keyword index for any field used in a filter, so the delete operation fails

Context (who is affected and when)

Users using codebase indexing

Reproduction steps

Index a file with a path with greater than 5 parts e.g.
c:\repos\Roo-Code\webview-ui\src\i18n\locales\hi\welcome.json

Expected result

No error

Actual result

An error

Variations tried (optional)

No response

App Version

3.38.0

API Provider (optional)

None

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

{
    "error": "Bad Request",
    "status": 400,
    "details": {
        "status": {
            "error": "Bad request: Index required but not found for \"pathSegments.5\" of one of the following types: [keyword]. Help: Create an index for this key or use a different filter."
        },
        "time": 0.000025748
    },
    "collection": "ws-b6546aa926a1d2e0",
    "fileCount": 1,
    "samplePaths": [
        "c:\\repos\\Roo-Code\\webview-ui\\src\\i18n\\locales\\hi\\welcome.json"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions