-
Notifications
You must be signed in to change notification settings - Fork 256
Epic 2.16 Presentation Generator #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ai-squad-003
Are you sure you want to change the base?
Epic 2.16 Presentation Generator #203
Conversation
Generated output { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since there is a quota limit when generating the images and storing them in Firebase. Is it possible to store them in the Google Cloud Bucket?
i will try storing in the google cloud bucket and update you. |
I got the same issue with the GCS too. The error says: 429 Quota exceeded for aiplatform.googleapis.com/online_prediction_requests_per_base_model with base model: imagen-3.0-generate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible not to edit this file? Instead can we have schemas.py file inside the tools/presentation_generator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that is possible .i can refractor that
Dockerfile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to commit this Dockerfile. It should remain local since it contains configurations and images that shouldn't be pushed to the remote branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i'l remove this.
…az/marvel-ai-backend into presentation-generator
…az/marvel-ai-backend into presentation-generator
Done the changes mentioned above. |
I've thoroughly tested your PR for the presentation generator feature and have identified several issues that need to be addressed before it can be merged. Current Status Missing Prompt Files: Fix Missing Files: |
Description
Added image generation functionality to the slide generator tool. This enhancement allows dynamic, context-aware image generation for presentation slides using Google's Imagen model and Firebase for image storage. The implementation supports:
Generating images based on slide content and context
Uploading generated images to Firebase
Supporting multiple image styles and templates
Handling image generation for different slide types
Related Issue
This is a feature enhancement for the presentation generator.
Type of Change
Please select the type(s) of change that apply and delete those that do not.
Proposed Solution
Implemented image generation in the slide generator with the following key components:
ImageGenerator class using Vertex AI's Imagen model
Firebase integration for image storage and URL generation
Dynamic image prompt generation based on slide content
Configurable image generation parameters (width, height, aspect ratio)
Parallel image generation for multiple slides
Key modifications:
Added imagen.py for image generation logic
Updated tools.py to include image generation in slide creation workflow
Enhanced generate_slides() method to handle image generation
Added error handling and logging for image generation process
How to Test
Provide instructions on how to test these changes. Include details on test configurations, test cases, and expected outcomes.
Unit Tests
List the unit tests added or modified to verify your changes.
Documentation Updates
Indicate whether documentation needs to be updated due to this PR.
If yes, describe what documentation updates are needed and link to the relevant documentation.
Checklist
Additional Information
Inputs for outline generator:
{
"user": {
"id": "string",
"fullName": "string",
"email": "string"
},
"type": "tool",
"tool_data": {
"tool_id": "outline-generator",
"inputs": [
{
"name": "topic",
"value": "Lang chain"
},
{
}
}
Input for slide generator:
{
"user": {
"id": "string",
"fullName": "string",
"email": "string"
},
"type": "chat",
"tool_data": {
"tool_id": "slide-generator",
"inputs": [
{
"name": "slides_titles",
"value": [
"Introduction to LangChain: A Conceptual Overview",
"LangChain Architecture: Modules & Core Components",
"Advanced LangChain Capabilities: Agents & Memory",
"Real-World LangChain Applications: Case Studies",
"Building Your First LangChain Application: A Practical Example",
"Future Directions and Challenges in LangChain"
]
},{
"name": "topic",
"value": "Lang chain"
},
{
}
}
Add any other information that might be useful for the reviewers.
Loom video:https://www.loom.com/share/5c82751cd6224410a88d7046b88d8d29?sid=12145d25-99d2-406e-b7fb-6e23bf36893b