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

Query Request Builder #286

Open
Christof23 opened this issue Dec 4, 2023 · 2 comments
Open

Query Request Builder #286

Christof23 opened this issue Dec 4, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Christof23
Copy link

Hi, this looks like a great utility for creating structured responses from LLMs! I do have one suggestion however in terms of using the builder pattern for constructing queries programmatically instead of via free-text style docstrings. This would help improve the overall API of the interface and user experience.

@lbeurerkellner lbeurerkellner added the enhancement New feature or request label Dec 10, 2023
@lbeurerkellner
Copy link
Collaborator

Thanks for suggesting this, it it is definitely a good idea. I will keep this issue to track progress/work on this.

@lbeurerkellner lbeurerkellner added the good first issue Good for newcomers label Feb 27, 2024
@lbeurerkellner
Copy link
Collaborator

lbeurerkellner commented Feb 27, 2024

Marking this as a good first issue.

A query request builder would just construct an LMQL string, that is then passed to the LMQL compiler to produce a callable LMQL query function (the compiler lives here https://github.com/eth-sri/lmql/blob/main/src/lmql/language/compiler.py#L428).

As an implementation exercise, this requires some understanding of the full LMQL syntax (see https://lmql.ai/docs/language/reference.html).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants