mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
6567b73e1a
This implements a loader of text passages in JSON format. The `jq` syntax is used to define a schema for accessing the relevant contents from the JSON file. This requires dependency on the `jq` package: https://pypi.org/project/jq/. --------- Signed-off-by: Aivin V. Solatorio <avsolatorio@gmail.com>
25 lines
623 B
JSON
25 lines
623 B
JSON
{
|
|
"messages": [
|
|
{
|
|
"sender_name": "User 2",
|
|
"timestamp_ms": 1675597571851,
|
|
"content": "Bye!"
|
|
},
|
|
{
|
|
"sender_name": "User 1",
|
|
"timestamp_ms": 1675597435669,
|
|
"content": "Oh no worries! Bye"
|
|
},
|
|
{
|
|
"sender_name": "User 2",
|
|
"timestamp_ms": 1675595060730,
|
|
"photos": [
|
|
{
|
|
"uri": "url_of_some_picture.jpg",
|
|
"creation_timestamp": 1675595059
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"title": "User 1 and User 2 chat"
|
|
} |