Skip to content

Commit

Permalink
tutorial70
Browse files Browse the repository at this point in the history
  • Loading branch information
ronidas39 committed May 28, 2024
1 parent 46dabd3 commit 5fdfee6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tutorial70/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from langchain.prompts import ChatPromptTemplate
from langchain_groq import ChatGroq
llm=ChatGroq(model="llama3-8b-8192")
system="you are an inteeligent assistant"
human="{text}"
prompt=ChatPromptTemplate.from_messages([
("system",system),
("human",human)
]
)
chain=prompt | llm
response=chain.invoke({"text":"write all formulas for differentiation"})
print(response.content)
Binary file added tutorial70/tutorial70.pptx
Binary file not shown.

0 comments on commit 5fdfee6

Please sign in to comment.