Skip to content

AICI -> llguidance? #754

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

Closed
mmoskal opened this issue Sep 6, 2024 · 1 comment · Fixed by #899
Closed

AICI -> llguidance? #754

mmoskal opened this issue Sep 6, 2024 · 1 comment · Fixed by #899
Labels
new feature New feature or request

Comments

@mmoskal
Copy link
Contributor

mmoskal commented Sep 6, 2024

I noticed you guys forked a bunch of controller code from AICI for your constraints. I think you might be interested in https://github.com/microsoft/llguidance - it implements a more general constraint parser and is significantly faster. It can be also easily consumed as a Rust crate.

Grammars for llguidance can be generated from the Python Guidance https://github.com/guidance-ai/guidance (in particular there is code there that translates a JSON schema into Guidance and then llguidance; it shouldn't be too hard to port that into Rust but I have not gotten around to do that yet)

I also did a quick PoC in TypeScript at https://github.com/mmoskal/guidance-ts

I expect more client libraries to emerge.

Of course it's easy to just write a grammar with a single regex if this is what you're after (llguidance is using https://github.com/microsoft/derivre for regexes/lexers).

LLguidance is deployed as preview in Azure for Phi-3.5-mini

@mmoskal
Copy link
Contributor Author

mmoskal commented Nov 6, 2024

See PR #899

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

Successfully merging a pull request may close this issue.

1 participant