Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from langchain import FewShotPromptTemplate
|
|
5 |
from langchain.prompts.example_selector import LengthBasedExampleSelector
|
6 |
from dotenv import load_dotenv
|
7 |
|
8 |
-
load_dotenv()
|
9 |
|
10 |
def getLLMResponse(query,age_option,tasktype_option):
|
11 |
examples = []
|
@@ -113,7 +113,7 @@ def getLLMResponse(query,age_option,tasktype_option):
|
|
113 |
example_selector = LengthBasedExampleSelector(
|
114 |
examples=examples,
|
115 |
example_prompt=example_prompt,
|
116 |
-
max_length=
|
117 |
)
|
118 |
|
119 |
|
|
|
5 |
from langchain.prompts.example_selector import LengthBasedExampleSelector
|
6 |
from dotenv import load_dotenv
|
7 |
|
8 |
+
load_dotenv() # load the env-sample.txt file
|
9 |
|
10 |
def getLLMResponse(query,age_option,tasktype_option):
|
11 |
examples = []
|
|
|
113 |
example_selector = LengthBasedExampleSelector(
|
114 |
examples=examples,
|
115 |
example_prompt=example_prompt,
|
116 |
+
max_length=numberOfWords
|
117 |
)
|
118 |
|
119 |
|