infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
22.79k stars 2.23k forks source link

[Bug]: httpapi problem http://127.0.0.1:9380/api/v1/retrieval #3147

Closed xuchunhua-com closed 1 week ago

xuchunhua-com commented 1 week ago

Is there an existing issue for the same bug?

Branch name

v0.13.0

Commit ID

v0.13.0

Other environment information

No response

Actual behavior

httpapi problem http://127.0.0.1:9380/api/v1/retrieval

Expected behavior

No response

Steps to reproduce

curl --request POST \
     --url http://127.0.0.1:9380/api/v1/retrieval \
     --header 'Content-Type: application/json' \
     --header 'Authorization: ragflow-M5ZTBjZTcyODdhOTExZWZiNTk1MDI0Mm' \
     --data '
     {
          "question": "What is advantage of ragflow?",
          "dataset_ids": ["b2a62730759d11ef987d0242ac120004"],
          "document_ids": ["77df9ef4759a11ef8bdd0242ac120004"]
     }'
{"data":null,"retcode":100,"retmsg":"IndexError('list index out of range')"}

Additional information

No response

Feiue commented 1 week ago

Maybe you need to add Bearer after Authorization. Or please update your image to the dev version or use the latest code from GitHub.