(1)获取【API Base URL】:固定为:https://api.ppinfra.com/v3/openai(2) 获取【API Key】:登录派欧云控制台API密钥管理页面,点击创建按钮。注册账号记得填写邀请码【VOJL20】(3)生成并保存【API密钥】!!注意:密钥在服务端是加密存储,请在生成时保存好密钥;若遗失可以在控制台上删除并创建一个新的密钥。(4)获取需要使用的模型ID,推荐使用:
#MAKE SURE the python version is greater than or equal to 3.10python3 -m venv .venvsource .venv/bin/activate
(3)安装依赖
Copy
Ask AI
pip install -e .
配置 deep searcher
(1)配置代码
Copy
Ask AI
import loggingimport osfrom deepsearcher.offline_loading import load_from_local_filesfrom deepsearcher.online_query import queryfrom deepsearcher.configuration import Configuration, init_confighttpx_logger = logging.getLogger("httpx") # disable openai's logger outputhttpx_logger.setLevel(1ogging.WARNING)current_dir = os.path.dirname(os.path.abspath(__file__))config = Configuration() # Customize your config hereconfig.set_provider_config("llm","PPIO",{"model":"deepseek/deepseek-r1-turbo"})config.set_provider_config("embedding","PPIOEmbedding", {"model":"baai/bge-m3"})init_config(config=config)# You should clone the milvus docs repo to your local machine first, execute:# git clone https://github.com/milvus-io/milvus-docs.git# Then replace the path below with the path to the milvus-docs repo on your local machine# import glob# all_md_files = glob.glob('xx/milvus-docs/site/en/**/*.md',recursive=True)# load_from_local_files(paths_or_directory=all_md_files, collection_name="milvus_docs", collection_description="All Milvus Documents")# Hint: You can also load a single file, please execute it in the root directory of the deep searcher projectload_from_local_files( paths_or_directory=os.path.join(current_dir, "data/ducument_name.pdf"), collection_name="xxx", collection_description="xxx", force_new_collection=True, # If you want to drop origin collection and create a new collection every time,set force_new_collection to True)question="xxx"
load_from_local_files( paths_or_directory=os.path.join(current_dir, "data/ducument_name.pdf"), collection_name="xxx", collection_description="xxx", force_new_collection=True, # If you want to drop origin collection and create a new collection every time,set force_new_collection to True)question="xxx"
请从财务和宏观经济角度,对 A 股新能源汽车行业以及行业内 TOP5 车企的发展进行分析。在财务分析部分,需涵盖基本的财务关键指标。在宏观经济分析部分,考虑宏观经济指标对行业的影响,对 A 股新能源汽车行业整体发展趋势进行总结,并基于财务和宏观经济分析,对 TOP5 新能源车企的未来发展潜力和竞争态势做出比较和预测,指出各车企的优势与挑战。请以专业、严谨的语言,结合具体数据进行分析阐述。