0929 作业 使用langchain实现一个Rag #295
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#295
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
基本效果如下:
代码如下,参考了老师的讲课内容,也参考了 官网 (https://python.langchain.com/v0.1/docs/use_cases/chatbots/retrieval/#document-chains):
有一点遗憾,还没找到聊天记录自动管理的解决方案,上面的代码还是用的手动管理。
另外,我发现,通过LCEL创建的chain,在invoke的时候只能接收字符串形式的参数,而通过 create_stuff_documents_chain 创建的chain,可以接受dict类型的参数,是我的错觉么?