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

Fabric Support for System Messages #31

Open
chr-hertel opened this issue Sep 23, 2024 · 2 comments
Open

Fabric Support for System Messages #31

chr-hertel opened this issue Sep 23, 2024 · 2 comments

Comments

@chr-hertel
Copy link
Member

Fabric is a powerful system prompt collection - sadly in python ecosystem:
https://github.com/danielmiessler/fabric/tree/main/patterns

i did a first - rather poor - try to bring this to php, but i think a github actions based approach of dumping/updating the markdown files on release of the original lib would be more handy.
https://github.com/php-llm/fabric-pattern

maybe something like

$messages[] = SystemMessage::fabric('create_summary');
@chr-hertel
Copy link
Member Author

on the other hand, when installing php-llm/fabric-pattern this is already possible with

$messages[] = Message::forSystem((new Pattern)->load('create_summary'));

@chr-hertel
Copy link
Member Author

Could leverage InputProcessor similar to #186

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