lakshyaag / yt-lesson-planner

https://yt-lesson-planner.vercel.app
1 stars 0 forks source link

[Needs fixing][API] Sometimes the same video is repeated multiple times in a single step #4

Closed sivabalan closed 4 months ago

sivabalan commented 4 months ago

When this happens the tabbed button navigation between videos doesn't work.

Screenshot 2024-07-21 at 5 55 40 PM

When different videos are returned the tabbed button navigation works fine.

Screenshot 2024-07-21 at 5 55 58 PM

Fixing the duplication of the videos from the API should fix this issue.

sivabalan commented 4 months ago

Logs

[0:tasks] Starting step 0 with 1 task:
- __start__ -> {'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine')}
[0:writes] Finished step 0 with writes to 1 channel:
- original_query -> RequestModel(user_input='develop a role playing 3d game with unity game engine')
[1:tasks] Starting step 1 with 1 task:
- objectives -> {'learning_objectives': None,
 'lesson_plan': None,
 'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine'),
 'rewritten_query': None,
 'transcripts_status': None,
 'vectorstore': None,
 'videos': None}
[1:writes] Finished step 1 with writes to 1 channel:
- learning_objectives -> LearningObjectivesList(objectives=[LearningObjectives(index=1, objective='Understand the basics of Unity and set up a new 3D project.'), LearningObjectives(index=2, objective='Design and implement game mechanics and character controls for a role-playing game.'), LearningObjectives(index=3, objective='Create 3D environments and integrate assets to build a cohesive game world.')])
[2:tasks] Starting step 2 with 1 task:
- rewrite_query -> {'learning_objectives': LearningObjectivesList(objectives=[LearningObjectives(index=1, objective='Understand the basics of Unity and set up a new 3D project.'), LearningObjectives(index=2, objective='Design and implement game mechanics and character controls for a role-playing game.'), LearningObjectives(index=3, objective='Create 3D environments and integrate assets to build a cohesive game world.')]),
 'lesson_plan': None,
 'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine'),
 'rewritten_query': None,
 'transcripts_status': None,
 'vectorstore': None,
 'videos': None}
[2:writes] Finished step 2 with writes to 1 channel:
- rewritten_query -> ('Unity 3D RPG game development tutorial: project setup, game mechanics, '
 'character controls, 3D environments')
[3:tasks] Starting step 3 with 1 task:
- search -> {'learning_objectives': LearningObjectivesList(objectives=[LearningObjectives(index=1, objective='Understand the basics of Unity and set up a new 3D project.'), LearningObjectives(index=2, objective='Design and implement game mechanics and character controls for a role-playing game.'), LearningObjectives(index=3, objective='Create 3D environments and integrate assets to build a cohesive game world.')]),
 'lesson_plan': None,
 'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine'),
 'rewritten_query': 'Unity 3D RPG game development tutorial: project setup, '
                    'game mechanics, character controls, 3D environments',
 'transcripts_status': None,
 'vectorstore': None,
 'videos': None}
