The Views AI Summary module introduces a block and a Drush command that enhance content summarization in Drupal. The block, which can be enabled on any View page, summarizes the Views output, while the drush vais:ai-summary-field command generates summaries for any field, creating concise teasers that can be used for various purposes, such as page descriptions, or to streamline the block’s processing.
Features
- Integration with AI Module: Fully compatible with the AI Module, allowing you to use various LLM engines supported by it.
- Dynamic Content Summarization: Automatically summarizes the first 1-5 results of a View, including excluded fields if needed.
- Customizable Display:
- Deploy the summary block alongside view results.
- Optionally, expose only the summary block, hiding the actual view results for a concise display.
- User-Friendly Configuration:
- Choose the number of rows to summarize.
- Select which View fields should be processed by the AI.
- Pick your preferred LLM engine (requires at least one enabled LLM provider from the AI module). E.g. OpenAI's gpt-3.5-turbo works well.
- Define the maximum number of tokens the AI can process.
- AJAX Loading: The AI Summary is loaded with AJAX, which doesn't slow down the loading of the search results.
Drush AI command
This module comes with drush vais:ai-summary-field command, enabling you to batch-create summaries for selected text fields. These summaries can be used in View results or as a base for the summary of the View output.
Usage Instructions
- Install via Composer.
- Enable the Views AI Summary module as you would with any other Drupal module.
- Navigate to the Blocks layout page, place the Views AI Summary block, and limit its access to a page (pages) that is (are) a View(s). The block will gracefully display a ‘no View’ message if placed on a non-View page.
- Configure the Block:
- Select the number of rows (1-5) to be summarized.
- Choose which View fields should be processed by the LLM.
- Select your preferred LLM engine from those enabled in the AI module.
- Set the token limit for the LLM to process.
- Set placeholder text and animation.
- Save your block settings.
Use Cases
- Summary Block Alongside View Results: Enhance user experience by summarizing view results directly on the page, offering quick insights.
- Standalone Summary Block: Use the block to display only the summary, hiding the actual view results for a cleaner and more focused presentation.
Project information
- Project categories: Site search
- Ecosystem: AI (Artificial Intelligence)
7 sites report using this module
- Created by seogow on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Bug fix, added disabling block on subsequent View pages.
Development version: 1.0.x-dev updated 4 Nov 2024 at 10:55 UTC
