Unable to store Japanese text in Qdrant on Windows environment #8

Open
opened 2024-12-14 11:15:04 +00:00 by panda666x · 3 comments
panda666x commented 2024-12-14 11:15:04 +00:00 (Migrated from github.com)

While I can successfully store and retrieve English and other Latin-based characters, I encounter timeout errors when trying to store Japanese text. After investigating the issue, it appears that character encoding problems are causing the program to hang.

While I can successfully store and retrieve English and other Latin-based characters, I encounter timeout errors when trying to store Japanese text. After investigating the issue, it appears that character encoding problems are causing the program to hang.
panda666x commented 2024-12-15 04:27:01 +00:00 (Migrated from github.com)

The issue can be resolved by configuring the PYTHONIOENCODING environment variable in the MCP server settings.

{
  "qdrant": {
    "command": "uvx",
    "args": [
      "mcp-server-qdrant", 
      "--qdrant-url", 
      "http://localhost:6333",
      "--qdrant-api-key", 
      "your_api_key",
      "--collection-name",
      "your_collection_name"
    ],
    "env": {
        "PYTHONIOENCODING": "utf-8" 
    }
  }
}
The issue can be resolved by configuring the PYTHONIOENCODING environment variable in the MCP server settings. ``` { "qdrant": { "command": "uvx", "args": [ "mcp-server-qdrant", "--qdrant-url", "http://localhost:6333", "--qdrant-api-key", "your_api_key", "--collection-name", "your_collection_name" ], "env": { "PYTHONIOENCODING": "utf-8" } } } ```
kacperlukawski commented 2024-12-17 17:00:18 +00:00 (Migrated from github.com)

@panda666x Thanks for providing the answer! Could you please describe your env? At least the OS would be helpful. I'd love to reproduce it!

@panda666x Thanks for providing the answer! Could you please describe your env? At least the OS would be helpful. I'd love to reproduce it!
panda666x commented 2024-12-17 21:38:34 +00:00 (Migrated from github.com)

OS is Windows 11. Also, this might be a Japan-specific issue. In Japan, the default character encoding of the OS appears to be Shift-JIS.

OS is Windows 11. Also, this might be a Japan-specific issue. In Japan, the default character encoding of the OS appears to be Shift-JIS.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Aygents/mcp-server-qdrant#8
No description provided.