Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

Data Alchemy

Public • 19.8k • Free

5 contributions to Data Alchemy
Include property value of a Pydantic model in Instructor Response
Hi I want to include one of the defined parameter on a BaseModel in the instructor response. Is it possible to include this? Here is my Model: class KeyActivity(BaseModel): activity: str = Field(description="activity phrase.") unit_type: UnitType = Field(description="The type of unit that the activity can be measured in.") quantity: float = Field(description="Typical quantity required for the given text.") @property def unit(self) -> Literal: if self.unit_type == 'weight': return ['g', 'kg', 't', 'lb', 'ton'] elif self.unit_type == 'money': return ['bhd', 'afn', 'dzd', 'ars'] else: return [None] How do I include this unit to provide either of these str value from the options or give None?
2
3
New comment Jun 14
0 likes • Jun 14
@Brandon Phillips This seems to be giving the list being returned instead of the defined fields along with the list. Also, as a part of Literal, I was thinking to get only a str but it is giving out the entire list. My problem statement is basically, to include a field(unit) whose value is restricted according to another field(unit_type). Something like: {'activity': 'abc', 'unit_type': 'money', 'quantity': 1000.0, 'unit': 'usd'}
Video generation model?
Hi Everyone, We are working on video generation but instead of creating abstract videos, I want to focus on an Individual's video sort of like an instructor. What are some of the fastest models you've worked with for such cases? I would love to know about your take on such models.
1
1
New comment May 31
Can Sora amplify fake news? 🤔
Hey there! watch this 6-minute video and come up with your own response? Trust me, it's totally worth it! 😊
11
11
New comment Feb 20
Can Sora amplify fake news? 🤔
1 like • Feb 19
@Flor G I think the community is already working to have a tagging system for AI-generated content or at least a system to detect it. However, people consuming content irresponsibly and with enough political ambitions, it is bound to get its fair share of negative usage.
Welcome to Data Alchemy - Start Here
The goal of this group is to help you navigate the complex and rapidly evolving world of data science and artificial intelligence. This is your hub to stay up-to-date on the latest trends, learn specialized skills to turn raw data into valuable insights, connect with a community of like-minded individuals, and ultimately, become a Data Alchemist. Together, let's decode the language of data and shape a future where knowledge and community illuminate our way. Rules - Don't sell anything here or use Data Alchemy as any kind of funnel - We delete low effort community posts, and posts with poor English. Proofread your post first. - Help us make the posts high quality. If you see a low quality post, then click on the 3 dots on the post and "Report To Admins". Start by checking out these links - Classroom - Introduction - Roadmap - Contribution Be Aware of Scammers - Please be aware that this is a public group. Unfortunately, some people abuse the Skool platform to send DMs or post comments to trick people. This is the internet, so always do your own due diligence. Never automatically trust someone here on the Skool platform other than @Dave Ebbelaar's official account. To kick things off, please comment below, introducing yourself. Let us know: 1. Your name and where you're from 2. What project(s) you're currently focused on See you in the comments!
Complete action
706
10k
New comment 21m ago
Welcome to Data Alchemy - Start Here
0 likes • Jan 22
@Jay Gonzalez Welcome to the group Jay.
0 likes • Jan 22
@Sai Pranav Welcome to the group Sai.
Unlock New Courses at Level 3
Hey everyone, I just completed a new course for you: "Data Science Accelerator". This course will be unlocked, together with "Building Applications with LLMs" at level 3. How to level up? Just interact with the group, get likes and comments, and watch your level go up!
392
427
New comment 1d ago
Unlock New Courses at Level 3
4 likes • Dec '23
@Ram Hadji Waiting for few more points to go through.
4 likes • Dec '23
@Chika Dim What have you been working on in the past?
1-5 of 5
Koushik Debroy
3
29points to level up
@koushik-debroy-3868
Co-Founder at TheCodeWork. https://thecodework.com

Active 9d ago
Joined Dec 19, 2023
powered by