Delete components/tag_chain.py
Browse files- components/tag_chain.py +0 -16
components/tag_chain.py
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
from langchain.prompts import PromptTemplate
|
2 |
-
from langchain.chains import LLMChain
|
3 |
-
|
4 |
-
def chain(llm):
|
5 |
-
sum_template = """what is the most significant actions or places or things, say it in at most 5 words :
|
6 |
-
|
7 |
-
{sentence}
|
8 |
-
|
9 |
-
|
10 |
-
"""
|
11 |
-
|
12 |
-
sum_prompt = PromptTemplate(template=sum_template, input_variables=["sentence"])
|
13 |
-
|
14 |
-
sum_llm_chain = LLMChain(prompt=sum_prompt, llm=llm)
|
15 |
-
|
16 |
-
return sum_llm_chain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|