Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
panda666x opened this issue Dec 14, 2024 · 3 comments
Open

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

panda666x opened this issue Dec 14, 2024 · 3 comments

Comments

@panda666x
Copy link

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
Copy link
Author

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
Copy link
Member

@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
Copy link
Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants