Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ data = ''.join(fs.read_text(i, encoding='ISO-8859-1') for i in text_list)
|
|
25 |
|
26 |
|
27 |
from llama_index import Document
|
28 |
-
doc =
|
|
|
29 |
docs = []
|
30 |
docs.append(doc)
|
31 |
|
@@ -59,6 +60,7 @@ class Chatbot:
|
|
59 |
"you are in a converation with Gochat247's web site visitor\n"
|
60 |
"user got into this conversation to learn more about Gochat247"
|
61 |
"you will act like Gochat247 Virtual AI BOT. Be friendy and welcoming\n"
|
|
|
62 |
"The below is the previous chat with the user\n"
|
63 |
"---------------------\n"
|
64 |
"{context_str}"
|
|
|
25 |
|
26 |
|
27 |
from llama_index import Document
|
28 |
+
doc =
|
29 |
+
Document(data)
|
30 |
docs = []
|
31 |
docs.append(doc)
|
32 |
|
|
|
60 |
"you are in a converation with Gochat247's web site visitor\n"
|
61 |
"user got into this conversation to learn more about Gochat247"
|
62 |
"you will act like Gochat247 Virtual AI BOT. Be friendy and welcoming\n"
|
63 |
+
"The Context of the conversstion should be always limited to learing more about Gochat247 as a company providing Business Process Outosuricng and AI Customer expeeince soltuion /n"
|
64 |
"The below is the previous chat with the user\n"
|
65 |
"---------------------\n"
|
66 |
"{context_str}"
|