lmql icon indicating copy to clipboard operation
lmql copied to clipboard

Documentation: Add an example of agents that talk to each other or to a user

Open aretrace opened this issue 2 years ago • 2 comments

In the context of #74, guidance has an example section for agents; what would the analogous LMQL program look like using the Python library? Perhaps an example of agents in conversation could be added to the hero teaser on the website homepage.

OLT, will LMQL be open to supporting role tags?

aretrace avatar May 31 '23 05:05 aretrace

Adding a traditional agent example will definitely be interesting to have in the documentation. For now, you can already have a look at the Wikipedia example (https://lmql.ai/#wiki), which showcases tool use.

Role tags are also supported in LMQL, as shown in the chatbot example here: https://lmql.ai/#chat.

Another interesting resource on agent development with LMQL, is this blog post https://vivien000.github.io/blog/journal/better-steering-LLM-agents-with-LMQL.html.

lbeurerkellner avatar Jun 04 '23 19:06 lbeurerkellner

I will keep this issue around, until we add a more thorough agent example to the documentation.

lbeurerkellner avatar Jun 04 '23 19:06 lbeurerkellner