0

Background

You are a user interested in trying a LLM. And somehow you want to receive a formatted output. For example, you want to ask "How old is Joe Doe and is he available for golf tomorrow?" and you don't want to receive useless chitchat but just two values, his age and if he is available.

Now, models running on a system called Ollama permit that (so no problem about the implementation of this), when you specify the format in JSON they return that, - but you as a user don't need to know about Ollama, Json and those technical things...

Question

As a user, what would be a comfortable way to specifying this output format? (Other than writing the Json object- but that is a bit technical and I would prefer to avoid that if possible).

How would a user using a frontend would prefer to enter these two fields (age and availability) for example. Be aware that for the next query I-as another user- might ask another thing "Give me the recipe for burgers" and then I would specify fields like "ingredient" and "quantity".

I am thinking some way to add and remove elements of a list or something, but dont let me interfere with your answer

2
  • 1
    I think you have already answered your questions. If all you want is a straightforward output, then it should be Topic: (John Doe) + Age: (x years) + Availability: (yes, 0900 - 1200 hrs). For the second part where a second user may interrupt the conversation, my suggestion will be use the feature to reply to a particular message in a chat so that you can scroll to the original message/question on click. Commented Oct 23 at 6:51
  • 1
    I don't quite understand: I as a user want a specific "structured output format" (that 's what the question says), but I don't want to specify that format (that's what you write in the first paragraph of the Question section). As there are so many structured output formats, how should the machine know which one to choose? You would either have to give an example (in technical syntax) or refer to a name/specification (like "JSON" or "YAML", or ...). What is your question? Commented Oct 23 at 7:28

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.