diff --git a/ch3/jupyter-notebooks/components.ipynb b/ch3/jupyter-notebooks/components.ipynb index d9587d7..f5b57cf 100644 --- a/ch3/jupyter-notebooks/components.ipynb +++ b/ch3/jupyter-notebooks/components.ipynb @@ -220,7 +220,30 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": 53, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 53, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "filters_df = {\n", + " \"dataframe.age\": {\"$eq\": 35}\n", + "}\n", + "docstore.filter_documents(filters=filters_df)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 54, "metadata": {}, "outputs": [ { @@ -232,16 +255,16 @@ " Document(id='4', content=None, dataframe=None, blob=ByteStream(data=b'Your binary data here', metadata={}, mime_type='application/pdf'), meta={'file_name': 'example.pdf', 'file_type': 'PDF'}, score=None)]" ] }, - "execution_count": 45, + "execution_count": 54, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "filters_exact_match = {\n", + "filters_none = {\n", " \"content\": {\"$eq\": None}\n", "}\n", - "docstore.filter_documents(filters=filters_exact_match)\n" + "docstore.filter_documents(filters=filters_none)\n" ] }, {