mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 22:44:36 +00:00
Templates (#12294)
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> Co-authored-by: Lance Martin <lance@langchain.dev> Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
from summarize_anthropic.chain import chain
|
||||
|
||||
__all__ = ["chain"]
|
@@ -0,0 +1,8 @@
|
||||
from langchain import hub
|
||||
from langchain.chat_models import ChatAnthropic
|
||||
from langchain.schema.output_parser import StrOutputParser
|
||||
|
||||
# Create chain
|
||||
prompt = hub.pull("hwchase17/anthropic-paper-qa")
|
||||
model = ChatAnthropic(model="claude-2", max_tokens=10000)
|
||||
chain = prompt | model | StrOutputParser()
|
Reference in New Issue
Block a user