Skip to content

How do generate a list of variable length where each element follows a regex #551

Closed Answered by honne23
prnvbn asked this question in Q&A
Discussion options

You must be logged in to vote

I have the same question, the only solution I can think of right now is to prompt the llm to decide how large the list should be using gen then use the control flow to then generate a list of the length decided by the model.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@honne23
Comment options

@honne23
Comment options

Answer selected by prnvbn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants