Replies: 5 comments 18 replies
-
To provide context to your fields like Pathway or Process in your JSON data and to work with JSON data using the JSON Toolkit, you can follow these steps:
Here is an example of how you might structure your JSON data and use the JSON Toolkit: Example JSON Data{
"Data": [
{
"PATHWAY": "XXX",
"PROCESS": "XXX Time to Second Fill",
"Category": "Time to First Fill",
"Year_QTR": 202301,
"Mean_TAT": 46.24399546733213,
"Count_Of_Patients": 2204
},
{
"PATHWAY": "XXX",
"PROCESS": "XXX Time to Second Fill",
"Category": "Time to First Fill",
"Year_QTR": 202302,
"Mean_TAT": 25.79784787346221,
"Count_Of_Patients": 1707
},
{
"PATHWAY": "XXX",
"PROCESS": "XXX Time to First Fill",
"Category": "Time to First Fill",
"Year_QTR": 202303,
"Mean_TAT": 18.62608035545023,
"Count_Of_Patients": 1266
},
{
"PATHWAY": "XXX",
"PROCESS": "XXX Time to First Fill",
"Category": "Time to First Fill",
"Year_QTR": 202304,
"Mean_TAT": 17.50056509433962,
"Count_Of_Patients": 1431
}
]
} Using the JSON ToolkitTo work with this JSON data using the JSON Toolkit, you can follow the guidelines provided in the
Additionally, you can use the Using
|
Beta Was this translation helpful? Give feedback.
-
@dosu I am getting this error. Can you help us in giving complete details which including what packages I need to import in each code snippet please? Thank you so much!!!
|
Beta Was this translation helpful? Give feedback.
-
@dosu. I observed that I am not able to load whole my json file until I extend the 'max_value_lenght' like shown below. If I won't extend the number, my results are partial and wrong. How I address the issue in dealing with big json files? do I need to load in vectordb? Please help. This is my code
|
Beta Was this translation helpful? Give feedback.
-
@dosu Please help me here... 1. What is the significance of chunk_size and chunk_overlap when dealing with JSON format? Are there any best practice guidelines? |
Beta Was this translation helpful? Give feedback.
-
@dosu While retrieving data from the vector database, I’ve noticed that some data seems to be missing. Even though the data exists in the JSON file, the LLM response sometimes says 'no data found.' However, when I run the code without using the vector database, I get good results. My question is: how can I achieve the same results using the vector database? or is it possible to call code below from the vector retrieval process? Is this possible? Please help.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
How do I provide context to my fields like Pathway or Process in my data? For example, the Pathway field is described as the patient pathway and contains string values. Also, do you suggest any techniques for working with JSON data? I love the JSON toolkit and am looking forward to exploring it more
System Info
Name: langchain
Version: 0.2.15
Beta Was this translation helpful? Give feedback.
All reactions