2025.11.6
This commit is contained in:
1 parent
138a7cf9f4
commit
033a687e65
17 files changed
+66737
-8
No files matched your search
@@ -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()}
|
||||
|
||||
Reference in new issue
Block a user