-
AI處理邏輯,人dd
查看全部 -
ce
查看全部 -
記錄打卡點(diǎn)
查看全部 -
2025.4.6 不明 要再看一遍
查看全部 -
ConversationChain:
????ChatPromptTemplate
????ChatModels
????ConversationBufferMemory
MessagesPlaceholder
ConversationBufferMemory
ChatTongyi
查看全部0 采集 收起 來(lái)源:實(shí)戰(zhàn)6-使用Langchain實(shí)現(xiàn)聊天機(jī)器人,掌握聊天機(jī)器人的實(shí)現(xiàn)方式2024-09-05
-
LangChain memory:記憶 -- 聊天歷史
ConversationBufferMemory
查看全部 -
LLM Models:文本完成模型
Chat Models:聊天模型
查看全部 -
LLMBashChain:執(zhí)行命令
AlarmChain:是否告警
APIChain:通過(guò)HTTP請(qǐng)求發(fā)送告警信息
????http://httpbin.org/get
查看全部 -
chain = {
????'search_results': lambda x: get_search_results(x),
????'query': lambda x: x,
} | prompt | model
chain.invoke(query="?")
查看全部0 采集 收起 來(lái)源:實(shí)戰(zhàn)4-使用Langchain實(shí)現(xiàn)AI搜索,提升Langchain使用技巧,改造AI搜索實(shí)現(xiàn)2024-09-04
-
create_stuff_documents_chain
查看全部 -
Chains指將一系列的調(diào)用組裝成序列
Chains的最新實(shí)現(xiàn):LangChain Expression Language{LCEL}
langsmith獲得可觀察性
遺留版本:
????from langchain.chains import LLMChain
????chain = LLMChain(prompt=prompt, llm=model, output_parser=parser)
推薦版本:{ | -- 相當(dāng)于將上一個(gè)輸出作為下一個(gè)輸入 }
????chain =?prompt | model | parser
查看全部 -
chain
查看全部
舉報(bào)