Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
182be0b
1
Parent(s):
f900934
'debug'
Browse files
app.py
CHANGED
@@ -357,7 +357,7 @@ try:
|
|
357 |
logger.info("#### getRagData() entered.")
|
358 |
###############################################################################
|
359 |
# Initial the the sentence transformer and encode the query prompt.
|
360 |
-
logger.debug(f"#### Encode text query prompt to create vectors. {
|
361 |
model = SentenceTransformer('/app/multi-qa-MiniLM-L6-cos-v1')
|
362 |
|
363 |
vector = model.encode(promptText)
|
@@ -459,7 +459,7 @@ try:
|
|
459 |
+ "process the following statement or question and produce a response" \
|
460 |
+ intialPrompt
|
461 |
else:
|
462 |
-
userPrompt = pprompt
|
463 |
#prompt = f""" <s> [INST] <<SYS>> {systemTextArea.value} </SYS>> Q: {userPrompt} A: [/INST]"""
|
464 |
logger.info("setPrompt exited.")
|
465 |
logger.info(f"### userPrompt: {userPrompt}")
|
|
|
357 |
logger.info("#### getRagData() entered.")
|
358 |
###############################################################################
|
359 |
# Initial the the sentence transformer and encode the query prompt.
|
360 |
+
logger.debug(f"#### Encode text query prompt to create vectors. {promptText}")
|
361 |
model = SentenceTransformer('/app/multi-qa-MiniLM-L6-cos-v1')
|
362 |
|
363 |
vector = model.encode(promptText)
|
|
|
459 |
+ "process the following statement or question and produce a response" \
|
460 |
+ intialPrompt
|
461 |
else:
|
462 |
+
userPrompt = st.session_state.sysTA + " " + pprompt
|
463 |
#prompt = f""" <s> [INST] <<SYS>> {systemTextArea.value} </SYS>> Q: {userPrompt} A: [/INST]"""
|
464 |
logger.info("setPrompt exited.")
|
465 |
logger.info(f"### userPrompt: {userPrompt}")
|