[3:writes] Finished step 3 with writes to 1 channel:
- videos -> {'72c5_PQSOEY': How Large Games Build Maps - Unreal Engine Level Design by Direction Gaming - 72c5_PQSOEY | Join Membership: https://www.youtube.com/channel/UCp5_AtVH3fty5wUOMrBkuPg/join Donate on UPI ID: AkshayGadekar@upi ...,
 'DXri5QRC3HU': How to Position Cameras - Unity Tips by Unity - DXri5QRC3HU | Need a quick and easy way to position cameras? Use GameObject - Align with View. Help us caption & translate this video!,
 'D_XY58wXHng': Game Dev ideas for you NEXT GAME - 300+ Ideas that you can play now by Zizaco - D_XY58wXHng | Making a successful indie game starts with a promising game idea! Let's explore ideas for GameDev. Let's look at playable ...,
 'EjPp5A43HQI': Cropout Casual RTS Sample Project Guided Tour | Unreal Engine by Unreal Engine - EjPp5A43HQI | Cropout is a top-down Casual RTS game sample project for Unreal Engine 5 that demonstrates best practices for building a title ...,
 'Jv9jGyIWelU': Implementing an Ability System | Prototype Series by Unity - Jv9jGyIWelU | Welcome to the Prototype Series - a group of videos that focuses on the creation of playable prototypes, showcasing how multiple ...,
 'U8JOlgSE0Gg': Unity3D Combat Framework Player Setup Tutorial v3 by Gray Cat - U8JOlgSE0Gg | ENABLE SUBTITLES !! You can get this package on asset store: http://u3d.as/wKo I updated system to version 3. Added new ...,
 'XtQMytORBmM': The Unity Tutorial For Complete Beginners by Game Maker's Toolkit - XtQMytORBmM | Get bonus content by supporting Game Maker's Toolkit - https://gamemakerstoolkit.com/support/ Unity is an amazingly powerful ...,
 'YOtDVv5-0A4': Making Alba: How to build a performant open-world game | Unite 2022 by Unity - YOtDVv5-0A4 | Go behind the scenes with the custom tools and technology ustwo Games built to develop Alba: A Wildlife Adventure. Manesh ...,
 'mZcLKcyHWDs': Turning Real Life into a Video Game in 10 minutes - 3D Scanning by Brackeys - mZcLKcyHWDs | Let's use Photogrammetry to create a video game using 3D Scans! ▻ Check out and download Displayland: ...,
 'yAvKRCu3jjE': Pir4te • Devlog 01 • Synty Studios scene and Invector character • Unity Indie Game by Bucko - yAvKRCu3jjE | Hey! Here is the first real Pir4te Devlog, let's get to the heart of the matter! In this Devlog, I present the two main assets I'm using for ...}
[4:tasks] Starting step 4 with 1 task:
- transcripts -> {'learning_objectives': LearningObjectivesList(objectives=[LearningObjectives(index=1, objective='Understand the basics of Unity and set up a new 3D project.'), LearningObjectives(index=2, objective='Design and implement game mechanics and character controls for a role-playing game.'), LearningObjectives(index=3, objective='Create 3D environments and integrate assets to build a cohesive game world.')]),
 'lesson_plan': None,
 'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine'),
 'rewritten_query': 'Unity 3D RPG game development tutorial: project setup, '
                    'game mechanics, character controls, 3D environments',
 'transcripts_status': None,
 'vectorstore': None,
 'videos': {'72c5_PQSOEY': How Large Games Build Maps - Unreal Engine Level Design by Direction Gaming - 72c5_PQSOEY | Join Membership: https://www.youtube.com/channel/UCp5_AtVH3fty5wUOMrBkuPg/join Donate on UPI ID: AkshayGadekar@upi ...,
            'DXri5QRC3HU': How to Position Cameras - Unity Tips by Unity - DXri5QRC3HU | Need a quick and easy way to position cameras? Use GameObject - Align with View. Help us caption & translate this video!,
            'D_XY58wXHng': Game Dev ideas for you NEXT GAME - 300+ Ideas that you can play now by Zizaco - D_XY58wXHng | Making a successful indie game starts with a promising game idea! Let's explore ideas for GameDev. Let's look at playable ...,
            'EjPp5A43HQI': Cropout Casual RTS Sample Project Guided Tour | Unreal Engine by Unreal Engine - EjPp5A43HQI | Cropout is a top-down Casual RTS game sample project for Unreal Engine 5 that demonstrates best practices for building a title ...,
            'Jv9jGyIWelU': Implementing an Ability System | Prototype Series by Unity - Jv9jGyIWelU | Welcome to the Prototype Series - a group of videos that focuses on the creation of playable prototypes, showcasing how multiple ...,
            'U8JOlgSE0Gg': Unity3D Combat Framework Player Setup Tutorial v3 by Gray Cat - U8JOlgSE0Gg | ENABLE SUBTITLES !! You can get this package on asset store: http://u3d.as/wKo I updated system to version 3. Added new ...,
            'XtQMytORBmM': The Unity Tutorial For Complete Beginners by Game Maker's Toolkit - XtQMytORBmM | Get bonus content by supporting Game Maker's Toolkit - https://gamemakerstoolkit.com/support/ Unity is an amazingly powerful ...,
            'YOtDVv5-0A4': Making Alba: How to build a performant open-world game | Unite 2022 by Unity - YOtDVv5-0A4 | Go behind the scenes with the custom tools and technology ustwo Games built to develop Alba: A Wildlife Adventure. Manesh ...,
            'mZcLKcyHWDs': Turning Real Life into a Video Game in 10 minutes - 3D Scanning by Brackeys - mZcLKcyHWDs | Let's use Photogrammetry to create a video game using 3D Scans! ▻ Check out and download Displayland: ...,
            'yAvKRCu3jjE': Pir4te • Devlog 01 • Synty Studios scene and Invector character • Unity Indie Game by Bucko - yAvKRCu3jjE | Hey! Here is the first real Pir4te Devlog, let's get to the heart of the matter! In this Devlog, I present the two main assets I'm using for ...}}
