lark-parser / lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
MIT License
4.62k stars 395 forks source link

Add `outlines` in the list of projects using Lark #1407

Closed rlouf closed 2 months ago

rlouf commented 2 months ago

I am a maintainer of the Outlines library, and we use Lark to help Large Language Models generate text in the language of any formal grammars. The repository is fairly popular in the LLM world, and I was wondering if you would accept a PR that add the project to the README in the section on libraries that use Lark.

Thank you for the great work!

erezsh commented 2 months ago

Sure, I would be happy to.

Btw, it looks like you're accessing and overriding a lot of Lark's internal implementation. I wonder why that was necessary, and if perhaps there is a less invasive way of doing that?

Anyway, as long as you do, I suggest pinning to a specific lark version. I can't guarantee that internal details won't change in the future.

rlouf commented 2 months ago

Btw, it looks like you're accessing and overriding a lot of Lark's internal implementation. I wonder why that was necessary, and if perhaps there is a less invasive way of doing that?

You would have to ask @brandonwillard.

Anyway, as long as you do, I suggest pinning to a specific lark version. I can't guarantee that internal details won't change in the future.

That's a good idea!