-
Bug DescriptionWhen attempting to generate JSONL data using Llama Index, the process works well until the final step where the results are saved to a JSONL file. However, every time I try to save the data, it seems to be unsuccessful as I always receive the message "Wrote 0 examples to finetuning_events.jsonl". I am unsure of the reason behind this issue. This is my code
Thank you again. Version0.10.20 Steps to Reproduce
Relevant Logs/TracbacksWrote 0 examples to ./dataset_data/finetuning_events.jsonl |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hey there @loyal812! 🎉 Great to see you back diving into the depths of Llama Index. What's cooking in your coding kitchen today? Let's get that JSONL file beefed up with more than just air! Based on the code snippet you've provided, it seems like the To resolve this issue, you need to add the responses to the for question in questions:
response = query_engine.query(question)
print("each response:", response)
finetuning_handler.add_finetuning_event(question, response) This will ensure that the responses are collected by the Regarding your question about changes in the I hope this helps! If you have any further questions or if the issue persists, please provide more details so I can assist you better. Sources
|
Beta Was this translation helpful? Give feedback.
-
I just solved the problem.
|
Beta Was this translation helpful? Give feedback.
I just solved the problem.
It's my solution. Currently, It's storing the dataset to jsonl data.