php-llm / llm-chain

PHP library for building LLM-based features and applications.
MIT License
8 stars 3 forks source link

Fabric Support for System Messages #31

Open chr-hertel opened 1 month ago

chr-hertel commented 1 month ago

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 commented 1 month ago

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

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