2025.11.6

This commit is contained in:
2287551746@qq.com
2025-11-06 18:48:54 +08:00
parent 138a7cf9f4
commit 033a687e65
17 changed files with 66737 additions and 8 deletions
+1
View File
@@ -83,6 +83,7 @@ llm = ChatOpenAI(
def format_docs(docs):
return "\n".join(doc.page_content for doc in docs)
# 5. 组装 RAG 链条(LCEL)
rag_chain = (
{"context":retrieve | format_docs,"question":RunnablePassthrough()}