Spaces:
Runtime error
Runtime error
Commit ·
08f4646
1
Parent(s): 4685e27
- .env +1 -1
- rag_gpt_app.py +1 -1
.env
CHANGED
|
@@ -4,7 +4,7 @@ GPT_MODEL_NAME="gpt-4o-mini"
|
|
| 4 |
MIN_RELEVANCE_SCORE=0.4
|
| 5 |
BOT_TOPIC="kyobody-chatbot"
|
| 6 |
# URL_PREFIX="http://127.0.0.1:7860/"
|
| 7 |
-
URL_PREFIX="https://leekwoon-kyobody-chatbot
|
| 8 |
USE_PREPROCESS_QUERY=0
|
| 9 |
USE_RERANKING=0
|
| 10 |
USE_DEBUG=0
|
|
|
|
| 4 |
MIN_RELEVANCE_SCORE=0.4
|
| 5 |
BOT_TOPIC="kyobody-chatbot"
|
| 6 |
# URL_PREFIX="http://127.0.0.1:7860/"
|
| 7 |
+
URL_PREFIX="https://leekwoon-kyobody-chatbot.hf.space/"
|
| 8 |
USE_PREPROCESS_QUERY=0
|
| 9 |
USE_RERANKING=0
|
| 10 |
USE_DEBUG=0
|
rag_gpt_app.py
CHANGED
|
@@ -71,7 +71,7 @@ async def get_context(
|
|
| 71 |
if results:
|
| 72 |
# RECALL_TOP_K 만큼 문서와 스코어를 보여줌
|
| 73 |
filter_context = "\n--------------------\n".join([
|
| 74 |
-
f"
|
| 75 |
for doc, score in results[:recall_top_k]
|
| 76 |
])
|
| 77 |
|
|
|
|
| 71 |
if results:
|
| 72 |
# RECALL_TOP_K 만큼 문서와 스코어를 보여줌
|
| 73 |
filter_context = "\n--------------------\n".join([
|
| 74 |
+
f"source file name: {os.path.basename(doc.metadata['source'])}\nDocument Content: {doc.page_content}"
|
| 75 |
for doc, score in results[:recall_top_k]
|
| 76 |
])
|
| 77 |
|