diff --git a/.env.example b/.env.example index fedb5ec..24a61b3 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # LLM密钥 OPENAI_API_KEY=your_openai_api_key -# LangSmith 相关配置(用于调试/监控Langgraph流程) -- 未用到可暂时不更改 +# LangSmith 相关配置(用于调试/监控Langgraph流程) —— 未用到可暂时不更改 LANGCHAIN_API_KEY=your_langsmith_api_key \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c117aec..f336d4a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,6 @@ name: Python CI + on: push: branches: [ main, master ] diff --git a/embeddings.py b/embeddings.py index 71790e5..35ac8d2 100644 --- a/embeddings.py +++ b/embeddings.py @@ -3,7 +3,7 @@ from pathlib import Path from langchain_huggingface import HuggingFaceEmbeddings -# 获取embeddings模型 - 首次调用时自动下载 +# 获取embeddings模型 -- 首次调用时自动下载 def get_embeddings(model_name="BAAI/bge-small-zh-v1.5",device="cpu",**kwargs): # 支持更换其他向量化模型 local_dir = Path("models")/model_name.replace("/", "_")