jina-ai / examples

Jina examples and demos to help you get started
https://docs.jina.ai
Apache License 2.0
455 stars 142 forks source link

[multires-lyrics-search] "TypeError: Cannot read property 'length' and 'map' of undefined" #350

Closed yiouyou closed 3 years ago

yiouyou commented 3 years ago

I'm trying to tweak multires-lyrics-search example to deal with chinese sentense. Here is what I've done:

  1. change pods/encode.yml
    !TextPaddlehubEncoder
    with:
    model_name: chinese-roberta-wwm-ext-large
    requests:
    on:
    ControlRequest:
      - !ControlReqDriver {}
    [SearchRequest, TrainRequest, IndexRequest]:
      - !EncodeDriver
        with:
          traversal_paths: ['c']
  2. change requirements.txt
    jina[hub,http]==0.9.16
    torch==1.7.1
    transformers==4.2.0
    requests==2.25.1
    pytest==6.2.1
    paddlehub==1.7.1
    paddlepaddle==1.8.5
  3. prepare chinese text (basically translate the name and lyrics of songs to chinese by google translate)
  4. run 'python app.py index' successfully
  5. run 'python app.py search' successfully
  6. run 'curl --request POST -d '{"top_k": 2, "mode": "search", "data": ["text:没有办法知道"]}' -H 'Content-Type: application/json' 'http://0.0.0.0:65481/api/search'', get back as below:
    {
    "requestId": "2e03c3f6-57e3-11eb-afe2-00155dabdd5c",
    "search": {
    "docs": [
      {
        "id": "f6db17e89d334605",
        "chunks": [
          {
            "id": "5162c61930f55b37",
            "weight": 1.0,
            "length": 1,
            "matches": [
              {
                "id": "c786f6141e906879",
                "weight": 1.0,
                "length": 4,
                "mimeType": "text/plain",
                "text": "21",
                "granularity": 1,
                "parentId": "c167946b50917635",
                "location": [
                  272,
                  290
                ],
                "offset": 18,
                "embedding": {
                  "dense": {
                    "buffer": "vFxEvx+URr5SNH++IRAKvv2+6zlOPEW8bUyePnPCOD+HxxA/3p/nPvvGhL56t9u+kZDpPMRXIj9UAsK9xqkvP2Olsb0NBTq+qz0GPJ8nqD437IO+7kJKvuTNS71bklu+oINLvoGoHz7vDDg/FE6nPgbbrL4n3CI//68muYzW6D62Zyg+l9hPP65MNr0qdJW+ARp+vpDcrL3MjTK/TxBtPrv5SL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zpL1+0Dk76ikIPmhzgL70AbS87grpvQwuU76SegQ/p0n6PiuAyL2iE26+4aWavkdj4r5L+9e+hapcPwvcbz41A/O+2RwkP33Xs74miQA+xlTHvnzJ0T3TDp4+oXXkPem8Ar9Wzwq/WshBPrOwHT+IQHe+aG3KPn+vH7+clQ+/vjmiPuif3L4+sY++F17MPtfbfL6ptrA+CpxtvDESgL18zCq/h5RTP+13fz4E7DU/LKROPxtYTT6bW2u+ygBCvflyCL1GT5O++uuHPY76C73ALqm+SigNv4Dg5D3EIiq+SqzMPoVNST3RUuY+bNdDPrD7Nr/jEuu+XGxBvtHL477KDHm+fnA7PwDJ3T1I5SO/GsmUvtdgT7911Qi9wx/MvaW5qD7mQp2+7yXHvsghkj7xMGM/AQR/vlR4Ez6zbkK+kmXIPq1oWL4/Qyg/Gs8gv4pkKj9QxFs+WsbfvdS/HT4HLQK+EkZ2PpXoH78izbe+4hjUPYP0UL5XLde97ykrvuZWKr9aTJW9rIn+vuVFsb6jXOO+iHonP0OgJD8Saeo+u9KwPt+/Hb5aDRg/P57uvjMZpb5xUCW+LF3AvsFSMD+G9fW9elmevi1gur4MOV8+Y3rTvkyXO77yHgC/X0pRvnpYIT4+k9K+tjMQv9HTDL8A6/m+LPSwPpP5lz5kCsc9bz9pPq951L4sJuU+UhK2Pl1eTb9zuym/HLsMP4piNb+cW5K+8fJ1vZb4bT5cKhM/uQtbvorJoT4Ed6o9jWqrvrIOlz0KM3S+MMuCPpkdK78qubs+0RE4vlAC5rxdUK4+n6suP7ft4z5ZR5c+dhYCPYMAWD5MmcM+Z3qiPvnjiL73tS0+iM8Mv5y0Fb/e/fS+xrsOvjffpL7DO82+kTq9PoYLEL+boUs+Yb8UPqQfuT7YYSE/oRUFv/tsSr8GTwg/K1o7P3LhJj84yea+cLL0Pg==",
                    "shape": [
                      1024
                    ],
                    "dtype": "<f4"
                  }
                },
                "score": {
                  "value": 7.0089135,
                  "opName": "NumpyIndexer",
                  "refId": "5162c61930f55b37"
                },
                "adjacency": 1,
                "contentHash": "bb90f7f108e9e789"
              },
    ...
              {
                "id": "6e0b715ae315d03d",
                "weight": 1.0,
                "length": 1,
                "mimeType": "text/plain",
                "text": "chant",
                "granularity": 1,
                "parentId": "0026739b5535fa29",
                "location": [
                  146,
                  168
                ],
                "offset": 14,
                "embedding": {
                  "dense": {
                    "buffer": "MUE4v65ZtryHTZ+9yLSLvUc/jD55Z5W+mT9JPjNjWD8tA8Q+fSAZPqr4az6g6AS/w5CpPv/JMj8BLQC/74LDPjiajb6GNC2+JUWzvsxwEj/AMk09nLjjvjnfPT2njDy9aOESvUjpvT4n1go/wBzuPtMXc77+4/o+hS7+veemCT9L6dc+22sWP2ikDzwdBZC+CAvfvgYG/r2lWVG/PZ5RPs8RPL+Wvwm/jWjGPUgBHT9okOS+2evZvsY1Lr91laE+BxdPu0+uBL/ZJfu+HcAEv5xhgj6Q6yC/tjEbv2/0CL8PA0u/QkwSPrnp1D3Cse2+C64Ru/TTBz/QjGQ/ucG9PSqJET/e3DS/VP0Cv3c85r5LkJQ+F8D3Pd0H+76v2Q8+ADZ9PrgRvj3T3DY/Z5yHvldQlj3Ar/K+4so8Pkr1ab6nFzu9z101PjHgD71rgdw+f7AgP1mmAD1uLzA/XL3GvfH2ND+Zl5S9V5dSPZz+ED8xiKs+onwrv/KJO73XE/K9EaY+vprCG77TDh4/YY8ZP0+H/r5OMCC/HtebPbUvFD4F+vQ+dd8cP8esgr6mpIC9nrArvnV4Fr4yJjq+TJroPkH2kL4o18a++fFjvkO6ADu9YD8+ySP4Ps7Fm74KVgU+eAWYvCPSfr75wTA/u/hQPX9nRj9mfjA/dDp6PT5Q/L5Q7w6/IEixvnTNFj/c6zu/+JNDPpzcqD6i8K6+6/ZCvXP10j4R69q+gYcTvgpmGj+2HW4+71aKvmwoij62TuW+E39kvYpoLT8853K+CFcaP4FxIT8H1A6/pBYEP0P3Ir8CvKg+R46FPsGG2D5gvvc+ePs9vpjPTL8gtMm+fPlJvopjwb49fGU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tRL5puV+81TtdPWbjhj0PG+S+es0CvzNdY72ccfW+E+wEPiZjL77gURK+vM8VP/2Khr4j5aA+adg+PnSAQ78G8Ce/MkifPqDJFb8X0dG9zIerPSJN8r7MANM+1C+evu5jrj6DQ5q9hNizvvpwKj4VDWe+68S2PmowwL60tSc/STQlvr46CT49rbI+tYwEP8R0Jz9wJPw+hb4Evvs7BT17Y7I+1lnZPuz3mr5kf8k+QjYKvz7io74W3JK+byehPfM5Zb6xsxU8Vr4gPudVzr6STXs+yKJCPsOXpz6N3y8/TL/qvqPSQb/Tw5c+FAARP5HQSD8a6Rm+Q03UPg==",
                    "shape": [
                      1024
                    ],
                    "dtype": "<f4"
                  }
                },
                "score": {
                  "value": 7.1135974,
                  "opName": "NumpyIndexer",
                  "refId": "5162c61930f55b37"
                },
                "adjacency": 1,
                "contentHash": "3b7851f6857070cb"
              }
            ],
            "mimeType": "text/plain",
            "text": "text:",
            "granularity": 1,
            "parentId": "f6db17e89d334605",
            "location": [
              0,
              11
            ],
            "embedding": {
              "dense": {
                "buffer": "o/VHv5WN5r6bdrq+T+2+vpUcHj7ecNm+8rWYPjk2TT/aIwo/6g2NPoCUrr2TP9u+xfRFPn+Xpj7POmK+jqrVPv9Xj75WlAu/nIecPWdZID9KCKI+17Lpu9xajr6aXeS+/4MDPtJJoD3GPAw/78ixPvrlSz1BZkQ/aLX1PbQA6z4Jmq0+pjUjP2fNGz67g7y+YEGuvoyvv71pFzq/eL4BvthfS788fvq+A0k4Pvv4AD++WYi+1UnTvlhQnb7iCw4/daHmPV0qnb7Vg0W/GqMfv2LkZz56aSG/d/YVv7MC176ntla/r0fNvS6hzT5CPYy+RZ6lvnuF9j79dF4/azHPPiLiTT4iOzC/0CblvkYejL06+4C+pCKQuxXxhL6bXca9VSEovlF+jr07ISI/DLgMv+9M7D41Ate+7Oxzvl71G74wcX09fnDDPhNlDzwzUrE+rqvQPtAuU72rVkQ/DB1Fvs0kHz8LK1i+aMGvPUcbBj93te8+hKEZv0f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78dw6/rziyvTiVxT4TdBU/X9K5PqRK/L68sg2/QWmKvkrZRL/SzLW+xl5dPyxiuL4Hqiy/+w4YPBOZTL+GwC8+KzJbPfQ7AT+CDWS+arwZv6BCXz4YGFE/vcQPv0cOMD6pnRO+TAqOPoN13L6HXzs/7Uu7vpzh3T4GgB8/InMUvQw3aD1LZiG/AF55vSz6Db99L6y+B17WPsAHwr0c3cq7qs0MP4JgOb98hVW+QL0nv5+E5b6rFTu/nIHhvV1jKz8lMw8/hEaFvGgXlj6tcJU+YguKvk1g4b7vWE66yGCuvl6NPD8+BiW+bd8Kv72N5L67TUC+CZcCvxuJSz1fNbC8tojHvc0Cyb42KBy/5BfDvhQB4r779Sm/iqZ4OlIXsL0l7/M9SwBVPkLvMb8JM+s+TR3xPiSWLL87AOa+xeYaPzzKGb9Z7tW+4iIQPYThBT728i0/N6JIvqUTnz7LGcI+cZVmvrb3TT5QVEk91NnkPjF4Fb9W1A4/7LobPmXZub1B+g4/rXY7P40DeT5CEZs+BACcPkEVxT09HSI+9rfxPk8plb5eysc+m3Mxv5n9k74R6Io+IOaqvdVYW77WdIa+c5CmPtQ1GL7Ba6A+JnarPjLICT/C7kE/V+Qov3w7Db/Dwu8+tK8APwW1Ej8IQNm+jjocPw==",
                "shape": [
                  1024
                ],
                "dtype": "<f4"
              }
            },
            "contentHash": "9b581a3859c022e8"
          }
        ],
        "weight": 1.0,
        "matches": [
          {
            "id": "5b23a3685182203c",
            "mimeType": "text/plain",
            "tags": {
              "SName": "\u4e0b\u6bd2"
            },
            "text": "\u6211\u68a6\u5230\u4e86\u8fd9\u4e2a\u3002\u8fd8\u670916\u5929\u3002\u73b0\u5728\u4f60 \u5728\u8fd9\u91cc\u3002\u6211\u7684\u5934\u8eba\u7740\u3002\u9664\u4e86\u4f60\u7684\u8eab\u4f53\u3002\u6795\u5728\u6211\u7684\u6795\u5934\u4e0b\u9762\u3002\u4f60\u662f\u6bd2\u836f\u3002\u5728\u6211\u7684\u8111\u6d77\u91cc\u65cb\u8f6c\u3002\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u4f60\u89c9\u5f97\u81ea\u5df1\u8fd8\u6d3b\u7740\u5417\uff1f\u5979\u8bf4\u3002\u90fd\u662f\u5669\u68a6\u3002\u5728\u4f60\u5b64\u72ec\u7684\u8111\u888b\u91cc\u65cb\u8f6c\u3002\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u5979\u8bf4\uff0c\u5206\u79bb\u7684\u4e16\u754c\u3002\u5206\u5f00\u7684\u3002\u4e0b\u6bd2\u3002\u4e0b\u6bd2\u3002\u8eab\u4f53\u67af\u840e\u4e86\u3002\u5c38\u4f53\u6b7b\u4e86\u3002\u662f\u65f6\u5019\u593a\u8d70\u751f\u547d\u4e86\u3002\u574f\u5230\u8981\u6b7b\u7684\u5730\u6b65\u3002\u66f4\u4e0d\u7528\u8bf4\u56db\u4e94\u4e2a\u4e86\u3002\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u4f60\u89c9\u5f97\u81ea\u5df1\u8fd8\u6d3b\u7740\u5417\uff1f\u5979\u8bf4\u3002\u90fd\u662f\u5669\u68a6\u3002\u5728\u4f60\u5b64\u72ec\u7684\u8111\u888b\u91cc\u65cb\u8f6c\u3002\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u5979\u8bf4\uff0c\u5206\u79bb\u7684\u4e16\u754c\u3002\u5206\u5f00\u7684\u3002\u4e0b\u6bd2\u3002\u4e0b\u6bd2\u3002\u4e0b\u6bd2\u3002\u8db4\u4e0b\u3002\u4e0b\u6bd2\u836f-\u4f60\u4e0d\u662f\u4e3a\u4e86\u6211\uff0c\u6211\u662f\u4e3a\u4e86\u4f60\u3002\u4e0b\u6bd2\u836f-\u4f60\u4e0d\u662f\u4e3a\u4e86\u6211\uff0c\u6211\u662f\u4e3a\u4e86\u4f60\u3002\u4e0b\u6bd2\u836f- \u4f60\u4e0d\u662f\u4e3a\u4e86\u6211\uff0c\u6211\u662f\u4e3a\u4e86\u4f60\u3002\u4e0b\u6bd2-\u4f60\u4e0d\u5728\u6211\u8eab\u8fb9\uff0c\u6c38\u8fdc\u4e0d\u5728\u6211\u8eab\u8fb9\u3002\u4f60\u4e0d\u4f1a\u4e3a\u6211\u800c\u6b7b\uff0c\u6211\u5df2\u7ecf\u4e3a\u4f60\u800c\u6b7b\u4e86\u3002\u4f60\u4e0d\u4f1a\u4e3a\u6211\u800c\u6b7b\uff0c\u6211\u5df2\u7ecf\u4e3a\u4f60\u800c\u6b7b\u4e86\u3002\u4f60 \u4e0d\u4f1a\u4e3a\u6211\u800c\u6b7b\uff0c\u6211\u5df2\u7ecf\u4e3a\u4f60\u800c\u6b7b\u4e86\u3002\u4f60\u4e0d\u4f1a\u6b7b\u7684\u3002\u4f60\u4e0d\u4f1a\u6b7b\u7684\u3002\u4f60\u4e0d\u4f1a\u6b7b\u7684\u3002\u4e0d\uff0c\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u4f60\u89c9\u5f97\u81ea\u5df1\u8fd8\u6d3b\u7740\u5417\uff1f\u5979\u8bf4\u3002\u90fd\u662f\u5669\u68a6\u3002\u5728\u4f60\u5b64\u72ec\u7684\u8111\u888b\u91cc\u65cb\u8f6c\u3002\u6b22\u8fce\u6765\u5230\u6211\u7684\u4e16\u754c\uff0c\u5979\u8bf4\u3002\u5979\u8bf4\uff0c\u5206\u79bb\u7684\u4e16\u754c\u3002\u5206\u5f00\u7684\u3002\u4e0b\u6bd2\u3002\u4e0b\u6bd2\u3002\u4e0b\u6bd2\u3002\u8db4\u4e0b\u3002",
            "score": {
              "value": 0.13004993,
              "opName": "MinRanker",
              "refId": "f6db17e89d334605"
            },
            "adjacency": 1,
            "contentHash": "782ac8ffba6bc0c3"
          },
    ...
          {
            "id": "9ca8ba905c98b40c",
            "mimeType": "text/plain",
            "tags": {
              "SName": "\u4e0a\u5e1d\u4e4b\u515a"
            },
            "text": "\u5728\u4e00\u6761\u7e41\u5fd9\u7684\u8857\u9053\u4e0a\u3002\u4e00\u4e2a\u4eba\u5750\u4e86\u4e0b\u6765\u3002\u5ffd\u89c6\u4e86\u4ea4\u901a\u7684\u58f0\u97f3\u3002\u6ca1\u6709\u6df7\u4e71\u3002\u6ca1\u6709\u75af\u72c2\u5c16\u53eb\u7684\u4eba\u7fa4\u3002\u611f\u8c22\u4e0a\u5e1d\u4ed6\u4eec\u7684\u6c89\u9ed8\u3002\u4f4e\u4e0b\u5934\u8d70\u8def\u3002\u4ed6\u4eec\u770b\u5230\u6211\u4eec\u5c31\u6765\u3002\u79f0\u4e4b\u4e3a\u660f\u7761\u3002\u8dd1\u6b65\u673a\u8f6c\u52a8\u3002\u5728\u4ed6\u4eec\u811a\u4e0b\u3002\u6211\u5e94\u8be5\u7948\u7977\u7ed3\u675f\u3002\u5feb\uff08\u5feb\uff09\uff0c\u5feb\uff08\u5feb\uff09\u3002\u6216\u8005\u6a2a\u6e21\u6012\u6d77\u3002\u5192\u98ce\u9669\u3002\u52c7\u6562\u5730\u3002\u6d77\u96be\u548c\u53db\u53d8\u88ad\u51fb\u3002\u653b\u51fb\u3002\u5728\u95f9\u9b3c\u7684\u95e8\u53e3\u3002\u4ece\u9633\u5149\u4e2d\u3002\u770b\u5230\u53e6\u4e00\u4e2a\u751f\u547d\u5728\u75db\u82e6\u4e2d\u6bc1\u706d\u3002\u5373\u4f7f\u662f\u5b69\u5b50\u4eec\u7684\u5047\u7b11\u3002\u4e3a\u7a7a\u865a\u548c\u5931\u843d\u7684\u68a6\u60f3\u5f00\u8f9f\u4e86\u4e00\u7247\u571f\u5730\u3002\u548c\u6211\u4f5c\u5bf9\u7684\u8054\u76df\u3002\u6211\u542c\u89c1\u4ed6\u8bf4\u3002\u8fd9\u4e0d\u503c\u5f97\u4e00\u534a\u7684\u52aa\u529b\u3002\u6216\u8005\u4f60\u4ed8\u51fa\u7684\u4ee3\u4ef7\u3002\u6211\u5e94\u8be5\u7948\u7977\u7ed3\u675f\u3002\u5feb\uff08\u5feb\uff09\uff0c\u5feb\uff08\u5feb\uff09\u3002\u6216\u8005\u6211\u5e94\u8be5\u4ef0\u671b\u5929\u7a7a\u3002\u544a\u8bc9\u4e0a\u5e1d\uff08\u4eb2\u7231\u7684\u4e0a\u5e1d\uff09\u3002\u522b\u5632\u7b11\u4e86\u3002\u5c31\u50cf\u6211\u4eec\u4eba\u7c7b\u7684\u5f31\u70b9\u4e00\u6837\u3002\u6211\u4eec\u7684\u5931\u8d25\u3002\u6211\u4eec\u5931\u8d25\u4e86\u5417\uff1f\u3002\u5728\u4e00\u6761\u6ca1\u6709\u5c3d\u5934\u7684\u8857\u9053\u4e0a\u884c\u8d70\u3002\u4e00\u6b21\u53c8\u4e00\u6b21\u7684\u5669\u68a6\u573a\u666f\u3002\u90fd\u7ef7\u7d27\u4e86\u7ef3\u5b50\u3002\u4e0d\u662f\u4e00\u4e2a\u6709\u7740\u6301\u4e45\u7684\u5e0c\u671b\u7684\u4eba\u3002\u5230\u5904\u90fd\u662f\u8bc1\u636e\u3002\u5728\u62a5\u644a\u653e25\u7f8e\u5206\u3002\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u9605\u8bfb\u4e86\u3002\u6211\u5e94\u8be5\u7948\u7977\u7ed3\u675f\u3002\u5feb\uff08\u5feb\uff09\uff0c\u5feb\uff08\u5feb\uff09\u3002\u6216\u8005\u6211\u5e94\u8be5\u62ac\u5934\u9762\u5bf9\u4e91\u5c42\u3002\u6073\u6c42\uff08\u6073\u6c42\uff09\u3002\u4ed6\u4eec\u7684\u4ec1\u6148\u3002\u4f46\u5c31\u50cf\u4e91\u6735\u4e00\u6837\u3002\u4ed6\u4eec\u4f1a\u4e0b\u96e8\u7684\u3002\u5148\u8f7b\u8f7b\u5730\uff08\u8f7b\u8f7b\u5730\uff09\u548c\u751c\u871c\u5730\uff08\u5982\u6b64\u751c\u871c\u5730\uff09\u3002\u76f4\u5230\u4ed6\u4eec\u8ba9\u6211\u6c89\u9ed8\u3002\u4f34\u968f\u7740\u4e00\u9635\u96f7\u58f0\uff08\u96f7\u58f0\uff09\u548c\u95ea\u7535\uff08\u95ea\u7535\uff09\u3002\u65e0\u52a9\u7684\u5c16\u53eb\u3002\u6211\u77e5\u9053\u4e0a\u5e1d\u4e00\u5b9a\u540c\u610f\u3002\u8fd9\u662f\u770b\u7535\u5f71\u6700\u7cdf\u7cd5\u7684\u90e8\u5206\u3002\u8fd9\u662f\u770b\u7535\u5f71\u6700\u7cdf\u7cd5\u7684\u90e8\u5206\u3002\u8fd9\u662f\u770b\u7535\u5f71\u6700\u7cdf\u7cd5\u7684\u90e8\u5206\u3002\u8fd9\u662f\u6700\u7cdf\u7cd5\u7684\u90e8\u5206\u3002\u5979\u5728\u5c16\u53eb\u3002\u4e0a\u5e1d\u4e00\u5b9a\u540c\u610f\u4e86\u3002\u65e0\u52a9\u662f\u6700\u7cdf\u7cd5\u7684\u3002\u4e00\u5b9a\u662f\u6700\u96be\u770b\u7684\u90e8\u5206\u3002\u6700\u7cdf\u7cd5\u7684\u662f\u770b\u7535\u89c6\u3002",
            "score": {
              "value": 0.11926709,
              "opName": "MinRanker",
              "refId": "f6db17e89d334605"
            },
            "adjacency": 1,
            "contentHash": "d6ee70f9d2d5bb00"
          }
        ],
        "mimeType": "text/plain",
        "text": "text:\u6ca1\u6709\u529e\u6cd5\u77e5\u9053",
        "contentHash": "6dbba5670df1e560"
      }
    ]
    },
    "status": {},
    "queryset": [
    {
      "name": "SliceQL",
      "parameters": {
        "end": 2.0,
        "traversal_paths": [
          "c",
          "r"
        ],
        "priority": 1.0,
        "start": 0.0
      },
      "priority": 1
    },
    {
      "name": "VectorSearchDriver",
      "parameters": {
        "method": "query",
        "top_k": 2.0,
        "priority": 1.0,
        "executor": null,
        "fill_embedding": false,
        "traversal_paths": [
          "r",
          "c"
        ]
      },
      "priority": 1
    }
    ],
    "routes": [
    {
      "pod": "gateway",
      "podId": "c58c1a58-57e2-11eb-afe2-00155dabdd5c",
      "startTime": "2021-01-16T10:11:20.613417Z",
      "endTime": "2021-01-16T10:12:43.009817Z"
    },
    ...
    {
      "pod": "gateway",
      "podId": "c58c1a58-57e2-11eb-afe2-00155dabdd5c",
      "startTime": "2021-01-16T10:12:43.009783Z"
    }
    ]
    }

    'search' log as below:

        gateway@20005[I]:input tcp://0.0.0.0:59455 (PULL_CONNECT) output tcp://0.0.0.0:46453 (PUSH_CONNECT) control over ipc:///tmp/tmpn_6h4h0h (PAIR_BIND)
        gateway@20005[I]:prefetching 50 requests...
        gateway@20005[W]:if this takes too long, you may want to take smaller "--prefetch" or ask client to reduce "--request-size"
        gateway@20005[I]:prefetching 50 requests takes 0 seconds (0.00s)
        gateway@20005[I]:send: 0 recv: 0 pending: 0
    chunk_seg/ZEDRuntime@19898[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸⚐
    chunk_seg/ZEDRuntime@19898[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 645 Bytes
    tf_encode/ZEDRuntime@19904[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸⚐
    [2021-01-17 17:57:51,038] [    INFO] - Load pretraining parameters from /home/sz/.paddlehub/modules/chinese_roberta_wwm_ext_large/assets/params.
    [2021-01-17 17:57:51,046] [    INFO] - Dataset is None or it has not any labels, label map = {}
    [2021-01-17 17:57:51,062] [    INFO] - Checkpoint dir: ckpt_20210117175751
    [2021-01-17 17:58:05,696] [    INFO] - PaddleHub predict start
    [2021-01-17 17:58:05,696] [    INFO] - Load the best model from ckpt_20210117175751/best_model
    /mnt/d/py37-sz-lyrics/lib/python3.7/site-packages/paddle/fluid/executor.py:1093: UserWarning: There are no operators in the program to be executed. If you pass Program manually, please use fluid.program_guard to ensure the current Program is being used.
    warnings.warn(error_info)
    [2021-01-17 17:58:35,121] [    INFO] - Try loading checkpoint from ckpt_20210117175751/ckpt.meta
    [2021-01-17 17:58:35,121] [    INFO] - PaddleHub model checkpoint not found, start from scratch...
    [2021-01-17 17:58:49,305] [    INFO] - PaddleHub predict finished.
    tf_encode/ZEDRuntime@19904[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 828 Bytes
    chunk_idx/head/ZEDRuntime@19949[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸⚐
    chunk_idx/head/ZEDRuntime@19949[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 4.9 KB
    chunk_idx/1/ZEDRuntime@19961[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/1/ZEDRuntime▸⚐
    chunk_idx/2/ZEDRuntime@19969[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/2/ZEDRuntime▸⚐
    chunk_idx/3/ZEDRuntime@19977[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/3/ZEDRuntime▸⚐
    chunk_idx/4/ZEDRuntime@19985[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/4/ZEDRuntime▸⚐
    chunk_idx/1/ZEDRuntime@19961[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 5.0 KB
    chunk_idx/tail/ZEDRuntime@19955[I]:recv SearchRequest (1/4 parts) from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/1/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸⚐
    NumpyIndexer@19985[S]:memmap is enabled for ./workspace/chunk_compound_indexer-4/vec.gz
    NumpyIndexer@19969[S]:memmap is enabled for ./workspace/chunk_compound_indexer-2/vec.gz
    NumpyIndexer@19977[S]:memmap is enabled for ./workspace/chunk_compound_indexer-3/vec.gz
    NumpyIndexer@19985[I]:indexer size: 7
    NumpyIndexer@19969[I]:indexer size: 3
    NumpyIndexer@19977[I]:indexer size: 7
    BinaryPbIndexer@19977[I]:indexer size: 7
    chunk_idx/3/ZEDRuntime@19977[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 5.0 KB
    BinaryPbIndexer@19985[I]:indexer size: 7
    BinaryPbIndexer@19969[I]:indexer size: 3
    chunk_idx/tail/ZEDRuntime@19955[I]:recv SearchRequest (2/4 parts) from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/3/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸⚐
    chunk_idx/2/ZEDRuntime@19969[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 5.0 KB
    chunk_idx/tail/ZEDRuntime@19955[I]:recv SearchRequest (3/4 parts) from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/2/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸⚐
    chunk_idx/4/ZEDRuntime@19985[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 5.0 KB
    chunk_idx/tail/ZEDRuntime@19955[I]:recv SearchRequest (4/4 parts) from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/4/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸⚐
    chunk_idx/tail/ZEDRuntime@19955[I]:#sent: 0 #recv: 4 sent_size: 0 Bytes recv_size: 45.3 KB
    ranker/ZEDRuntime@19993[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/1/ZEDRuntime▸chunk_idx/2/ZEDRuntime▸chunk_idx/3/ZEDRuntime▸chunk_idx/4/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸ranker/ZEDRuntime▸⚐
    ranker/ZEDRuntime@19993[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 30.4 KB
    doc_idx/ZEDRuntime@19999[I]:recv SearchRequest  from gateway▸chunk_seg/ZEDRuntime▸tf_encode/ZEDRuntime▸chunk_idx/head/ZEDRuntime▸chunk_idx/1/ZEDRuntime▸chunk_idx/2/ZEDRuntime▸chunk_idx/3/ZEDRuntime▸chunk_idx/4/ZEDRuntime▸chunk_idx/tail/ZEDRuntime▸ranker/ZEDRuntime▸doc_idx/ZEDRuntime▸⚐
    doc_idx/ZEDRuntime@19999[I]:indexer size: 50
    doc_idx/ZEDRuntime@19999[I]:#sent: 0 #recv: 1 sent_size: 0 Bytes recv_size: 30.8 KB
        gateway@20005[I]:#sent: 1 #recv: 1 sent_size: 714 Bytes recv_size: 37.1 KB
  7. go to static folder, then run 'python -m http.server'
  8. But when typing '没有办法知道', there is no response on web and when click F12, get errors as below: image

When looking up the problem, I can't find the place to define 'map' and 'length'. Need some help to fix the issue.

Thanks!

JoanFM commented 3 years ago

So to have a clear understanding, do u get results when querying without using http.server option?

yiouyou commented 3 years ago

So to have a clear understanding, do u get results when querying without using http.server option?

Yes, by using 'curl' command line, I can get the results.

yiouyou commented 3 years ago

Some update:

It seems, when typing query, most of time, it won't work, occasionally it will work (show as below). image

JoanFM commented 3 years ago

according to the description, the problem seems to be with the http.server option. that is just a custom component to show results in a nice way. It may not be ready to work with Chinese language.

It would be good if someone could adapt that to work with Chinese language, but that is not a component of Jina

JoanFM commented 3 years ago

Hello @yiouyou ,

Since this component is not a core element of Jina (it is just a helper to show results) we cannot guarantee it works with any custom input. I will close the issue, but keep in mind that we will welcome any external contribution that can adapt this front end component to work with Chinese language. Otherwise you are welcome to adapt it to your own custom design or web component