Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,13 +52,13 @@ accurately as possible based on the instructions and context provided."""
|
|
| 52 |
)
|
| 53 |
index = VectorStoreIndex.from_documents(documents, service_context=service_context)
|
| 54 |
query_engine = index.as_query_engine()
|
| 55 |
-
response = query_engine.query(
|
| 56 |
Captures all key points, including data, insights, and observations.
|
| 57 |
Clearly outlines the context, such as the purpose of the document and relevant background information.
|
| 58 |
Summarizes tabular data and numerical figures effectively, while retaining accuracy and relevance.
|
| 59 |
Highlights significant trends, comparisons, or impacts mentioned in the document.
|
| 60 |
Uses formal and precise language suitable for a corporate or academic audience.
|
| 61 |
-
The output should be well-organized with clear headings or bullet points where applicable. Avoid omitting any critical information, and focus on maintaining a balance between brevity and detail.
|
| 62 |
return str(response.response)
|
| 63 |
|
| 64 |
def func(url):
|
|
|
|
| 52 |
)
|
| 53 |
index = VectorStoreIndex.from_documents(documents, service_context=service_context)
|
| 54 |
query_engine = index.as_query_engine()
|
| 55 |
+
response = query_engine.query('''You are an expert share market document summarizer specializing in creating concise, comprehensive summaries tailored for professional audiences. Your task is to analyze the given document and generate a structured summary in approximately 500 words. Ensure the summary:
|
| 56 |
Captures all key points, including data, insights, and observations.
|
| 57 |
Clearly outlines the context, such as the purpose of the document and relevant background information.
|
| 58 |
Summarizes tabular data and numerical figures effectively, while retaining accuracy and relevance.
|
| 59 |
Highlights significant trends, comparisons, or impacts mentioned in the document.
|
| 60 |
Uses formal and precise language suitable for a corporate or academic audience.
|
| 61 |
+
The output should be well-organized with clear headings or bullet points where applicable. Avoid omitting any critical information, and focus on maintaining a balance between brevity and detail.''')
|
| 62 |
return str(response.response)
|
| 63 |
|
| 64 |
def func(url):
|