As a tech teacher for over 20 years, I have to say that your teaching is excellent. You are beyond just being a programmer. Thank you and keep teaching us!
You are wonderful man. You have EXTRAORDINARY way in delivering and explaining information. I really get great benefit from your channel. Thank you so much for your great efforts and sharing such important information.👏👏
These videos are incredibly helpful! I've watched tons of tutorials and yours just make the concepts so clear and easy to follow! Subscribed and look forward to more
This and your previous video have been great! But I started following you based on your Flowise videos and now I use Flowise a lot for production work as well. Are you going to make a Flowise version of your videos based on these videos at all? Don't forget your Flowise followers 😉
I have not forgotten about Flowise at all, don't worry. I am literally working on an updating Flowise tutorial series, as we speak. A lot has changed since that original series.
I am trying to follow your tutorial. When I am writing the statement "parser = JsonOutputPaser(pydantic_object=Person)", there is no "pydantic_object" although I can find "pydantic" and "pydantic_core", should I use "pydantic" instead?
Hi, great video! I was wondering, would it be fine if we just got the string from the content of the AI Message Object instead of using a parser? I noticed everyone uses parsers for this but I'm not sure why yet. Thanks!
I am trying to extract 3rd field as address from my prompt apart from name and age. But I am not getting any output why? Is it because we can only output two fields from the json parser?
@@leonvanzyl I am using this function def call_json_output_parser(): prompt = ChatPromptTemplate.from_messages([ ("system", "Extract information from following phrase. Formatting instruction: {format_instruction}"), ("human","{phrase}") ]) class Person(BaseModel): name: str = Field(description = "name of the person") age : int = Field(description = "age of the person") address: str = Field(description = "address of the person") parser = JsonOutputParser(pydantic_object=Person) chain = prompt | llm | parser return chain.invoke({ "phrase":"Max is thirty years old. He lives in 492, Kamal Market, Delhi. He studies in Convent school.", "format_instruction":parser.get_format_instructions() }) After printing this I am not getting any output. consol output is this {'properties': {'name': {'title': 'Name', 'description': 'name of the person', 'type': 'string'}, 'age': {'title': 'Age', 'description': 'age of the person', 'type': 'integer'}, 'address': {'title': 'Address', 'description': 'address of the person', 'type': 'string'}}, 'required': ['name', 'age', 'address']} However If I am commenting address field from the pydantic, I am able to print age and name. Not sure where I am making the mistake