[4:writes] Finished step 4 with writes to 2 channels:
- vectorstore -> <langchain_qdrant.vectorstores.Qdrant object at 0x119327920>
- transcripts_status -> True
[5:tasks] Starting step 5 with 1 task:
- generate -> {'learning_objectives': LearningObjectivesList(objectives=[LearningObjectives(index=1, objective='Understand the basics of Unity and set up a new 3D project.'), LearningObjectives(index=2, objective='Design and implement game mechanics and character controls for a role-playing game.'), LearningObjectives(index=3, objective='Create 3D environments and integrate assets to build a cohesive game world.')]),
 'lesson_plan': None,
 'original_query': RequestModel(user_input='develop a role playing 3d game with unity game engine'),
 'rewritten_query': 'Unity 3D RPG game development tutorial: project setup, '
                    'game mechanics, character controls, 3D environments',
 'transcripts_status': True,
 'vectorstore': <langchain_qdrant.vectorstores.Qdrant object at 0x119327920>,
 'videos': {'72c5_PQSOEY': How Large Games Build Maps - Unreal Engine Level Design by Direction Gaming - 72c5_PQSOEY | Join Membership: https://www.youtube.com/channel/UCp5_AtVH3fty5wUOMrBkuPg/join Donate on UPI ID: AkshayGadekar@upi ...,
            'DXri5QRC3HU': How to Position Cameras - Unity Tips by Unity - DXri5QRC3HU | Need a quick and easy way to position cameras? Use GameObject - Align with View. Help us caption & translate this video!,
            'D_XY58wXHng': Game Dev ideas for you NEXT GAME - 300+ Ideas that you can play now by Zizaco - D_XY58wXHng | Making a successful indie game starts with a promising game idea! Let's explore ideas for GameDev. Let's look at playable ...,
            'EjPp5A43HQI': Cropout Casual RTS Sample Project Guided Tour | Unreal Engine by Unreal Engine - EjPp5A43HQI | Cropout is a top-down Casual RTS game sample project for Unreal Engine 5 that demonstrates best practices for building a title ...,
            'Jv9jGyIWelU': Implementing an Ability System | Prototype Series by Unity - Jv9jGyIWelU | Welcome to the Prototype Series - a group of videos that focuses on the creation of playable prototypes, showcasing how multiple ...,
            'U8JOlgSE0Gg': Unity3D Combat Framework Player Setup Tutorial v3 by Gray Cat - U8JOlgSE0Gg | ENABLE SUBTITLES !! You can get this package on asset store: http://u3d.as/wKo I updated system to version 3. Added new ...,
            'XtQMytORBmM': The Unity Tutorial For Complete Beginners by Game Maker's Toolkit - XtQMytORBmM | Get bonus content by supporting Game Maker's Toolkit - https://gamemakerstoolkit.com/support/ Unity is an amazingly powerful ...,
            'YOtDVv5-0A4': Making Alba: How to build a performant open-world game | Unite 2022 by Unity - YOtDVv5-0A4 | Go behind the scenes with the custom tools and technology ustwo Games built to develop Alba: A Wildlife Adventure. Manesh ...,
            'mZcLKcyHWDs': Turning Real Life into a Video Game in 10 minutes - 3D Scanning by Brackeys - mZcLKcyHWDs | Let's use Photogrammetry to create a video game using 3D Scans! ▻ Check out and download Displayland: ...,
            'yAvKRCu3jjE': Pir4te • Devlog 01 • Synty Studios scene and Invector character • Unity Indie Game by Bucko - yAvKRCu3jjE | Hey! Here is the first real Pir4te Devlog, let's get to the heart of the matter! In this Devlog, I present the two main assets I'm using for ...}}
