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

[Bug]: Run the knowledge_graph parsing method, after parsing the document, an error occurs during the retrieval_test in search.py:323. #3329

Closed
1 task done
fengyunweia opened this issue Nov 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@fengyunweia
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

#3306

Other environment information

No response

Actual behavior

Run the knowledge_graph parsing method, after parsing the document, an error occurs during the retrieval_test in search.py:323. The error message is: "sres.field[i][cfield].split(" ")", where cfield is set to "content_ltks", but the knowledge_graph parsing method has the following keywords without the "content_ltks" attribute: "knowledge_graph_kwd": "graph", "knowledge_graph_kwd": "mind_map", and "knowledge_graph_kwd": "text".

Expected behavior

No response

Steps to reproduce

1: Run the knowledge_graph parsing method
2:retrieval_test

Additional information

No response

@fengyunweia fengyunweia added the bug Something isn't working label Nov 11, 2024
@fengyunweia
Copy link
Author

code:

chunks.append(
{
"content_with_weight": json.dumps(nx.node_link_data(graph), ensure_ascii=False, indent=2),
"knowledge_graph_kwd": "graph"
})
You can see that the "knowledge_graph_kwd" attribute is set to "graph". There are only two attributes in total.

1 similar comment
@fengyunweia
Copy link
Author

code:

chunks.append(
{
"content_with_weight": json.dumps(nx.node_link_data(graph), ensure_ascii=False, indent=2),
"knowledge_graph_kwd": "graph"
})
You can see that the "knowledge_graph_kwd" attribute is set to "graph". There are only two attributes in total.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant