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
Create a new workflow type used to classify posts from a source bucket into a specified number of destination buckets.
Details
Create an additional workflow type that will take as input a workflow name, a source bucket (containing the posts to be classified), and the number of categories into which the posts can be organized. Classification will use Google's Gemini model through Vertex AI for classification. This workflow will automatically create a new bucket for each category, move the posts into the corresponding buckets (identified by the LLM), and modify the bucket view to contain only the newly created buckets with assigned posts.
Tasks
Add a new workflow type called "AI Classification" to the Create Workflows tab in the Manage Workflows tool
Add a Source field used to select from any bucket or the canvas
To begin, let's use Vertex AI with the gemini-1.5-flash-001 for classification
For authentication on the production server, we may need to (1) create a service account on our google cloud platform with permissions to access the Vertex AI models, (2) download the JSON key file, (3) store the key in the AZURE app service, then (4) load the credentials and initial the vertex AI client using those credentials
Create prompts to generate the specified number of classification categories and classify each of the posts into one of those specified categories
Verify that the number of classification categories provided by the LLM matches the requested number of categories, then use the given classification names to create a new bucket for each of the classification categories
Move the posts to the destination buckets according to assigned values; verify that each assigned value matches one of the bucket names created; you may also keep the posts in their original location when moving to the bucket
Run this workflow from the Manage Workflows tab and display any errors to the teacher as a snackbar message (e.g., # Categories Mismatch: x number of categories created, y number requested; Post Assignment Mismatch: x number of post assignments to categories outside of category list)
Update the bucket view to display the buckets that were just created
The text was updated successfully, but these errors were encountered:
@LunarFang416 Here are two resources related to classification prompts:
An OpenAI example that suggests using JSON to structure the text snippets
A PaLM API example that suggests adjusting temperature and top-K to be more deterministic (in Firebase extension configurations in our case I believe)
The above assumes we already have categories. To generate our own categories, we could use a prompt such as the following:
_Analyze the provided text snippets and identify the four most prominent categories that effectively summarize the overall content. Each category should represent a distinct theme or topic that encompasses the key ideas presented in the snippets. Ensure that the categories are concise, informative, and accurately reflect the essence of the text snippets.
Text snippets:
[Insert your text snippets here]_
We could try displaying the text snippets as independent paragraphs or in JSON format. Also, in both cases, we could try classification with only the body text or with the title text followed by the body text to see if this makes much of a difference. Let me know if you want me to play around with this too! We can also run this in a classroom to get some real data as we design these prompts.
Description
Create a new workflow type used to classify posts from a source bucket into a specified number of destination buckets.
Details
Create an additional workflow type that will take as input a workflow name, a source bucket (containing the posts to be classified), and the number of categories into which the posts can be organized. Classification will use Google's Gemini model through Vertex AI for classification. This workflow will automatically create a new bucket for each category, move the posts into the corresponding buckets (identified by the LLM), and modify the bucket view to contain only the newly created buckets with assigned posts.
Tasks
![Screenshot 2023-11-22 at 11 56 05 AM](https://private-user-images.githubusercontent.com/6416247/284980641-cdb2fd5c-719d-4c68-a418-266ac44b9198.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MTkyOTIsIm5iZiI6MTczOTQxODk5MiwicGF0aCI6Ii82NDE2MjQ3LzI4NDk4MDY0MS1jZGIyZmQ1Yy03MTlkLTRjNjgtYTQxOC0yNjZhYzQ0YjkxOTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTNUMDM1NjMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTBhMDE4ZTUzZmVhZTNhODNmZWI3NDMwOGZjMDkxN2VjNjgzMjVhYmI2YWQzMTY0NDcyZGQxNGEwODNkNmMxYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.YULR44MeUBMJt3EjTNyNeVWgepPUK7kS7i54E_R0KS4)
The text was updated successfully, but these errors were encountered: