Spaces:
Paused
Paused
chitkenkhoi
commited on
Commit
•
3cc57bc
1
Parent(s):
27569c6
print context
Browse files
app.py
CHANGED
@@ -133,7 +133,7 @@ def retrieve_relevant_resources(query_vector, embeddings, similarity_threshold=0
|
|
133 |
|
134 |
def prompt_formatter(mode,query: str, context_items: List[Dict], history: List[Dict] = None, isFirst = False) -> str:
|
135 |
context = "- " + "\n- ".join([item["text"] for item in context_items])
|
136 |
-
|
137 |
history_str = ""
|
138 |
if history:
|
139 |
history_str = "\nLịch sử hội thoại:\n"
|
|
|
133 |
|
134 |
def prompt_formatter(mode,query: str, context_items: List[Dict], history: List[Dict] = None, isFirst = False) -> str:
|
135 |
context = "- " + "\n- ".join([item["text"] for item in context_items])
|
136 |
+
print(context, "THIS IS CONTEXT ITEM")
|
137 |
history_str = ""
|
138 |
if history:
|
139 |
history_str = "\nLịch sử hội thoại:\n"
|