|
|
@ -8,6 +8,8 @@ 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.utils import EmbeddingFunc, logger, set_verbose_debug
|
|
|
|
from lightrag.utils import EmbeddingFunc, logger, set_verbose_debug
|
|
|
|
|
|
|
|
from openai import OpenAI
|
|
|
|
|
|
|
|
|
|
|
|
from Config.Config import *
|
|
|
|
from Config.Config import *
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -181,7 +183,11 @@ def create_vision_model_func(llm_model_func):
|
|
|
|
return vision_model_func
|
|
|
|
return vision_model_func
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def format_exam_content(client, raw_text, output_path):
|
|
|
|
def format_exam_content(raw_text, output_path):
|
|
|
|
|
|
|
|
client = OpenAI(
|
|
|
|
|
|
|
|
api_key=LLM_API_KEY,
|
|
|
|
|
|
|
|
base_url=LLM_BASE_URL,
|
|
|
|
|
|
|
|
)
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
将OCR识别的原始试卷内容格式化为标准试题格式
|
|
|
|
将OCR识别的原始试卷内容格式化为标准试题格式
|
|
|
|
|
|
|
|
|
|
|
|