How to search QA from JSON LINES file? #1229
Unanswered
liu-jin-lg
asked this question in
Q&A
Replies: 1 comment
-
you have to specify the pointer according to jsonpointer format - https://www.npmjs.com/package/jsonpointer. having said that im not sure how to specify the pointer syntax for nested object. I would probably convert the jsonl into a simple jsonl like:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need everyone's help.
I have a jsonl file with the content as
{"messages": [{"role": "user", "content": "xxxxx"}, {"role": "assistant", "content": "xxxxx"}]}
{"messages": [{"role": "user", "content": "xxxxx"}, {"role": "assistant", "content": "xxxxx"}]}
When I use Document Loaders: Json Lines File, I upload the file and enter "messages[].content" in Pointer Extraction.
No matter what I ask the AI, the AI's answer is "Error: Expected string, at position 0 got undefined".
I uploaded a picture of the configuration so that everyone can help me, thank you all

Beta Was this translation helpful? Give feedback.
All reactions