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]: Global query with streaming option will report error #1430

Open
1 of 3 tasks
KylinMountain opened this issue Nov 21, 2024 · 1 comment
Open
1 of 3 tasks

[Bug]: Global query with streaming option will report error #1430

KylinMountain opened this issue Nov 21, 2024 · 1 comment
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer

Comments

@KylinMountain
Copy link
Contributor

KylinMountain commented Nov 21, 2024

Do you need to file an issue?

  • I have searched the existing issues and this bug is not already filed.
  • My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
  • I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.

Describe the bug

graphrag query --method global --query "what is the theme of this story" --streaming

will report error.

Steps to reproduce

No response

Expected Behavior

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

No response

Additional Information

  • GraphRAG Version: 0.5.0
  • Operating System: mac os
  • Python Version: 3.10
  • Related Issues:
@KylinMountain KylinMountain added bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Nov 21, 2024
@KylinMountain KylinMountain changed the title [Bug]: <title> [Bug]: Global query will report error Nov 21, 2024
@KylinMountain KylinMountain changed the title [Bug]: Global query will report error [Bug]: Global query with streaming option will report error Nov 21, 2024
@pyeongwon
Copy link

pyeongwon commented Nov 27, 2024

I'm having the same issue. As far as I can see, the query parameter is missing when building the context in the 'astream_search' method of 'GlobalSearch'. Compare it with the 'asearch' method.

context_result = await self.context_builder.build_context(
query=query,
conversation_history=conversation_history,
**self.context_builder_params,
)

vs

context_result = await self.context_builder.build_context(
conversation_history=conversation_history,
**self.context_builder_params,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage Default label assignment, indicates new issue needs reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants