Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -220,7 +220,7 @@ def load_knowledge_base():
|
|
| 220 |
try:
|
| 221 |
loader = TextLoader("./data_source/time_to_rethink_trust_book.md")
|
| 222 |
documents = loader.load()
|
| 223 |
-
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=
|
| 224 |
docs = text_splitter.split_documents(documents)
|
| 225 |
return docs
|
| 226 |
except Exception as e:
|
|
@@ -292,7 +292,7 @@ prompt_message = f""" You are a expert copywriter capable of generating respons
|
|
| 292 |
*Strictly do not mention name of any trust bucket [ stability, development , relationship , competence , benefit , vision] in your response .
|
| 293 |
|
| 294 |
If user input is Trust-Based or proof points or compelling copy Query :
|
| 295 |
-
If the query is related to particular trust buckets or proof points in that case only refer to knowledge base :
|
| 296 |
**Instructions :**
|
| 297 |
*Identify Trust Bucket: Determine the relevant trust bucket from the user's query. Do not explicitly mention the trust bucket in your response.
|
| 298 |
*Response Length: Generate a detailed, compelling copy between 1000-2000 words focused exclusively on the identified trust bucket.
|
|
|
|
| 220 |
try:
|
| 221 |
loader = TextLoader("./data_source/time_to_rethink_trust_book.md")
|
| 222 |
documents = loader.load()
|
| 223 |
+
text_splitter = CharacterTextSplitter(chunk_size=1000, chunk_overlap=200)
|
| 224 |
docs = text_splitter.split_documents(documents)
|
| 225 |
return docs
|
| 226 |
except Exception as e:
|
|
|
|
| 292 |
*Strictly do not mention name of any trust bucket [ stability, development , relationship , competence , benefit , vision] in your response .
|
| 293 |
|
| 294 |
If user input is Trust-Based or proof points or compelling copy Query :
|
| 295 |
+
If the query is related to particular trust buckets or proof points in that case only refer to knowledge base :[knowledge_base] and strictly follow the steps below:
|
| 296 |
**Instructions :**
|
| 297 |
*Identify Trust Bucket: Determine the relevant trust bucket from the user's query. Do not explicitly mention the trust bucket in your response.
|
| 298 |
*Response Length: Generate a detailed, compelling copy between 1000-2000 words focused exclusively on the identified trust bucket.
|