You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uses the query method internally with pre-configured prompts optimized for
281
+
summarization. Handles large texts by chunking and then combining summaries.
282
+
283
+
Args:
284
+
text (str): The text to summarize
285
+
286
+
Returns:
287
+
str: A concise summary of the input text
288
+
289
+
Example:
290
+
```python
291
+
long_article = "... very long article ..."
292
+
summary = computer.ai.summarize(long_article)
293
+
print(summary) # "This article discusses..."
294
+
```
295
+
"""
210
296
query="You are a highly skilled AI trained in language comprehension and summarization. I would like you to read the following text and summarize it into a concise abstract paragraph. Aim to retain the most important points, providing a coherent and readable summary that could help a person understand the main points of the discussion without needing to read the entire text. Please avoid unnecessary details or tangential points."
211
297
custom_reduce_query="You are tasked with taking multiple summarized texts and merging them into one unified and concise summary. Maintain the core essence of the content and provide a clear and comprehensive summary that encapsulates all the main points from the individual summaries."
0 commit comments