Skip to content

Instantly share code, notes, and snippets.

@chottokun
Created April 7, 2025 13:52
Show Gist options
  • Save chottokun/34d8febafb94b011fb768a795273b616 to your computer and use it in GitHub Desktop.
Save chottokun/34d8febafb94b011fb768a795273b616 to your computer and use it in GitHub Desktop.
SummaryRAGRetriever.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyNwdgzOm4sQNEy5gy+fak8q",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
"04dc911ff74f4ea095d95b7a2b763db8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_6ec65a99e4d54a42bbff339696a8a8ca",
"IPY_MODEL_22419d8ac9b8453c9a189f27e42e7714",
"IPY_MODEL_21949c11c25e482b82dcaf7876d148ec"
],
"layout": "IPY_MODEL_19bea70df12049c99157626b997ccf7f"
}
},
"6ec65a99e4d54a42bbff339696a8a8ca": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c615b04b0c764aa9867e774288357248",
"placeholder": "",
"style": "IPY_MODEL_1eb3ac910d154a51846c56fff6dd2be8",
"value": "modules.json: 100%"
}
},
"22419d8ac9b8453c9a189f27e42e7714": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4a1fa428b4ce42a5ab5c5b3c2c206afd",
"max": 349,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_6c7790fa8f40492e91c0e5d8ff26a984",
"value": 349
}
},
"21949c11c25e482b82dcaf7876d148ec": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e160ef280af44f6b97bba26f9f769264",
"placeholder": "",
"style": "IPY_MODEL_9035cba7df4c4aa09e2afd5d9fbcbc7b",
"value": " 349/349 [00:00<00:00, 21.9kB/s]"
}
},
"19bea70df12049c99157626b997ccf7f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c615b04b0c764aa9867e774288357248": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1eb3ac910d154a51846c56fff6dd2be8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4a1fa428b4ce42a5ab5c5b3c2c206afd": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"6c7790fa8f40492e91c0e5d8ff26a984": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"e160ef280af44f6b97bba26f9f769264": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"9035cba7df4c4aa09e2afd5d9fbcbc7b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"7cafe3b9d05947dc99c75664d1e4a1cf": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_57ab256d651b4822bc0082fc2930ac98",
"IPY_MODEL_bb7ab0cbd5f646f89a9803ee2fcb7987",
"IPY_MODEL_0ab066fc57a0486d9a47491d431202ec"
],
"layout": "IPY_MODEL_999fad04882b4423b2b5217c43c6b533"
}
},
"57ab256d651b4822bc0082fc2930ac98": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_de3266095cb844b892c8372df8f6888d",
"placeholder": "",
"style": "IPY_MODEL_f1d4f99165914ce7a7550ff1e2cd5fb2",
"value": "config_sentence_transformers.json: 100%"
}
},
"bb7ab0cbd5f646f89a9803ee2fcb7987": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_4a649d7c53f1437d9199acc99fe656b4",
"max": 116,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_0c22b146db2b46b4aa770980026e8b3f",
"value": 116
}
},
"0ab066fc57a0486d9a47491d431202ec": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a18b0efe68ab40fa972e620cf9bff841",
"placeholder": "",
"style": "IPY_MODEL_d34f015cb5b346caad4f598803f7a1d6",
"value": " 116/116 [00:00<00:00, 10.3kB/s]"
}
},
"999fad04882b4423b2b5217c43c6b533": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"de3266095cb844b892c8372df8f6888d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"f1d4f99165914ce7a7550ff1e2cd5fb2": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"4a649d7c53f1437d9199acc99fe656b4": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"0c22b146db2b46b4aa770980026e8b3f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"a18b0efe68ab40fa972e620cf9bff841": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d34f015cb5b346caad4f598803f7a1d6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ca203854d2c24b788cb92c7bc85e4ec9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_22f064922a5247809164c4210d4a3046",
"IPY_MODEL_360fa12fdb644849938da71ca854a865",
"IPY_MODEL_eec45af58dd14a55adf2cdc2f3ba1636"
],
"layout": "IPY_MODEL_902cb4ab6df84f93b4ce63b5ff460ca0"
}
},
"22f064922a5247809164c4210d4a3046": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_fc6310dc67c54e7d9e55c05c8bcb98c0",
"placeholder": "",
"style": "IPY_MODEL_878ca49912464cdbaa5c62b6ab82a09e",
"value": "README.md: 100%"
}
},
"360fa12fdb644849938da71ca854a865": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_ee5e18787cf840eeb5517f52b55cab28",
"max": 10454,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_36191534c066424d8a77cfc903c301dd",
"value": 10454
}
},
"eec45af58dd14a55adf2cdc2f3ba1636": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_3e06ef3835a144d4a7c26a68420c9fe7",
"placeholder": "",
"style": "IPY_MODEL_1747bcd4dd9d4b00a21d50ffa38d5ab9",
"value": " 10.5k/10.5k [00:00<00:00, 688kB/s]"
}
},
"902cb4ab6df84f93b4ce63b5ff460ca0": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"fc6310dc67c54e7d9e55c05c8bcb98c0": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"878ca49912464cdbaa5c62b6ab82a09e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ee5e18787cf840eeb5517f52b55cab28": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"36191534c066424d8a77cfc903c301dd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"3e06ef3835a144d4a7c26a68420c9fe7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1747bcd4dd9d4b00a21d50ffa38d5ab9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"80800678bf6b430fb603c1e39baa9ba8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_663b9da3449d4e1b96ebc43b1ca8c4d3",
"IPY_MODEL_ffc9d1baa7ef4b6e9729eb4386f6cd53",
"IPY_MODEL_1e60fb4c740a4cdcb2c5fbb8e558a66d"
],
"layout": "IPY_MODEL_c9ba80337398449cad6f0c5e4be8b78d"
}
},
"663b9da3449d4e1b96ebc43b1ca8c4d3": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_cabd13f92d7d4d2cbaa8f40b0b1504f2",
"placeholder": "",
"style": "IPY_MODEL_3dabf9d734b64bde8e5fe9611c16458e",
"value": "sentence_bert_config.json: 100%"
}
},
"ffc9d1baa7ef4b6e9729eb4386f6cd53": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d3542e022d63495db7f0c3c72a07fbe2",
"max": 53,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_1feffe4df9d249fd940c9898e65d2cb6",
"value": 53
}
},
"1e60fb4c740a4cdcb2c5fbb8e558a66d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_0b4ac67922dc41a9b30796d757b20823",
"placeholder": "",
"style": "IPY_MODEL_67158fcc91dc4010a14c2f0c907fa2ad",
"value": " 53.0/53.0 [00:00<00:00, 4.38kB/s]"
}
},
"c9ba80337398449cad6f0c5e4be8b78d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"cabd13f92d7d4d2cbaa8f40b0b1504f2": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"3dabf9d734b64bde8e5fe9611c16458e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"d3542e022d63495db7f0c3c72a07fbe2": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1feffe4df9d249fd940c9898e65d2cb6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"0b4ac67922dc41a9b30796d757b20823": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"67158fcc91dc4010a14c2f0c907fa2ad": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"e951b3d27532452a872a23d7b736fc04": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_4f97ba0b1e7b4ce585be0d1402bda66b",
"IPY_MODEL_8cec3fbcf899414483823200818053dc",
"IPY_MODEL_c198d19a0cd84db5afcc07b60ca2a06d"
],
"layout": "IPY_MODEL_83dc7563a2104b2cb8c75cfc953c4389"
}
},
"4f97ba0b1e7b4ce585be0d1402bda66b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_745f00b3772140a4930c113a6a4f0740",
"placeholder": "",
"style": "IPY_MODEL_3cb611c6156d41f1bd5abb50dc6acf2f",
"value": "config.json: 100%"
}
},
"8cec3fbcf899414483823200818053dc": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_c668cb07c3ef4d0ea6435a8e2f89257e",
"max": 612,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_5cf62bb7a5cc4d0e8cc157d17981b43a",
"value": 612
}
},
"c198d19a0cd84db5afcc07b60ca2a06d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_60083959a08447a7b7e651ae4a09c91f",
"placeholder": "",
"style": "IPY_MODEL_683d4361dfc74858ac8d106cb1faf57b",
"value": " 612/612 [00:00<00:00, 54.0kB/s]"
}
},
"83dc7563a2104b2cb8c75cfc953c4389": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"745f00b3772140a4930c113a6a4f0740": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"3cb611c6156d41f1bd5abb50dc6acf2f": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"c668cb07c3ef4d0ea6435a8e2f89257e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"5cf62bb7a5cc4d0e8cc157d17981b43a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"60083959a08447a7b7e651ae4a09c91f": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"683d4361dfc74858ac8d106cb1faf57b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"1d1aab61ee2343d485b4f414686d5de6": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_f981de476cb646f9ae92818aaa5deb8a",
"IPY_MODEL_aafb121d20b54f7a861821a64577ac9b",
"IPY_MODEL_49311476d4ef419183f7ca35ff044784"
],
"layout": "IPY_MODEL_f7b26f0f9aaa48f3aae863a50e390ce1"
}
},
"f981de476cb646f9ae92818aaa5deb8a": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a880387392a34788bea70ca3dc518ed9",
"placeholder": "",
"style": "IPY_MODEL_efd1d5b1a9a444d197dc89c5019488c4",
"value": "model.safetensors: 100%"
}
},
"aafb121d20b54f7a861821a64577ac9b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_f4139a4727844c589e171bca4f6900e9",
"max": 90868376,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_af38e38f8d31456aaef21d66e3363134",
"value": 90868376
}
},
"49311476d4ef419183f7ca35ff044784": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_3d6a0beb2f3148e28768d5394ed7c5f2",
"placeholder": "",
"style": "IPY_MODEL_828abd67761e4195abb9b7eac93ed3ba",
"value": " 90.9M/90.9M [00:00<00:00, 130MB/s]"
}
},
"f7b26f0f9aaa48f3aae863a50e390ce1": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"a880387392a34788bea70ca3dc518ed9": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"efd1d5b1a9a444d197dc89c5019488c4": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"f4139a4727844c589e171bca4f6900e9": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"af38e38f8d31456aaef21d66e3363134": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"3d6a0beb2f3148e28768d5394ed7c5f2": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"828abd67761e4195abb9b7eac93ed3ba": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"ce52dc0dbec048e5a5b3d173766a983b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_fdd6cf323ce04240aa0bb2c89bc6643b",
"IPY_MODEL_0253bd206c494a6ebdf76893249aab49",
"IPY_MODEL_592527a7a445447e950d899e941773fc"
],
"layout": "IPY_MODEL_05cdf773dca04058b8aae49f0d4c2282"
}
},
"fdd6cf323ce04240aa0bb2c89bc6643b": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_677a1193c75c4b37bed03e5b08b6da64",
"placeholder": "",
"style": "IPY_MODEL_32241a513fe14d44834cdb75f649fa28",
"value": "tokenizer_config.json: 100%"
}
},
"0253bd206c494a6ebdf76893249aab49": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_83a69156c999432cb9f2f5f77867da4d",
"max": 350,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_4f2d9bcce0ce444193b697a963a28058",
"value": 350
}
},
"592527a7a445447e950d899e941773fc": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_564ef252ca3844769ce308f88a593776",
"placeholder": "",
"style": "IPY_MODEL_4118ba2bc2ea47f0a9cd18551d1d88a2",
"value": " 350/350 [00:00<00:00, 28.9kB/s]"
}
},
"05cdf773dca04058b8aae49f0d4c2282": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"677a1193c75c4b37bed03e5b08b6da64": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"32241a513fe14d44834cdb75f649fa28": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"83a69156c999432cb9f2f5f77867da4d": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"4f2d9bcce0ce444193b697a963a28058": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"564ef252ca3844769ce308f88a593776": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"4118ba2bc2ea47f0a9cd18551d1d88a2": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"218ae2ccd869426ba2a0c9e663668091": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_b6f7154f02a147698b1072e67adb71b7",
"IPY_MODEL_372a466de03041ef8b123f091dce7f36",
"IPY_MODEL_04b017185d8c4d1da5c09fa6ba9e7117"
],
"layout": "IPY_MODEL_2e8a9d5b2c624e9696091ea4fb1c976a"
}
},
"b6f7154f02a147698b1072e67adb71b7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_8683bafc92634203942a238445a251f8",
"placeholder": "",
"style": "IPY_MODEL_d1ff2b850a5b4ac58ef8326850c946e8",
"value": "vocab.txt: 100%"
}
},
"372a466de03041ef8b123f091dce7f36": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_261b1ebf834046afb45417b2994414c2",
"max": 231508,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_c0d8ac8d12dc40d9b0bee4047d2e1b39",
"value": 231508
}
},
"04b017185d8c4d1da5c09fa6ba9e7117": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_83584f7e3d0e497abb1bffc281398fd3",
"placeholder": "",
"style": "IPY_MODEL_8cf238e3f02c4be99dea59418b5b43eb",
"value": " 232k/232k [00:00<00:00, 8.09MB/s]"
}
},
"2e8a9d5b2c624e9696091ea4fb1c976a": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"8683bafc92634203942a238445a251f8": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d1ff2b850a5b4ac58ef8326850c946e8": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"261b1ebf834046afb45417b2994414c2": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c0d8ac8d12dc40d9b0bee4047d2e1b39": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"83584f7e3d0e497abb1bffc281398fd3": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"8cf238e3f02c4be99dea59418b5b43eb": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"1c49a4f68d674c6aa312cb1b18cdb3bd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_801a2886f67f492694f628d4a9e91419",
"IPY_MODEL_cc1886eb42ae4757bb2a6e72d1938a17",
"IPY_MODEL_8c21a4cfa7044fc99145a8453f14b5c9"
],
"layout": "IPY_MODEL_4c5001ef6af846df864273e27fef986c"
}
},
"801a2886f67f492694f628d4a9e91419": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_646b35a117b64b4883e4fdf3dfc73561",
"placeholder": "",
"style": "IPY_MODEL_335ed7b2aac44644a99119748d2adb55",
"value": "tokenizer.json: 100%"
}
},
"cc1886eb42ae4757bb2a6e72d1938a17": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_668d0b88a0a14316a739eb98c8830122",
"max": 466247,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_631c04cc629b4a009ac3f72b9e8a3496",
"value": 466247
}
},
"8c21a4cfa7044fc99145a8453f14b5c9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_6e5fbfaa100645589a48dec4168e8f9e",
"placeholder": "",
"style": "IPY_MODEL_12e78c53961a44f0879e4b6839db3956",
"value": " 466k/466k [00:00<00:00, 15.0MB/s]"
}
},
"4c5001ef6af846df864273e27fef986c": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"646b35a117b64b4883e4fdf3dfc73561": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"335ed7b2aac44644a99119748d2adb55": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"668d0b88a0a14316a739eb98c8830122": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"631c04cc629b4a009ac3f72b9e8a3496": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"6e5fbfaa100645589a48dec4168e8f9e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"12e78c53961a44f0879e4b6839db3956": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"418d5c17826147e3b35cf704e275a403": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_511aa86e6b0348f595991441af4e89f7",
"IPY_MODEL_153a447d305a4d6fb7871d14f9e3cb9d",
"IPY_MODEL_04be014620d942388d876ea1848fc597"
],
"layout": "IPY_MODEL_eb7e1031315f473f8839dd014573f192"
}
},
"511aa86e6b0348f595991441af4e89f7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_1629f0cb6624465ab38c346f977494a7",
"placeholder": "",
"style": "IPY_MODEL_ace467399fd5472aae7cfe7bdf9379b7",
"value": "special_tokens_map.json: 100%"
}
},
"153a447d305a4d6fb7871d14f9e3cb9d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_39c4546b72c7482cb6444b8c5d75810a",
"max": 112,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_666b4ca2526648d7824d6b17222ce0bf",
"value": 112
}
},
"04be014620d942388d876ea1848fc597": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_a11b54c4dc084330aa4fb3f87387a2b2",
"placeholder": "",
"style": "IPY_MODEL_72e40e7756f64733a2d2e0976740728d",
"value": " 112/112 [00:00<00:00, 7.20kB/s]"
}
},
"eb7e1031315f473f8839dd014573f192": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"1629f0cb6624465ab38c346f977494a7": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"ace467399fd5472aae7cfe7bdf9379b7": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"39c4546b72c7482cb6444b8c5d75810a": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"666b4ca2526648d7824d6b17222ce0bf": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"a11b54c4dc084330aa4fb3f87387a2b2": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"72e40e7756f64733a2d2e0976740728d": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"448c98e8538e49f9813f868ccef70c18": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HBoxModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HBoxModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HBoxView",
"box_style": "",
"children": [
"IPY_MODEL_6009c79a386a42f7bd5ac1a7b2876cfd",
"IPY_MODEL_c51e561f5b6548c4b16b5d8f6e3fd84e",
"IPY_MODEL_e005440825b84f7888b35396deaac974"
],
"layout": "IPY_MODEL_1cee72c475f1408a9bb55f8f2b2726d6"
}
},
"6009c79a386a42f7bd5ac1a7b2876cfd": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_d1f1b6ab1c1c4a559a376c7294e3afed",
"placeholder": "",
"style": "IPY_MODEL_c3b42e2410cb49949a1d09bc2785e122",
"value": "config.json: 100%"
}
},
"c51e561f5b6548c4b16b5d8f6e3fd84e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "FloatProgressModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "FloatProgressModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "ProgressView",
"bar_style": "success",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_93a5592a68df4626af95c24e8221d541",
"max": 190,
"min": 0,
"orientation": "horizontal",
"style": "IPY_MODEL_7f8d6c1e9ba946a792b85645d74dc9f9",
"value": 190
}
},
"e005440825b84f7888b35396deaac974": {
"model_module": "@jupyter-widgets/controls",
"model_name": "HTMLModel",
"model_module_version": "1.5.0",
"state": {
"_dom_classes": [],
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "HTMLModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/controls",
"_view_module_version": "1.5.0",
"_view_name": "HTMLView",
"description": "",
"description_tooltip": null,
"layout": "IPY_MODEL_e7985c688bcd4f5685e085cc7afeaf3e",
"placeholder": "",
"style": "IPY_MODEL_314300f5e0e74bd4b124f5beb85ebb5e",
"value": " 190/190 [00:00<00:00, 11.8kB/s]"
}
},
"1cee72c475f1408a9bb55f8f2b2726d6": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"d1f1b6ab1c1c4a559a376c7294e3afed": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"c3b42e2410cb49949a1d09bc2785e122": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
},
"93a5592a68df4626af95c24e8221d541": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"7f8d6c1e9ba946a792b85645d74dc9f9": {
"model_module": "@jupyter-widgets/controls",
"model_name": "ProgressStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "ProgressStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"bar_color": null,
"description_width": ""
}
},
"e7985c688bcd4f5685e085cc7afeaf3e": {
"model_module": "@jupyter-widgets/base",
"model_name": "LayoutModel",
"model_module_version": "1.2.0",
"state": {
"_model_module": "@jupyter-widgets/base",
"_model_module_version": "1.2.0",
"_model_name": "LayoutModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "LayoutView",
"align_content": null,
"align_items": null,
"align_self": null,
"border": null,
"bottom": null,
"display": null,
"flex": null,
"flex_flow": null,
"grid_area": null,
"grid_auto_columns": null,
"grid_auto_flow": null,
"grid_auto_rows": null,
"grid_column": null,
"grid_gap": null,
"grid_row": null,
"grid_template_areas": null,
"grid_template_columns": null,
"grid_template_rows": null,
"height": null,
"justify_content": null,
"justify_items": null,
"left": null,
"margin": null,
"max_height": null,
"max_width": null,
"min_height": null,
"min_width": null,
"object_fit": null,
"object_position": null,
"order": null,
"overflow": null,
"overflow_x": null,
"overflow_y": null,
"padding": null,
"right": null,
"top": null,
"visibility": null,
"width": null
}
},
"314300f5e0e74bd4b124f5beb85ebb5e": {
"model_module": "@jupyter-widgets/controls",
"model_name": "DescriptionStyleModel",
"model_module_version": "1.5.0",
"state": {
"_model_module": "@jupyter-widgets/controls",
"_model_module_version": "1.5.0",
"_model_name": "DescriptionStyleModel",
"_view_count": null,
"_view_module": "@jupyter-widgets/base",
"_view_module_version": "1.2.0",
"_view_name": "StyleView",
"description_width": ""
}
}
}
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/chottokun/34d8febafb94b011fb768a795273b616/summaryragretriever.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"source": [
"!pip --quiet install langchain langchain-community openai chromadb tiktoken sentence_transformers huggingface_hub"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "WqMC3BPs6xKk",
"outputId": "dbddf962-95b1-4c2e-e3f1-a5bb4016f53c"
},
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/2.5 MB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[91m━━━━━━\u001b[0m\u001b[90m╺\u001b[0m\u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.4/2.5 MB\u001b[0m \u001b[31m12.4 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[91m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[91m╸\u001b[0m \u001b[32m2.5/2.5 MB\u001b[0m \u001b[31m40.1 MB/s\u001b[0m eta \u001b[36m0:00:01\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m2.5/2.5 MB\u001b[0m \u001b[31m30.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.0/1.0 MB\u001b[0m \u001b[31m49.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m423.3/423.3 kB\u001b[0m \u001b[31m25.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m50.9/50.9 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h"
]
}
]
},
{
"source": [
"from langchain.vectorstores import Chroma\n",
"from langchain.embeddings import HuggingFaceEmbeddings\n",
"\n",
"# 埋め込みモデルを用意\n",
"embeddings = HuggingFaceEmbeddings(model_name=\"intfloat/multilingual-e5-small\")\n",
"\n",
"# ChromaDBのコレクションを作成(または既存のコレクションを利用)\n",
"vector_store = Chroma(\n",
" collection_name=\"my_collection\",\n",
" embedding_function=embeddings,\n",
" persist_directory=\"./chroma_db\"\n",
")\n",
"\n",
"# 例としてドキュメントとメタデータを追加\n",
"documents = [\n",
" \"The cat is sleeping on the sofa.\",\n",
" \"Cattle are grazing in the field.\",\n",
" \"The dog is barking loudly.\"\n",
"]\n",
"metadatas = [\n",
" {\"animal\": \"cat\", \"color\": \"black\"},\n",
" {\"animal\": \"cattle\", \"color\": \"brown\"},\n",
" {\"animal\": \"dog\", \"color\": \"white\"}\n",
"]\n",
"ids = [\"doc1\", \"doc2\", \"doc3\"]\n",
"\n",
"vector_store.add_texts(texts=documents, metadatas=metadatas, ids=ids)\n",
"\n",
"# 検索例:animalキーに対してワイルドカード検索「ca*」\n",
"# ChromaDBは$containsや$regexをサポートしていないため、\n",
"# where句で完全一致検索を行い、結果をPython側でフィルタリングします。\n",
"import re\n",
"\n",
"# where句でanimalキーが\"cat\"または\"cattle\"であるものを検索\n",
"# Use the 'filter' argument instead of 'where'\n",
"results = vector_store.similarity_search(query=\"any query\", k=2, filter={\"animal\": {\"$in\": [\"cat\", \"cattle\"]}})\n",
"\n",
"# 複数キーの横断検索例:\n",
"# where句でanimalキーが\"cat\"または\"cattle\"、またはcolorキーが\"brown\"であるものを検索\n",
"# Use the 'filter' argument instead of 'where'\n",
"results = vector_store.similarity_search(query=\"any query\", k=2, filter={\"$or\": [{\"animal\": {\"$in\": [\"cat\", \"cattle\"]}}, {\"color\": {\"$eq\": \"brown\"}}]})"
],
"cell_type": "code",
"metadata": {
"id": "eRcEVq8S95nJ"
},
"execution_count": 11,
"outputs": []
},
{
"cell_type": "code",
"source": [
"results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "uH0M7MW4-CLt",
"outputId": "1e26ea6b-c645-48cc-cd9f-71ad1c5c40f3"
},
"execution_count": 12,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"[Document(metadata={'animal': 'cattle', 'color': 'brown'}, page_content='Cattle are grazing in the field.'),\n",
" Document(metadata={'color': 'black', 'animal': 'cat'}, page_content='The cat is sleeping on the sofa.')]"
]
},
"metadata": {},
"execution_count": 12
}
]
},
{
"source": [
"from langchain.vectorstores import Chroma\n",
"from langchain.embeddings import HuggingFaceEmbeddings\n",
"import re\n",
"\n",
"\n",
"# 検索例:animalキーに対してワイルドカード検索「ca*」\n",
"def wildcard_search(query, key, pattern):\n",
" \"\"\"\n",
" Performs a wildcard search on the specified key using a regular expression pattern.\n",
"\n",
" Args:\n",
" query: The query string for similarity search.\n",
" key: The metadata key to search on (e.g., \"animal\").\n",
" pattern: The regular expression pattern for the wildcard search (e.g., \"ca.*\").\n",
"\n",
" Returns:\n",
" A list of search results matching the wildcard pattern.\n",
" \"\"\"\n",
" # Perform similarity search to get all results\n",
" all_results = vector_store.similarity_search(query=query, k=10) # Adjust 'k' as needed\n",
"\n",
" # Filter results based on the wildcard pattern\n",
" filtered_results = [\n",
" doc for doc in all_results\n",
" if doc.metadata and key in doc.metadata and re.match(pattern, doc.metadata[key])\n",
" ]\n",
"\n",
" return filtered_results\n",
"\n",
"# Example usage:\n",
"results = wildcard_search(query=\"any query\", key=\"animal\", pattern=\"ca.*\")"
],
"cell_type": "code",
"metadata": {
"id": "IObJVMCh-ccG"
},
"execution_count": 13,
"outputs": []
},
{
"cell_type": "code",
"source": [
"results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "iDx58Ig9-eTw",
"outputId": "afb1c43b-1999-4f71-cf59-813ac656529b"
},
"execution_count": 14,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"[Document(metadata={'animal': 'cattle', 'color': 'brown'}, page_content='Cattle are grazing in the field.'),\n",
" Document(metadata={'color': 'black', 'animal': 'cat'}, page_content='The cat is sleeping on the sofa.')]"
]
},
"metadata": {},
"execution_count": 14
}
]
},
{
"cell_type": "code",
"source": [
"results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "yapnrYq_I4Vh",
"outputId": "c5bca1b8-2139-4f1a-8e67-79ab3793568d"
},
"execution_count": 18,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"[]"
]
},
"metadata": {},
"execution_count": 18
}
]
},
{
"source": [
"from langchain.vectorstores import Chroma\n",
"from langchain.embeddings import HuggingFaceEmbeddings\n",
"from langchain.schema import Document # Import Document\n",
"import re\n",
"\n",
"# ... (rest of your code) ...\n",
"\n",
"def metadata_search(query=None, metadata_filter=None, k=10):\n",
" \"\"\"\n",
" Performs a search based on metadata, optionally with a query for content.\n",
"\n",
" Args:\n",
" query: The query string for content similarity search (optional).\n",
" metadata_filter: A dictionary specifying metadata filters.\n",
" Use a simple key-value structure for exact match\n",
" or a list of values for \"OR\" search (e.g., {\"animal\": [\"cat\", \"cattle\"]}).\n",
" k: The maximum number of results to return.\n",
"\n",
" Returns:\n",
" A list of search results matching the criteria.\n",
" \"\"\"\n",
" if query:\n",
" # If a query is provided, perform a similarity search first, applying filters if available\n",
" if metadata_filter:\n",
" results = vector_store.similarity_search(query=query, k=k, filter=metadata_filter)\n",
" else:\n",
" results = vector_store.similarity_search(query=query, k=k)\n",
" else:\n",
" # If no query, perform metadata-only search\n",
" all_docs = vector_store.get()\n",
" results = []\n",
" for doc, meta in zip(all_docs['documents'], all_docs['metadatas']):\n",
" # Check if the document's metadata matches the filter\n",
" match = True\n",
" if metadata_filter:\n",
" for key, val in metadata_filter.items():\n",
" if key in meta:\n",
" if isinstance(val, list):\n",
" # If val is a list, it's an \"OR\" search\n",
" if meta[key] not in val:\n",
" match = False\n",
" break # Stop checking if one condition fails\n",
" else:\n",
" # Otherwise, it's an exact match search\n",
" if meta[key] != val:\n",
" match = False\n",
" break # Stop checking if one condition fails\n",
" else:\n",
" # If the key is not in metadata, it's not a match\n",
" match = False\n",
" break # Stop checking if one condition fails\n",
"\n",
" if match:\n",
" # Create a Document object directly\n",
" results.append(Document(page_content=doc, metadata=meta))\n",
"\n",
" # Limit the results to k\n",
" results = results[:k]\n",
"\n",
" return results\n",
"\n",
"# Example usage:\n",
"# 1. Metadata cross-search with content query:\n",
"results = metadata_search(query=\"sleeping\", metadata_filter={\"animal\": \"cat\"})\n",
"\n",
"# 2. Metadata-only search:\n",
"results = metadata_search(metadata_filter={\"animal\": [\"cat\", \"cattle\"]}) # \"OR\" search for animal\n",
"\n",
"# 3. Wildcard search (using regex in Python):\n",
"def wildcard_search(query, key, pattern):\n",
" results = metadata_search(query=query) # Get all results or filter by query if provided\n",
" return [doc for doc in results if doc.metadata and key in doc.metadata and re.match(pattern, doc.metadata[key])]\n",
"\n",
"results = wildcard_search(query=\"any query\", key=\"animal\", pattern=\"ca.*\")"
],
"cell_type": "code",
"metadata": {
"id": "iezVBwR7Jvym"
},
"execution_count": 23,
"outputs": []
},
{
"cell_type": "code",
"source": [
"results"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "H1Wspw0fJ0UT",
"outputId": "e72e8b80-c44d-4021-c9d4-bdbe99bc8593"
},
"execution_count": 24,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"[Document(metadata={'animal': 'cattle', 'color': 'brown'}, page_content='Cattle are grazing in the field.'),\n",
" Document(metadata={'animal': 'cat', 'color': 'black'}, page_content='The cat is sleeping on the sofa.')]"
]
},
"metadata": {},
"execution_count": 24
}
]
},
{
"cell_type": "code",
"source": [
"import re\n",
"from langchain.vectorstores import Chroma\n",
"from langchain.embeddings import HuggingFaceEmbeddings\n",
"from langchain.schema import Document\n",
"\n",
"# 1. EmbeddingおよびChromaの初期化\n",
"embeddings = HuggingFaceEmbeddings(model_name=\"sentence-transformers/all-MiniLM-L6-v2\")\n",
"vector_store = Chroma(\n",
" collection_name=\"summary_index\",\n",
" embedding_function=embeddings,\n",
" persist_directory=\"./chroma_db\"\n",
")\n",
"\n",
"# 2. ドキュメント登録用データ例\n",
"# 各ドキュメントは、全文(full_text)とサマリー(summary)およびメタデータを持つ\n",
"documents_data = [\n",
" {\n",
" \"full_text\": \"The cat is sleeping on the sofa. Detailed description of the environment...\",\n",
" \"summary\": \"cat sleeping on sofa\",\n",
" \"metadata\": {\"animal\": \"cat\", \"source\": \"doc1\"}\n",
" },\n",
" {\n",
" \"full_text\": \"Cattle are grazing in the vast field. The cattle move slowly under the sun.\",\n",
" \"summary\": \"cattle grazing in field\",\n",
" \"metadata\": {\"animal\": \"cattle\", \"source\": \"doc2\"}\n",
" },\n",
" {\n",
" \"full_text\": \"The dog is barking loudly at strangers near the park.\",\n",
" \"summary\": \"dog barking at park\",\n",
" \"metadata\": {\"animal\": \"dog\", \"source\": \"doc3\"}\n",
" }\n",
"]\n",
"\n",
"# 3. 登録処理\n",
"# 検索用のサマリーを使ってベクトル化し、全文はメタデータに保持する\n",
"texts = [doc[\"summary\"] for doc in documents_data]\n",
"metadatas = [\n",
" {**doc[\"metadata\"], \"full_text\": doc[\"full_text\"]}\n",
" for doc in documents_data\n",
"]\n",
"ids = [f\"doc_{i}\" for i in range(len(documents_data))]\n",
"\n",
"# 登録(既存コレクションに追加)\n",
"vector_store.add_texts(texts=texts, metadatas=metadatas, ids=ids)\n",
"\n",
"# 4. metadata_search関数(全文・サマリー両方の検索に対応)\n",
"def metadata_search(query=None, metadata_filter=None, k=10):\n",
" \"\"\"\n",
" Metadataとオプションのクエリに基づき検索する関数。\n",
" クエリがある場合は、類似検索(サマリーのベクトル検索)を実施し、フィルタ条件を適用。\n",
" クエリがなければ、全ドキュメントからメタデータでフィルタリングを行う。\n",
" \"\"\"\n",
" if query:\n",
" if metadata_filter:\n",
" results = vector_store.similarity_search(query=query, k=k, filter=metadata_filter)\n",
" else:\n",
" results = vector_store.similarity_search(query=query, k=k)\n",
" else:\n",
" # メタデータのみで検索(全ドキュメント取得してフィルタリング)\n",
" all_docs = vector_store.get()\n",
" results = []\n",
" for doc, meta in zip(all_docs['documents'], all_docs['metadatas']):\n",
" match = True\n",
" if metadata_filter:\n",
" for key, val in metadata_filter.items():\n",
" if key in meta:\n",
" if isinstance(val, list):\n",
" if meta[key] not in val:\n",
" match = False\n",
" break\n",
" else:\n",
" if meta[key] != val:\n",
" match = False\n",
" break\n",
" else:\n",
" match = False\n",
" break\n",
" if match:\n",
" results.append(Document(page_content=doc, metadata=meta))\n",
" results = results[:k]\n",
" return results\n",
"\n",
"# 5. Wildcard search(正規表現利用)\n",
"def wildcard_search(query, key, pattern):\n",
" base_results = metadata_search(query=query) # クエリがあれば類似検索実施\n",
" return [doc for doc in base_results if doc.metadata and key in doc.metadata and re.match(pattern, doc.metadata[key])]\n",
"\n",
"# 6. Summary-based RAG Retriever\n",
"# サマリー検索で上位の結果を得た後、各結果のメタデータからfull_textを取得してDocumentに再構成\n",
"class SummaryRAGRetriever:\n",
" def __init__(self, vector_store, embeddings):\n",
" self.vector_store = vector_store\n",
" self.embeddings = embeddings\n",
"\n",
" def retrieve(self, query, metadata_filter=None, k=4):\n",
" # サマリー用の類似検索を実施(metadata_filterがあれば適用)\n",
" if metadata_filter:\n",
" results = self.vector_store.similarity_search(query=query, k=k, filter=metadata_filter)\n",
" else:\n",
" results = self.vector_store.similarity_search(query=query, k=k)\n",
" # 検索結果の各Documentのmetadataから全文(full_text)を取り出して再構成\n",
" final_results = []\n",
" for doc in results:\n",
" full_text = doc.metadata.get(\"full_text\", doc.page_content)\n",
" new_doc = Document(page_content=full_text, metadata=doc.metadata)\n",
" final_results.append(new_doc)\n",
" return final_results\n",
"\n",
"# 7. Retrieverの利用例\n",
"retriever = SummaryRAGRetriever(vector_store=vector_store, embeddings=embeddings)\n",
"\n",
"# (1) クエリ+メタデータフィルタによる検索例:\n",
"results1 = retriever.retrieve(query=\"sleeping\", metadata_filter={\"animal\": \"cat\"}, k=2)\n",
"print(\"=== クエリ+メタデータフィルタ ===\")\n",
"for doc in results1:\n",
" print(f\"* {doc.page_content}\\n {doc.metadata}\\n\")\n",
"\n",
"# (2) メタデータのみ検索(類似検索無し)例:\n",
"results2 = metadata_search(metadata_filter={\"animal\": [\"cat\", \"cattle\"]})\n",
"print(\"=== メタデータのみ検索 ===\")\n",
"for doc in results2:\n",
" # full_textはメタデータから取得\n",
" full_text = doc.metadata.get(\"full_text\", doc.page_content)\n",
" print(f\"* {full_text}\\n {doc.metadata}\\n\")\n",
"\n",
"# (3) ワイルドカード検索例(\"animal\"\"ca.*\"にマッチするもの)\n",
"results3 = wildcard_search(query=\"any query\", key=\"animal\", pattern=\"ca.*\")\n",
"print(\"=== ワイルドカード検索 ===\")\n",
"for doc in results3:\n",
" print(f\"* {doc.page_content}\\n {doc.metadata}\\n\")\n"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 699,
"referenced_widgets": [
"04dc911ff74f4ea095d95b7a2b763db8",
"6ec65a99e4d54a42bbff339696a8a8ca",
"22419d8ac9b8453c9a189f27e42e7714",
"21949c11c25e482b82dcaf7876d148ec",
"19bea70df12049c99157626b997ccf7f",
"c615b04b0c764aa9867e774288357248",
"1eb3ac910d154a51846c56fff6dd2be8",
"4a1fa428b4ce42a5ab5c5b3c2c206afd",
"6c7790fa8f40492e91c0e5d8ff26a984",
"e160ef280af44f6b97bba26f9f769264",
"9035cba7df4c4aa09e2afd5d9fbcbc7b",
"7cafe3b9d05947dc99c75664d1e4a1cf",
"57ab256d651b4822bc0082fc2930ac98",
"bb7ab0cbd5f646f89a9803ee2fcb7987",
"0ab066fc57a0486d9a47491d431202ec",
"999fad04882b4423b2b5217c43c6b533",
"de3266095cb844b892c8372df8f6888d",
"f1d4f99165914ce7a7550ff1e2cd5fb2",
"4a649d7c53f1437d9199acc99fe656b4",
"0c22b146db2b46b4aa770980026e8b3f",
"a18b0efe68ab40fa972e620cf9bff841",
"d34f015cb5b346caad4f598803f7a1d6",
"ca203854d2c24b788cb92c7bc85e4ec9",
"22f064922a5247809164c4210d4a3046",
"360fa12fdb644849938da71ca854a865",
"eec45af58dd14a55adf2cdc2f3ba1636",
"902cb4ab6df84f93b4ce63b5ff460ca0",
"fc6310dc67c54e7d9e55c05c8bcb98c0",
"878ca49912464cdbaa5c62b6ab82a09e",
"ee5e18787cf840eeb5517f52b55cab28",
"36191534c066424d8a77cfc903c301dd",
"3e06ef3835a144d4a7c26a68420c9fe7",
"1747bcd4dd9d4b00a21d50ffa38d5ab9",
"80800678bf6b430fb603c1e39baa9ba8",
"663b9da3449d4e1b96ebc43b1ca8c4d3",
"ffc9d1baa7ef4b6e9729eb4386f6cd53",
"1e60fb4c740a4cdcb2c5fbb8e558a66d",
"c9ba80337398449cad6f0c5e4be8b78d",
"cabd13f92d7d4d2cbaa8f40b0b1504f2",
"3dabf9d734b64bde8e5fe9611c16458e",
"d3542e022d63495db7f0c3c72a07fbe2",
"1feffe4df9d249fd940c9898e65d2cb6",
"0b4ac67922dc41a9b30796d757b20823",
"67158fcc91dc4010a14c2f0c907fa2ad",
"e951b3d27532452a872a23d7b736fc04",
"4f97ba0b1e7b4ce585be0d1402bda66b",
"8cec3fbcf899414483823200818053dc",
"c198d19a0cd84db5afcc07b60ca2a06d",
"83dc7563a2104b2cb8c75cfc953c4389",
"745f00b3772140a4930c113a6a4f0740",
"3cb611c6156d41f1bd5abb50dc6acf2f",
"c668cb07c3ef4d0ea6435a8e2f89257e",
"5cf62bb7a5cc4d0e8cc157d17981b43a",
"60083959a08447a7b7e651ae4a09c91f",
"683d4361dfc74858ac8d106cb1faf57b",
"1d1aab61ee2343d485b4f414686d5de6",
"f981de476cb646f9ae92818aaa5deb8a",
"aafb121d20b54f7a861821a64577ac9b",
"49311476d4ef419183f7ca35ff044784",
"f7b26f0f9aaa48f3aae863a50e390ce1",
"a880387392a34788bea70ca3dc518ed9",
"efd1d5b1a9a444d197dc89c5019488c4",
"f4139a4727844c589e171bca4f6900e9",
"af38e38f8d31456aaef21d66e3363134",
"3d6a0beb2f3148e28768d5394ed7c5f2",
"828abd67761e4195abb9b7eac93ed3ba",
"ce52dc0dbec048e5a5b3d173766a983b",
"fdd6cf323ce04240aa0bb2c89bc6643b",
"0253bd206c494a6ebdf76893249aab49",
"592527a7a445447e950d899e941773fc",
"05cdf773dca04058b8aae49f0d4c2282",
"677a1193c75c4b37bed03e5b08b6da64",
"32241a513fe14d44834cdb75f649fa28",
"83a69156c999432cb9f2f5f77867da4d",
"4f2d9bcce0ce444193b697a963a28058",
"564ef252ca3844769ce308f88a593776",
"4118ba2bc2ea47f0a9cd18551d1d88a2",
"218ae2ccd869426ba2a0c9e663668091",
"b6f7154f02a147698b1072e67adb71b7",
"372a466de03041ef8b123f091dce7f36",
"04b017185d8c4d1da5c09fa6ba9e7117",
"2e8a9d5b2c624e9696091ea4fb1c976a",
"8683bafc92634203942a238445a251f8",
"d1ff2b850a5b4ac58ef8326850c946e8",
"261b1ebf834046afb45417b2994414c2",
"c0d8ac8d12dc40d9b0bee4047d2e1b39",
"83584f7e3d0e497abb1bffc281398fd3",
"8cf238e3f02c4be99dea59418b5b43eb",
"1c49a4f68d674c6aa312cb1b18cdb3bd",
"801a2886f67f492694f628d4a9e91419",
"cc1886eb42ae4757bb2a6e72d1938a17",
"8c21a4cfa7044fc99145a8453f14b5c9",
"4c5001ef6af846df864273e27fef986c",
"646b35a117b64b4883e4fdf3dfc73561",
"335ed7b2aac44644a99119748d2adb55",
"668d0b88a0a14316a739eb98c8830122",
"631c04cc629b4a009ac3f72b9e8a3496",
"6e5fbfaa100645589a48dec4168e8f9e",
"12e78c53961a44f0879e4b6839db3956",
"418d5c17826147e3b35cf704e275a403",
"511aa86e6b0348f595991441af4e89f7",
"153a447d305a4d6fb7871d14f9e3cb9d",
"04be014620d942388d876ea1848fc597",
"eb7e1031315f473f8839dd014573f192",
"1629f0cb6624465ab38c346f977494a7",
"ace467399fd5472aae7cfe7bdf9379b7",
"39c4546b72c7482cb6444b8c5d75810a",
"666b4ca2526648d7824d6b17222ce0bf",
"a11b54c4dc084330aa4fb3f87387a2b2",
"72e40e7756f64733a2d2e0976740728d",
"448c98e8538e49f9813f868ccef70c18",
"6009c79a386a42f7bd5ac1a7b2876cfd",
"c51e561f5b6548c4b16b5d8f6e3fd84e",
"e005440825b84f7888b35396deaac974",
"1cee72c475f1408a9bb55f8f2b2726d6",
"d1f1b6ab1c1c4a559a376c7294e3afed",
"c3b42e2410cb49949a1d09bc2785e122",
"93a5592a68df4626af95c24e8221d541",
"7f8d6c1e9ba946a792b85645d74dc9f9",
"e7985c688bcd4f5685e085cc7afeaf3e",
"314300f5e0e74bd4b124f5beb85ebb5e"
]
},
"id": "h-b_cRhnSAlp",
"outputId": "5ad7d8f6-6b6d-4e85-d57b-3c73f0f8347f"
},
"execution_count": 25,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": [
"modules.json: 0%| | 0.00/349 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "04dc911ff74f4ea095d95b7a2b763db8"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"config_sentence_transformers.json: 0%| | 0.00/116 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "7cafe3b9d05947dc99c75664d1e4a1cf"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"README.md: 0%| | 0.00/10.5k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "ca203854d2c24b788cb92c7bc85e4ec9"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"sentence_bert_config.json: 0%| | 0.00/53.0 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "80800678bf6b430fb603c1e39baa9ba8"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"config.json: 0%| | 0.00/612 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "e951b3d27532452a872a23d7b736fc04"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"model.safetensors: 0%| | 0.00/90.9M [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "1d1aab61ee2343d485b4f414686d5de6"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"tokenizer_config.json: 0%| | 0.00/350 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "ce52dc0dbec048e5a5b3d173766a983b"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"vocab.txt: 0%| | 0.00/232k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "218ae2ccd869426ba2a0c9e663668091"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"tokenizer.json: 0%| | 0.00/466k [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "1c49a4f68d674c6aa312cb1b18cdb3bd"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"special_tokens_map.json: 0%| | 0.00/112 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "418d5c17826147e3b35cf704e275a403"
}
},
"metadata": {}
},
{
"output_type": "display_data",
"data": {
"text/plain": [
"config.json: 0%| | 0.00/190 [00:00<?, ?B/s]"
],
"application/vnd.jupyter.widget-view+json": {
"version_major": 2,
"version_minor": 0,
"model_id": "448c98e8538e49f9813f868ccef70c18"
}
},
"metadata": {}
},
{
"output_type": "stream",
"name": "stdout",
"text": [
"=== クエリ+メタデータフィルタ ===\n",
"* The cat is sleeping on the sofa. Detailed description of the environment...\n",
" {'animal': 'cat', 'source': 'doc1', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...'}\n",
"\n",
"=== メタデータのみ検索 ===\n",
"* The cat is sleeping on the sofa. Detailed description of the environment...\n",
" {'source': 'doc1', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...', 'animal': 'cat'}\n",
"\n",
"* Cattle are grazing in the vast field. The cattle move slowly under the sun.\n",
" {'source': 'doc2', 'animal': 'cattle', 'full_text': 'Cattle are grazing in the vast field. The cattle move slowly under the sun.'}\n",
"\n",
"=== ワイルドカード検索 ===\n",
"* cattle grazing in field\n",
" {'source': 'doc2', 'animal': 'cattle', 'full_text': 'Cattle are grazing in the vast field. The cattle move slowly under the sun.'}\n",
"\n",
"* cat sleeping on sofa\n",
" {'animal': 'cat', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...', 'source': 'doc1'}\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"from langchain.vectorstores import Chroma\n",
"from langchain.embeddings import HuggingFaceEmbeddings\n",
"from langchain.schema import Document\n",
"import re\n",
"\n",
"# EmbeddingとChromaの初期化\n",
"embeddings = HuggingFaceEmbeddings(model_name=\"sentence-transformers/all-MiniLM-L6-v2\")\n",
"vector_store = Chroma(\n",
" collection_name=\"summary_index\",\n",
" embedding_function=embeddings,\n",
" persist_directory=\"./chroma_db\"\n",
")\n",
"\n",
"# ドキュメントデータ例(全文とサマリー、メタデータを保持)\n",
"documents_data = [\n",
" {\n",
" \"full_text\": \"The cat is sleeping on the sofa. Detailed description of the environment...\",\n",
" \"summary\": \"cat sleeping on sofa\",\n",
" \"metadata\": {\"animal\": \"cat\", \"source\": \"doc1\"}\n",
" },\n",
" {\n",
" \"full_text\": \"Cattle are grazing in the vast field. The cattle move slowly under the sun.\",\n",
" \"summary\": \"cattle grazing in field\",\n",
" \"metadata\": {\"animal\": \"cattle\", \"source\": \"doc2\"}\n",
" },\n",
" {\n",
" \"full_text\": \"The dog is barking loudly at strangers near the park.\",\n",
" \"summary\": \"dog barking at park\",\n",
" \"metadata\": {\"animal\": \"dog\", \"source\": \"doc3\"}\n",
" }\n",
"]\n",
"\n",
"# 登録処理:検索用サマリーでインデックスを作成し、全文はmetadataに保持する\n",
"texts = [doc[\"summary\"] for doc in documents_data]\n",
"metadatas = [\n",
" {**doc[\"metadata\"], \"full_text\": doc[\"full_text\"]}\n",
" for doc in documents_data\n",
"]\n",
"ids = [f\"doc_{i}\" for i in range(len(documents_data))]\n",
"\n",
"vector_store.add_texts(texts=texts, metadatas=metadatas, ids=ids)\n",
"\n",
"def metadata_search(query=None, metadata_filter=None, k=10):\n",
" \"\"\"\n",
" クエリとメタデータフィルタに基づいて検索を実施します。\n",
" クエリがある場合は類似検索を、ない場合は全件取得してフィルタリングを行います。\n",
" \"\"\"\n",
" if query:\n",
" if metadata_filter:\n",
" results = vector_store.similarity_search(query=query, k=k, filter=metadata_filter)\n",
" else:\n",
" results = vector_store.similarity_search(query=query, k=k)\n",
" else:\n",
" all_docs = vector_store.get()\n",
" results = []\n",
" for doc, meta in zip(all_docs['documents'], all_docs['metadatas']):\n",
" match = True\n",
" if metadata_filter:\n",
" for key, val in metadata_filter.items():\n",
" if key in meta:\n",
" if isinstance(val, list):\n",
" if meta[key] not in val:\n",
" match = False\n",
" break\n",
" else:\n",
" if meta[key] != val:\n",
" match = False\n",
" break\n",
" else:\n",
" match = False\n",
" break\n",
" if match:\n",
" results.append(Document(page_content=doc, metadata=meta))\n",
" results = results[:k]\n",
" return results\n",
"\n",
"def wildcard_search(query, key, pattern):\n",
" base_results = metadata_search(query=query)\n",
" return [doc for doc in base_results if doc.metadata and key in doc.metadata and re.match(pattern, doc.metadata[key])]\n",
"\n",
"# Retriever実装:検索結果の各Documentのmetadataに\"full_text\"があればそれをpage_contentに設定して返す\n",
"class SummaryRAGRetriever:\n",
" def __init__(self, vector_store, embeddings):\n",
" self.vector_store = vector_store\n",
" self.embeddings = embeddings\n",
"\n",
" def retrieve(self, query, metadata_filter=None, k=4):\n",
" if metadata_filter:\n",
" results = self.vector_store.similarity_search(query=query, k=k, filter=metadata_filter)\n",
" else:\n",
" results = self.vector_store.similarity_search(query=query, k=k)\n",
" final_results = []\n",
" for doc in results:\n",
" # 必ず metadata に \"full_text\" があるかチェック\n",
" if \"full_text\" in doc.metadata:\n",
" new_content = doc.metadata[\"full_text\"]\n",
" else:\n",
" # 存在しない場合は警告表示や例外を投げることも検討可能\n",
" new_content = doc.page_content\n",
" # LangChainのRetriever互換にするため、返すDocumentのpage_contentはfull_text\n",
" new_doc = Document(page_content=new_content, metadata=doc.metadata)\n",
" final_results.append(new_doc)\n",
" return final_results\n",
"\n",
"# Retrieverの利用例\n",
"retriever = SummaryRAGRetriever(vector_store=vector_store, embeddings=embeddings)\n",
"\n",
"# (1) クエリ+メタデータフィルタによる検索例\n",
"results1 = retriever.retrieve(query=\"sleeping\", metadata_filter={\"animal\": \"cat\"}, k=3)\n",
"print(\"=== クエリ+メタデータフィルタ ===\")\n",
"for doc in results1:\n",
" print(f\"* {doc.page_content}\\n {doc.metadata}\\n\")\n",
"\n",
"# (2) メタデータのみ検索(類似検索無し)例\n",
"results2 = metadata_search(metadata_filter={\"animal\": [\"cat\", \"cattle\"]})\n",
"print(\"=== メタデータのみ検索 ===\")\n",
"for doc in results2:\n",
" # metadataにあるfull_textをそのまま出力\n",
" print(f\"* {doc.metadata.get('full_text', doc.page_content)}\\n {doc.metadata}\\n\")\n",
"\n",
"# (3) ワイルドカード検索例(\"animal\"\"ca.*\"にマッチするもの)\n",
"results3 = wildcard_search(query=\"any query\", key=\"animal\", pattern=\"ca.*\")\n",
"print(\"=== ワイルドカード検索 ===\")\n",
"for doc in results3:\n",
" print(f\"* {doc.metadata.get('full_text', doc.page_content)}\\n {doc.metadata}\\n\")\n"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "I_fov52LWdim",
"outputId": "42fad925-4d31-41a8-9fd7-77a52e96ed31"
},
"execution_count": 29,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"=== クエリ+メタデータフィルタ ===\n",
"* The cat is sleeping on the sofa. Detailed description of the environment...\n",
" {'animal': 'cat', 'source': 'doc1', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...'}\n",
"\n",
"=== メタデータのみ検索 ===\n",
"* The cat is sleeping on the sofa. Detailed description of the environment...\n",
" {'source': 'doc1', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...', 'animal': 'cat'}\n",
"\n",
"* Cattle are grazing in the vast field. The cattle move slowly under the sun.\n",
" {'animal': 'cattle', 'full_text': 'Cattle are grazing in the vast field. The cattle move slowly under the sun.', 'source': 'doc2'}\n",
"\n",
"=== ワイルドカード検索 ===\n",
"* Cattle are grazing in the vast field. The cattle move slowly under the sun.\n",
" {'animal': 'cattle', 'source': 'doc2', 'full_text': 'Cattle are grazing in the vast field. The cattle move slowly under the sun.'}\n",
"\n",
"* The cat is sleeping on the sofa. Detailed description of the environment...\n",
" {'animal': 'cat', 'source': 'doc1', 'full_text': 'The cat is sleeping on the sofa. Detailed description of the environment...'}\n",
"\n"
]
}
]
}
]
}

Comments are disabled for this gist.