ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: knowledge graph not working, error NO API on aliyuncs,com

Open boaty opened this issue 6 months ago • 3 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

knowledgebase chunk method knowledge graph

Commit ID

2024-08-22

Other environment information

ubuntu 22
GTX 3080

Actual behavior

I got error while building database of knowledge graph type.

error message is related to NO API key for aliyuncs.com

i tried different embedding methods and minitor the docker logs, i found the error occurred after embedding part is done. So bug must be in chunk method

Expected behavior

knowledge graph built and we can see it in dataset by clicking the file name.

Steps to reproduce

1.upload a english scientific article in pdf
2.in configuration, selected chunk method as knowledge graph
3.enter entity type. (in my case, is bacteria, disease and relationship)
4. run 'UNSTRAT' in dataset for the uploaded article

Additional information

[ERROR] [2024-08-22 07:16:53,692] [http_request._handle_response] [line:172]: Request: https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation failed, status: 401, message: Invalid API-key provided. [ERROR] [2024-08-22 07:16:54,744] [http_request._handle_response] [line:172]: Request: https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation failed, status: 401, message: Invalid API-key provided. [ERROR] [2024-08-22 07:16:55,454] [http_request._handle_response] [line:172]: Request: https://dashscope.aliyuncs.com/api/v1/services/aigc/text-generation/generation failed, status: 401, message: Invalid API-key provided. [ERROR] [2024-08-22 07:16:56,271] [http_request._handle_response] [line:172]: Request: https://dashscope.aliyuncs.com/api/v1/services/embeddings/text-embedding/text-embedding failed, status: 401, message: Invalid API-key provided. /ragflow/rag/utils/es_conn.py:131: ElasticsearchWarning: A bulk action object contained multiple keys. Additional keys are currently ignored but will be rejected in a future version. r = self.es.bulk(index=(self.idxnm if not idx_nm else

boaty avatar Aug 22 '24 07:08 boaty