This commit is contained in:
2025-08-28 07:32:04 +08:00
parent 67adcf5e79
commit 31ab2d4127
10 changed files with 76 additions and 9 deletions

View File

@@ -46,8 +46,8 @@ async def main():
file_path = os.path.join(docx_file, filename) file_path = os.path.join(docx_file, filename)
# 获取docx文件的内容 # 获取docx文件的内容
if filename.endswith(".docx"): if filename.endswith(".docx"):
continue #continue
# content = get_docx_content_by_pandoc(file_path) content = get_docx_content_by_pandoc(file_path)
elif filename.endswith(".txt"): elif filename.endswith(".txt"):
with open(file_path, "r", encoding="utf-8") as f: with open(file_path, "r", encoding="utf-8") as f:
content = f.read() content = f.read()

View File

@@ -0,0 +1,4 @@
from Util.DocxUtil import get_docx_content_by_pandoc
if __name__ == '__main__':
get_docx_content_by_pandoc(r"D:\dsWork\dsProject\dsLightRag\YunXiao\《万有引力定律》试题\《万有引力定律》拔高题1.docx")

View File

@@ -1,12 +1,8 @@
import logging import logging
import os import os
import subprocess import subprocess
import uuid
from PIL import Image from PIL import Image
import os
from networkx.algorithms.bipartite.centrality import betweenness_centrality
# 或者如果你想更详细地控制日志输出 # 或者如果你想更详细地控制日志输出
logger = logging.getLogger('DocxUtil') logger = logging.getLogger('DocxUtil')
@@ -143,3 +139,4 @@ def get_docx_content_by_pandoc(docx_file):
return content.replace("\n\n", "\n").replace("\\", "/") return content.replace("\n\n", "\n").replace("\\", "/")
else: else:
return None return None

View File

@@ -1,11 +1,12 @@
import logging import logging
import logging.config import logging.config
import os import os
import numpy as np import numpy as np
from lightrag import LightRAG from lightrag import LightRAG
from lightrag.kg.shared_storage import initialize_pipeline_status from lightrag.kg.shared_storage import initialize_pipeline_status
from lightrag.llm.openai import openai_complete_if_cache, openai_embed from lightrag.llm.openai import openai_complete_if_cache, openai_embed
from lightrag.rerank import jina_rerank, custom_rerank from lightrag.rerank import custom_rerank
from lightrag.utils import EmbeddingFunc, logger, set_verbose_debug from lightrag.utils import EmbeddingFunc, logger, set_verbose_debug
import Config.Config import Config.Config
@@ -144,8 +145,8 @@ def create_llm_model_func():
def create_embedding_func(): def create_embedding_func():
return EmbeddingFunc( return EmbeddingFunc(
embedding_dim=1024, embedding_dim=EMBED_DIM,
max_token_size=8192, max_token_size=EMBED_MAX_TOKEN_SIZE,
func=lambda texts: openai_embed( func=lambda texts: openai_embed(
texts, texts,
model=EMBED_MODEL_NAME, model=EMBED_MODEL_NAME,

View File

@@ -0,0 +1,65 @@
> 1\.
> 我国首颗超百*Gbps*容量高通量地球静止轨道通信卫星中星26号卫星于北京时间2023年2月23日在西昌卫星发射中心成功发射该卫星主要用于为固定端及车、船、机载终端提供高速宽带接入服务。如图某时刻中星26与椭圆轨道侦察卫星恰好位于C、*D*两点,两星轨道相交于*A*、*B*两点,*C*、*D*连线过地心,*D*点为远地点,两卫星运行周期都为*T*。下列说法正确的是(  )
>
> ![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image1.png){width="4.574073709536308in"
> height="2.7777777777777777in"}
>
> A 中星26与侦察卫星可能在*A*点或*B*点相遇
>
> B 侦查卫星从*D*点运动到*A*点过程中机械能增大
>
> C 中星26在*C*点线速度
> ![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image2.png){width="0.15625in"
> height="0.25in"}与侦察卫星在*D*点线速度
> ![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image3.png){width="0.16666666666666666in"
> height="0.25in"}相等
>
> D
> 相等时间内中星26与地球的连线扫过的面积大于侦察卫星与地球的连线扫过的面积
>
> 【难度】\
>
>
> 【答案】
>
> D
>
> 【解析】
>
> 【解答】A.中星26与侦察卫星周期相同并且当中星26在下半周运动时卫星在上半周运动故不可能相遇故A错误\
> \
> B.侦察卫星在D到A点过程中只有引力做功故机械能不变故B错误\
> \
> C.开普勒第二定律可知在近地点速度大于远地点速度故中星26在*C*点线速度
> ![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image2.png){width="0.15625in"
> height="0.25in"}大于侦察卫星在*D*点线速度
> ![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image3.png){width="0.16666666666666666in"
> height="0.25in"} 故C错误\
> \
> D.中星26与侦察卫星的周期相同由开普勒第三定律![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image4.png){width="0.5104166666666666in"
> height="0.4583333333333333in"}
> 中星26轨道半径等于侦察卫星的半长轴运动一个周期中星26是一个圆而侦察卫星是一个椭圆由于圆的面积大于椭圆的面积故相等时间内中星26与地球的连线扫过的面积大于侦察卫星与地球的连线扫过的面积故D正确\
> \
> 故答案为D。\
> \
> 【分析】A.分析可知两星周期相同,且刚好相对的半周期运动,故不会相遇;\
> \
> B.引力做功机械能守恒;\
> \
> C.开普勒第二定律可知,在近地点速度大于远地点速度;\
> \
> D.由开普勒第三定律![](./static/Images/760c54b8e6491d7c3ac566d6299818a4/media/image4.png){width="0.5104166666666666in"
> height="0.4583333333333333in"}
> 周期相同中星26轨道半径等于侦察卫星的半长轴。
>
> 【关联章节】第七章 万有引力与宇宙航行第七章 万有引力与宇宙航行 \> 1.
> 行星的运动第七章 万有引力与宇宙航行 \> 2. 万有引力定律;
>
> 【关联知识点】相互作用与运动规律经典力学的成就与局限性 \>
> 开普勒第一定律经典力学的成就与局限性 \>
> 开普勒第三定律经典力学的成就与局限性 \>
> 开普勒第二定律经典力学的成就与局限性 \> 万有引力定律;
>
> 【关联素养点】暂无数据
>
> 【关联关键能力】暂无数据

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B