Questions tagged [json]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
122 views

BadRequestError: Error code: 400 - {'error': {'message': 'Invalid file format. Line 1, key "messages": ...one message must be from the assistant ...}}

I follow OpenAI Capabilities - Fine-tuning. This is myfile.jsonl: {"messages": [{"role": "system", "content": "You are a chatbot that wants to help ...
questionto42's user avatar
2 votes
1 answer
57 views

How to fine tune custom gpt 3.5 on conversations?

As far as i know, i only can train based on Q&A, like this: {"prompt": "<prompt text>", "completion": "<ideal generated text>"} How can i train ...
user3065's user avatar
1 vote
1 answer
134 views

Are LLMs, in particular GPT3.5/4, better at interpreting XML or JSON for input?

I understand that JSON is used as standard for structured output. I have a requirement for structured input - for example a list of objects like chat messages / statements to analyze which have a ...
Bob Mortimer's user avatar
4 votes
3 answers
514 views

File format for generating error-free structured data with LLMs

I'm working on a project that requires generating structured data with Large Language Models (LLMs) like GPT-4. I've encountered issues with the output, as the LLM sometimes produces invalid JSON ...
Léonard Henriquez's user avatar
5 votes
9 answers
9k views

How to generate structured data like JSON with LLM models?

I'm currently working on a project that requires the generation of complex JSON documents using Large Language Models (LLMs). These documents, representing rich text content, can contain various ...
Léonard Henriquez's user avatar