-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(recipe): add our first recipe
Summarize
(#2028)
* feat: add summary recipe * test: add summary tests * docs: move all recipes docs * docs: add recipes and summarize doc * docs: update openapi reference * refactor: split method in two method (summary) * feat: add initial summarize ui * feat: add mode explanation * fix: mypy * feat: allow to configure async property in summarize * refactor: move modes to enum and update mode explanations * docs: fix url * docs: remove list-llm pages * docs: remove double header * fix: summary description
- Loading branch information
Showing
13 changed files
with
743 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Recipes | ||
|
||
Recipes are predefined use cases that help users solve very specific tasks using PrivateGPT. | ||
They provide a streamlined approach to achieve common goals with the platform, offering both a starting point and inspiration for further exploration. | ||
The main goal of Recipes is to empower the community to create and share solutions, expanding the capabilities of PrivateGPT. | ||
|
||
## How to Create a New Recipe | ||
|
||
1. **Identify the Task**: Define a specific task or problem that the Recipe will address. | ||
2. **Develop the Solution**: Create a clear and concise guide, including any necessary code snippets or configurations. | ||
3. **Submit a PR**: Fork the PrivateGPT repository, add your Recipe to the appropriate section, and submit a PR for review. | ||
|
||
We encourage you to be creative and think outside the box! Your contributions help shape the future of PrivateGPT. | ||
|
||
## Available Recipes | ||
|
||
<Cards> | ||
<Card | ||
title="Summarize" | ||
icon="fa-solid fa-file-alt" | ||
href="/recipes/general-use-cases/summarize" | ||
/> | ||
</Cards> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The Summarize Recipe provides a method to extract concise summaries from ingested documents or texts using PrivateGPT. | ||
This tool is particularly useful for quickly understanding large volumes of information by distilling key points and main ideas. | ||
|
||
## Use Case | ||
|
||
The primary use case for the `Summarize` tool is to automate the summarization of lengthy documents, | ||
making it easier for users to grasp the essential information without reading through entire texts. | ||
This can be applied in various scenarios, such as summarizing research papers, news articles, or business reports. | ||
|
||
## Key Features | ||
|
||
1. **Ingestion-compatible**: The user provides the text to be summarized. The text can be directly inputted or retrieved from ingested documents within the system. | ||
2. **Customization**: The summary generation can be influenced by providing specific `instructions` or a `prompt`. These inputs guide the model on how to frame the summary, allowing for customization according to user needs. | ||
3. **Streaming Support**: The tool supports streaming, allowing for real-time summary generation, which can be particularly useful for handling large texts or providing immediate feedback. | ||
|
||
## Contributing | ||
|
||
If you have ideas for improving the Summarize or want to add new features, feel free to contribute! | ||
You can submit your enhancements via a pull request on our [GitHub repository](https://github.com/zylon-ai/private-gpt). | ||
|
Oops, something went wrong.