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

Customizing prompts via addon_params #522

Open
JakeDetels opened this issue Dec 27, 2024 · 0 comments
Open

Customizing prompts via addon_params #522

JakeDetels opened this issue Dec 27, 2024 · 0 comments

Comments

@JakeDetels
Copy link

Are there any plans to allow customizing the prompts (from lightrag/prompts.py) via addon_params that's used to initialize LightRAG? It looks like addon_params supports this a couple prompt values, but not for most. I found this in operate.py:

    language = global_config["addon_params"].get(
        "language", PROMPTS["DEFAULT_LANGUAGE"]
    )
    entity_types = global_config["addon_params"].get(
        "entity_types", PROMPTS["DEFAULT_ENTITY_TYPES"]
    )

I'd love to be able to customize any of the other prompts as well. If there are not current plans to support this, are the project maintainers open to a pull request to add this functionality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant