Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ load_dotenv()
|
|
14 |
# Hyperparameters
|
15 |
PDF_CHUNK_SIZE = 1024
|
16 |
PDF_CHUNK_OVERLAP = 256
|
17 |
-
k =
|
18 |
|
19 |
# Load favicon image
|
20 |
def load_and_pad_image(image_path, size=(64, 64)):
|
@@ -97,7 +97,7 @@ def main():
|
|
97 |
)
|
98 |
|
99 |
system_prompt = """
|
100 |
-
You are a friendly and knowledgeable assistant who is an expert in medical education
|
101 |
"""
|
102 |
|
103 |
template = f"""
|
|
|
14 |
# Hyperparameters
|
15 |
PDF_CHUNK_SIZE = 1024
|
16 |
PDF_CHUNK_OVERLAP = 256
|
17 |
+
k = 7
|
18 |
|
19 |
# Load favicon image
|
20 |
def load_and_pad_image(image_path, size=(64, 64)):
|
|
|
97 |
)
|
98 |
|
99 |
system_prompt = """
|
100 |
+
You are a friendly and knowledgeable assistant who is an expert in medical education who will only answer from the context provided.
|
101 |
"""
|
102 |
|
103 |
template = f"""
|