[5:writes] Finished step 5 with writes to 1 channel:
- lesson_plan -> LessonPlan(title='Developing a 3D Role-Playing Game with Unity', topics=[Topic(objective='Understand the basics of Unity and set up a new 3D project.', videos=['XtQMytORBmM', 'XtQMytORBmM', 'XtQMytORBmM'], description='This segment will introduce learners to the Unity game engine, including how to download, install, and set up a new 3D project. Learners will also become familiar with the Unity interface and basic functionalities.', steps=['Download and install Unity Hub.', 'Create a free Unity account.', 'Install the Unity Editor.', 'Familiarize yourself with the Unity user interface.', 'Create a new 3D project in Unity.'], suggested_activities=['Download and install Unity Hub and the Unity Editor.', 'Create a new 3D project and explore the Unity interface.', 'Write a reflective journal entry on your initial impressions of Unity and any challenges faced during setup.']), Topic(objective='Design and implement game mechanics and character controls for a role-playing game.', videos=['yAvKRCu3jjE', 'Jv9jGyIWelU'], description='This segment will cover the basics of designing and implementing game mechanics and character controls. Learners will use assets and templates to create a playable character and implement basic controls.', steps=['Import assets and templates from the Unity Asset Store.', 'Set up a playable character using the Invector third person template.', 'Implement basic character controls, including movement and camera follow.', 'Add additional game mechanics such as abilities and shooting.'], suggested_activities=['Import the Invector third person template and set up a playable character.', 'Implement basic character controls and test them in the Unity editor.', 'Create a short video demonstrating the character controls and share it for peer review.']), Topic(objective='Create 3D environments and integrate assets to build a cohesive game world.', videos=['YOtDVv5-0A4', 'YOtDVv5-0A4'], description='This segment will focus on creating 3D environments and integrating various assets to build a cohesive game world. Learners will learn about terrain generation, asset placement, and optimizing the game environment for performance.', steps=['Learn about terrain generation and customization in Unity.', 'Place and integrate assets into the game environment.', 'Optimize the game environment for better performance.', 'Test the game world to ensure it is cohesive and immersive.'], suggested_activities=["Create a basic terrain using Unity's terrain tools and customize it with different textures and assets.", 'Integrate various assets into the game environment and ensure they fit cohesively.', 'Write a self-review on the performance of the game environment and any optimization techniques used.'])], comments='This curriculum is designed to be engaging and practical, providing learners with hands-on experience in developing a 3D role-playing game using Unity. Each segment builds on the previous one, ensuring a logical progression of skills and knowledge.')
sivabalan commented 4 months ago

LangSmith run: https://smith.langchain.com/public/468eb058-f356-4cb4-bfc0-1a4c07e00b61/r