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

Specify prompts for local and global search via config/CLI #917

Open
2 tasks
yangxue-1 opened this issue Aug 13, 2024 · 1 comment
Open
2 tasks

Specify prompts for local and global search via config/CLI #917

yangxue-1 opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
backlog We've confirmed some action is needed on this and will plan it enhancement New feature or request

Comments

@yangxue-1
Copy link

Is there an existing issue for this?

  • I have searched the existing issues
  • I have checked #657 to validate if my issue is covered by community support

Describe the issue

How to adjust the prompt template used for global search and local search? Is there any related document?

global prompt:map_system_prompt.py,reduce_system_prompt.py

local prompt:system_prompt.py

Steps to reproduce

No response

GraphRAG Config Used

# Paste your config here

Logs and screenshots

No response

Additional Information

  • GraphRAG Version:
  • Operating System:
  • Python Version:
  • Related Issues:
@yangxue-1 yangxue-1 added the triage Default label assignment, indicates new issue needs reviewed by a maintainer label Aug 13, 2024
@natoverse
Copy link
Collaborator

The GlobalSearch and LocalSearch classes do accept prompts, so if you are building a search implementation you can supply edited prompts. We don't expose that through the CLI or config file right now, so I'll add this to the backlog for investigation. In the meantime, have a look at the search factories for examples of how to instantiate the classes directly (these factories are used by the CLI, so you can trace through).

@natoverse natoverse added enhancement New feature or request backlog We've confirmed some action is needed on this and will plan it and removed triage Default label assignment, indicates new issue needs reviewed by a maintainer labels Aug 13, 2024
@natoverse natoverse changed the title How to adjust the prompt template used for global search and local search? Specify prompts for local and global search via config/CLI Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We've confirmed some action is needed on this and will plan it enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants