adrienbrault / instructrice

👩‍🏫 Typed LLM Outputs in PHP. Supports GPT, Claude, Gemini or any OpenAI compatible provider!
MIT License
16 stars 3 forks source link

Command #6

Open adrienbrault opened 4 months ago

adrienbrault commented 4 months ago

Ideally, you install the symfony bundle and can start trying to type outputs with your existing models

adrienbrault commented 4 months ago

With several output format: dump, json, yaml

adrienbrault commented 4 months ago

Kind of do this: https://github.com/adrienbrault/instructrice/blob/89cb57569f4a5365d500439007901cf5c9a8ab38/examples/bootstrap.php#L46-L71

adrienbrault commented 4 months ago

Killer feature would be to detect if the context given to the command is an url and automatically use r.jina.ai to scrape:

$ vendor/bin/instructrice '{"type":"string","description": "xxx"}' https://www.php.net/releases/8.3/en.php 'Find all the new features'

Fetching https://www.php.net/releases/8.3/en.php markdown content using r.jina.ai
adrienbrault commented 4 months ago

https://github.com/adrienbrault/instructrice/pull/11