Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
c1cc1e0
1
Parent(s):
e1c8322
debug
Browse files
app.py
CHANGED
|
@@ -371,12 +371,15 @@ try:
|
|
| 371 |
model = SentenceTransformer('/app/multi-qa-MiniLM-L6-cos-v1')
|
| 372 |
|
| 373 |
vector = model.encode(promptText)
|
|
|
|
|
|
|
| 374 |
vectorList = []
|
| 375 |
|
| 376 |
logger.info("#### Print vectors.")
|
| 377 |
for vec in vector:
|
| 378 |
vectorList.append(vec)
|
| 379 |
-
|
|
|
|
| 380 |
|
| 381 |
# Fetch chunks and print chunks.
|
| 382 |
logger.info("#### Retrieve semchunks from db using vectors from prompt.")
|
|
@@ -386,7 +389,8 @@ try:
|
|
| 386 |
distance=0.7,
|
| 387 |
limit=3
|
| 388 |
)
|
| 389 |
-
|
|
|
|
| 390 |
|
| 391 |
# Print chunks, corresponding document and document title.
|
| 392 |
ragData = ""
|
|
|
|
| 371 |
model = SentenceTransformer('/app/multi-qa-MiniLM-L6-cos-v1')
|
| 372 |
|
| 373 |
vector = model.encode(promptText)
|
| 374 |
+
wrks = str(vector)
|
| 375 |
+
logger.info(f"### vector: {wrks}")
|
| 376 |
vectorList = []
|
| 377 |
|
| 378 |
logger.info("#### Print vectors.")
|
| 379 |
for vec in vector:
|
| 380 |
vectorList.append(vec)
|
| 381 |
+
wrks = str(vectorList)
|
| 382 |
+
logger.info(f"vectorList: {wrks}")
|
| 383 |
|
| 384 |
# Fetch chunks and print chunks.
|
| 385 |
logger.info("#### Retrieve semchunks from db using vectors from prompt.")
|
|
|
|
| 389 |
distance=0.7,
|
| 390 |
limit=3
|
| 391 |
)
|
| 392 |
+
wrks = str(semChunks)
|
| 393 |
+
logger.info(f"### semChunks[0]: {wrks}")
|
| 394 |
|
| 395 |
# Print chunks, corresponding document and document title.
|
| 396 |
ragData = ""
|