diff --git a/dsLightRag/Topic/Chemistry/kv_store_doc_status.json b/dsLightRag/Topic/Chemistry/kv_store_doc_status.json index 7cf5ee97..c1455029 100644 --- a/dsLightRag/Topic/Chemistry/kv_store_doc_status.json +++ b/dsLightRag/Topic/Chemistry/kv_store_doc_status.json @@ -1,12 +1,12 @@ { - "doc-e396943b31916331288c8d48716ba964": { + "doc-649eda4a829e2210c955c627ef9e4b49": { "status": "processing", "chunks_count": 1, - "content": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示:\n![氢气在氧气中燃烧的现象 - 生活 -\n布条百科](./static/Images/cdb29037bef24c8eaea74ac3ca2eaf5e/media/image1.png){width=\"3.6132075678040243in\"", - "content_summary": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示:\n![氢气在氧气中燃烧的现象 - 生活 -\n布条百科](./static/Images/cdb29037bef24c8eaea74ac3ca2eaf5e/media/image1.png){widt...", - "content_length": 274, - "created_at": "2025-07-09T08:01:14.988081+00:00", - "updated_at": "2025-07-09T08:01:14.990490+00:00", + "content": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示:\n![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)", + "content_summary": "硝酸光照分解的方程式\n$$4HNO_{3}overset{overset{}{phantom{Delta}}}{underset{underset{}{text{或光照}}}{=}}4NO_{2} uparrow + O_{2} uparrow + 2HO_{2}$$\n氢气与氧气燃烧的现象如下图所示:\n![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)", + "content_length": 222, + "created_at": "2025-07-09T08:05:51.068278+00:00", + "updated_at": "2025-07-09T08:05:51.071523+00:00", "file_path": "unknown_source" } } \ No newline at end of file diff --git a/dsLightRag/Util/DocxUtil.py b/dsLightRag/Util/DocxUtil.py index fa5dd3b0..10bae2aa 100644 --- a/dsLightRag/Util/DocxUtil.py +++ b/dsLightRag/Util/DocxUtil.py @@ -25,8 +25,6 @@ def get_docx_content_by_pandoc(docx_file): if line.startswith('height=') and line.endswith('in"}'): continue # 使用find()方法安全地检查图片模式 - is_wmf = line.find("![](") >= 0 and line.find(".wmf") > 0 - # 使用find()方法安全地检查图片模式 is_img = line.find("![](") >= 0 and ( line.find(".png") > 0 or line.find(".jpg") > 0 or @@ -36,7 +34,7 @@ def get_docx_content_by_pandoc(docx_file): # ![](media/image3.png){width="3.1251607611548557in" # height="3.694634733158355in"} # ![](../static/Images/01b20e04085e406ea5375791da58a60f/media/image3.png){width="3.1251607611548557in" - pos = line.find("\)") + pos = line.find(")") q = line[:pos + 1] img_idx += 1 content += q + "\n" diff --git a/dsLightRag/static/Images/4427eb944d5242069c8fcbc67d4a6765/media/image1.png b/dsLightRag/static/Images/4427eb944d5242069c8fcbc67d4a6765/media/image1.png new file mode 100644 index 00000000..3c219b5e Binary files /dev/null and b/dsLightRag/static/Images/4427eb944d5242069c8fcbc67d4a6765/media/image1.png differ diff --git a/dsLightRag/static/Images/4f513c8c925a48b6ab23dacc770f5854/media/image1.png b/dsLightRag/static/Images/4f513c8c925a48b6ab23dacc770f5854/media/image1.png new file mode 100644 index 00000000..e6d83277 Binary files /dev/null and b/dsLightRag/static/Images/4f513c8c925a48b6ab23dacc770f5854/media/image1.png differ diff --git a/dsLightRag/static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png b/dsLightRag/static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png new file mode 100644 index 00000000..3c219b5e Binary files /dev/null and b/dsLightRag/static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png differ diff --git a/dsLightRag/static/Txt/Chemistry.docx b/dsLightRag/static/Txt/Chemistry.docx index 1be687a2..508cd45c 100644 Binary files a/dsLightRag/static/Txt/Chemistry.docx and b/dsLightRag/static/Txt/Chemistry.docx differ diff --git a/dsLightRag/static/markdown/Chemistry.md b/dsLightRag/static/markdown/Chemistry.md index ef71ee38..5c9d1c47 100644 --- a/dsLightRag/static/markdown/Chemistry.md +++ b/dsLightRag/static/markdown/Chemistry.md @@ -1,9 +1,4 @@ 硝酸光照分解的方程式 - $$4HNO_{3}\overset{\overset{}{\phantom{\Delta}}}{\underset{\underset{}{\text{或光照}}}{=}}4NO_{2} \uparrow + O_{2} \uparrow + 2HO_{2}$$ - 氢气与氧气燃烧的现象如下图所示: - -![氢气在氧气中燃烧的现象 - 生活 - -布条百科](./static/Images/0f45b267e04a4ceb8b28b43ce48b4c87/media/image1.png){width="3.6132075678040243in" -height="2.887173009623797in"} +![](./static/Images/b1737f8d76564d9e86123045b53fc973/media/image1.png)