LLM Project | End to end Gen AI project Using Langchain, Google Palm in Retail Industry

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 191

  • @codebasics
    @codebasics  2 месяца назад +2

    Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      Bro first line of code hi run nhi ho rha h pleade help kr do mera final year project h mera 😢😢😢

    • @SatwikVarmaKunaparaju
      @SatwikVarmaKunaparaju 6 дней назад

      @@ritikkumarsah7 did you figure out how to do this bro

    • @ritikkumarsah7
      @ritikkumarsah7 6 дней назад

      @@SatwikVarmaKunaparaju Yes. Some say API service is closed and some say you have to pay

  • @SandeepKumar-rj3te
    @SandeepKumar-rj3te 6 месяцев назад +4

    This is one of the best tutorial I watched so far, it is comprehensive with perfect example. feeling lucky after going though this.

  • @arri5812
    @arri5812 8 месяцев назад +2

    Thank you sir, I took this project as base for my major project in college and it got selected , you helped me in my majors thanks sir thanks alot.

  • @rajv4509
    @rajv4509 8 месяцев назад +1

    You really are a fantastic teacher! Thank you for the time and effort that you have put in to create this outstanding video.

  • @aruneshuma
    @aruneshuma 8 месяцев назад +1

    Its such an amazing video. You explained such a complex topic in a simple language and the demo alongside nailed it. !! Hats off to you!

  • @Breaking_Bold
    @Breaking_Bold 7 месяцев назад +1

    Excellent !!! Can you make a video on (1) How to deploy custom LLM applications to Production (2) How to Evaluate LLM models

  • @henilshah.
    @henilshah. 10 месяцев назад +3

    My sincere thanks to you for making such an insightful video, sir
    It would be great if you could make a video on how to create a custom LLM model. Currently, we are using another company's LLM, so I want to create a new one and publish it to the public or Huggingface.
    love from Gujarat

  • @gudiatoka
    @gudiatoka 11 месяцев назад +2

    Please make a video from database to deployment...❤

    • @sidindian1982
      @sidindian1982 10 месяцев назад

      i am getting error .. while importing file from .SQL (mySQL ) to MS SQL SERVER

  • @umeshtiwari800
    @umeshtiwari800 11 месяцев назад +2

    U always explain very easily😊

  • @umeshtiwari9249
    @umeshtiwari9249 6 месяцев назад

    Thanks you Sir. you make really best videos with clear concepts. please make more projects it will really help

  • @SurendraKumar-ci3vt
    @SurendraKumar-ci3vt 10 месяцев назад +1

    Hi Dhaval Please make a video on How to Evaluate LLM models? Which metrics need to use?

  • @vatsalkumar5690
    @vatsalkumar5690 20 дней назад +1

    can I use custom databases which can be uploaded by the user?

  • @samimbsnl
    @samimbsnl 4 месяца назад

    For Big Database again inform queries by Prompt(like train LLM again) is huge job . May other way like Fine Tuning Model on Specific domain or Retrain it.

  • @HarrisonWells-f6o
    @HarrisonWells-f6o 10 месяцев назад +7

    31:53
    Facing error at
    vectorstore = Chroma.from_texts(to_vectorize, embeddings, metadatas=few_shots)
    ValueError: Expected EmbeddingFunction.__call__ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])

    • @rohaanmanzoor3268
      @rohaanmanzoor3268 9 месяцев назад +2

      pip install chromadb==0.4.15

    • @rajeshayyagari1944
      @rajeshayyagari1944 9 месяцев назад

      ​@@rohaanmanzoor3268even after installation am also facing the same error

    • @nandanab525
      @nandanab525 6 месяцев назад

      still getting same error. did u fix it?

    • @prakashraushan2621
      @prakashraushan2621 3 месяца назад

      @@nandanab525 hey ! did you fix it? I'm stuck here.

    • @aayushshandilya1617
      @aayushshandilya1617 25 дней назад

      heres what I did to resolve
      !pip install -U langchain chromadb langchain-community
      then restarted kernel and all set

  • @2dapoint424
    @2dapoint424 6 месяцев назад +3

    This is goldmine of information!!

    • @loading757
      @loading757 6 месяцев назад

      What if we change database every day like we insert or delete? This will work?

    • @2dapoint424
      @2dapoint424 6 месяцев назад +2

      @@loading757Why will you change DB everyday?

    • @loading757
      @loading757 6 месяцев назад

      @@2dapoint424 i mean if we alter, insert delete or make changes in db?

    • @sesesmith4783
      @sesesmith4783 6 месяцев назад

      @@2dapoint424 😂😂😂😂

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      Bro first line of code hi run nhi ho rha h pleade help kr do mera final year project h mera 😢😢😢

  • @ikennanwosu3261
    @ikennanwosu3261 10 месяцев назад +2

    This seems like a really good video, I'll be watching this later today. Wondering if you have a project where Databricks is used as data source?

  • @dasigiraghu640
    @dasigiraghu640 8 месяцев назад

    hats off , took me a while to understand fewshotprompttemplate

  • @GauravHaritas-j4k
    @GauravHaritas-j4k 10 месяцев назад +2

    How can I do it if I have elastic search instead of mysql database?

  • @kotresht1804
    @kotresht1804 9 месяцев назад

    Thanks for the video. Concepts and flow explaination is really nice. Its taking some time to digest all of this.

  • @drogokhal3058
    @drogokhal3058 6 месяцев назад

    Dear sir, thank you very much for great tutorial! Keep it going on!

  • @siddheshphapale95
    @siddheshphapale95 10 месяцев назад +1

    can we ask context based response? eg : Q1 . "how many XS size thsirt are there?" ans 50, Q2. "and S size?" LLM will understand the context of Q2 which is 'SiZE'

  • @KanupriyaDhiman
    @KanupriyaDhiman 6 месяцев назад

    Very nice use case! Quick question though, we don't we create a dashboard out of this DBMS?

  • @AkankshaRasaputhra
    @AkankshaRasaputhra 3 дня назад

    Will this update the current data or we only deal with the historic data??

  • @DevShahin-zm8ni
    @DevShahin-zm8ni 6 дней назад

    I want to make a report generating software using LLM on my ERP where nearly 200 tables are exists. In my report generating software I give a propmt and LLM will analysis this promps and make a sql query on the basis of my ERP databases. Can I do it using this procedure?

  • @maroofabdullah9031
    @maroofabdullah9031 11 месяцев назад

    GREAT project!!!!!!!! Waiting for more LangChain Projects

    • @codebasics
      @codebasics  11 месяцев назад

      please check a playlist link in the video description (I have 3 end to end projects already on LLM in education sector, finance and this one is on retail)

  • @yummyfoods2764
    @yummyfoods2764 Месяц назад +2

    Any one have updated code

  • @fantasyxpress7966
    @fantasyxpress7966 11 месяцев назад

    How humble dhaval sir who keeps us motivated

    • @codebasics
      @codebasics  11 месяцев назад

      Thank you, Happy Learning.

    • @loading757
      @loading757 6 месяцев назад

      ​@@codebasicsbut sir if we need answers of multiple coloumn what will we do? And database changes everyday, is it incorporate with our model?

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      I am not able to run, please help me, this is my final year project 😢😢😢 If anyone can help me, I am ready for paying.

    • @fantasyxpress7966
      @fantasyxpress7966 16 дней назад

      @@ritikkumarsah7 ping me in hindi saat nau saat saat paanch saat ek do aat che

  • @vms7597
    @vms7597 8 месяцев назад +4

    I'm able to run it on jupyter notebook but pycharm throws this error for the wrapper:
    validation error for SQLDatabaseChain
    database
    instance of SQLDatabase expected (type=type_error.arbitrary_type; expected_arbitrary_type=SQLDatabase)

    • @IlyesBouzidi-f2s
      @IlyesBouzidi-f2s 6 месяцев назад +1

      i got this error too, if you find a solution can you tell me how you managed? thank you in advance

    • @shreyasreedhar1225
      @shreyasreedhar1225 5 месяцев назад

      Could you resolve the error?

    • @minimin-wj8vp
      @minimin-wj8vp Месяц назад

      ​ @shreyasreedhar1225
      @user-du4kl4by3y
      @vms7597
      Could you resolve the error?

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      I am not able to run, please help me, this is my final year project 😢😢😢 If anyone can help me, I am ready for paying.

    • @ritikkumarsah7
      @ritikkumarsah7 14 дней назад

      module 'google.generativeai' has no attribute 'generate_text'
      please how can i fix it?????????

  • @smeetkathiria1182
    @smeetkathiria1182 10 месяцев назад

    Excellent video Dhaval Sir. 👌👏🏻👏🏻

  • @saitarak1824
    @saitarak1824 7 месяцев назад +1

    I'm facing an issue with sentence-transformer. Even after installation when it comes to HuggingFaceEmbeddings, it is throwing error install no module named torch._c and also says to install sentence-transformers. Python, torch versions are matching though.

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      Hey bro run hua kya.. ye mera final year project hai. Run ho rha hai help kr do please i am ready for paying 😢😢😢

  • @priyaranjan2094
    @priyaranjan2094 8 месяцев назад +1

    Can I perform the same with MongoDB (No SQL) too? Does langchain support that @codebasics?

  • @NRAnalytics
    @NRAnalytics 11 месяцев назад +5

    which google-generativeai version have you got installed? i am getting tons of errors due to version mismatch...

    • @aryanraina1932
      @aryanraina1932 5 месяцев назад +2

      Same here bro

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      I am not able to run, please help me, this is my final year project 😢😢😢 If anyone can help me, I am ready for paying.

  • @veeru18
    @veeru18 7 месяцев назад +1

    I am getting issue with langchain libraries , pls advice python version and import lib versions -- Thanks

    • @loading757
      @loading757 6 месяцев назад

      Dont trust this guy. You will stuck on midway 😢😢

  • @ThemanB1997
    @ThemanB1997 11 месяцев назад +1

    Is it possible to use hugging face llm model api key too

  • @akrsrivastava
    @akrsrivastava 8 месяцев назад

    Is this free slot prompting scalable in production environments? There can be so many tables, do many different kinds of possible queries. We can not keep asking queries to prompts. Also these few shots examples would need to be part of the LLM context will be costly.

  • @trendyjewellery1987
    @trendyjewellery1987 4 месяца назад

    Superb

  • @clytandsilva5279
    @clytandsilva5279 3 месяца назад

    Can you please create a video using llama3 for getting answers from a pdf document

  • @mukilanru
    @mukilanru 11 месяцев назад +2

    Can we use HuggingFace InferenceClient?

    • @Sy06274
      @Sy06274 11 месяцев назад

      Obviously

  • @karthiksundaram544
    @karthiksundaram544 10 месяцев назад

    Nice teaching ❤

  • @senthiljun1987
    @senthiljun1987 6 месяцев назад

    Well explained

  • @Dastak786
    @Dastak786 3 месяца назад

    Facing issue in establishing a connection b/w python and SQL. Can someone help?

  • @BICHURAJ-d2p
    @BICHURAJ-d2p 7 месяцев назад

    hi sir, while doing langchain i found that model is passing unwanted quotes to the db. Can you suggest any solution to rectify this problem?

  • @MyWorkoutDiary11
    @MyWorkoutDiary11 11 месяцев назад +1

    Another superb video. Can we build "End to End LLM Project Using Langchain, OpenAI in Finance Domain" which you shown 1 month ago with Google PaLM?
    I am asking because as you said google PaLM is free. So those who doesn't have OPENAI paid account then they can practice it.
    If possible then please make a video on it.
    Thanks in advance

    • @codebasics
      @codebasics  10 месяцев назад +2

      Hey yes for that finance project you can use Google palm instead of open ai. you can get it done with few lines of code change. I am not sure if I will have that to make a separate video on that. consider this as an exercise for yourself 😃

    • @MyWorkoutDiary11
      @MyWorkoutDiary11 10 месяцев назад +1

      @@codebasics Thank You very much for your kind support. You are a real gem of this industry. You are putting your great effort for India's bright future.

    • @DheerajJ-tl6cl
      @DheerajJ-tl6cl 10 месяцев назад +1

      Did you figured it how to use Google PaLM instead of OpenAI

    • @DheerajJ-tl6cl
      @DheerajJ-tl6cl 10 месяцев назад +1

      I have been working on it for a long time but getting error at embedding

    • @sidindian1982
      @sidindian1982 10 месяцев назад +1

      ​@@codebasicssir can this be connected sql server db?? .. I am using quite long

  • @pankajvats421
    @pankajvats421 9 месяцев назад

    Can we use langchain in corporates. I mean using API access key may be not secure to use in corporate industries because of data security

  • @sainukala9
    @sainukala9 10 месяцев назад

    how to print associated SQL query for the question in streamlit?

  • @tharunps8048
    @tharunps8048 8 месяцев назад

    I have a doubt. Will this send my Database contents/schema along with API request to LLMs for queries I ask ?

  • @jagdishmudaliyar1645
    @jagdishmudaliyar1645 11 месяцев назад

    sir how to give table and column name description to llm since most of the time the names are assigned based on domain knowledge so how to give custom description

  • @deepanshurai7491
    @deepanshurai7491 19 дней назад +1

    They have decommissioned google palm now what to do

    • @kashifahmad9880
      @kashifahmad9880 17 дней назад

      I’m facing an error also with google palm what can be alternative do yoh have any idea?

    • @deepanshurai7491
      @deepanshurai7491 16 дней назад

      @@kashifahmad9880 It's very difficult to select any other model because other model are not able to Make Sql connections

  • @kaustavjana8584
    @kaustavjana8584 Месяц назад

    facing problems in embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L6-v2')

  • @gauravfamily2209
    @gauravfamily2209 10 месяцев назад

    Hi, how I will decide that which GPT version will suitable for my project as below code? Please send any guideline/rule regarding this. Thank you.
    chatllm=ChatOpenAI(openai_api_key=os.environ["OPEN_API_KEY"],temperature=0.6,model='gpt-3.5-turbo')

  • @panhtran8384
    @panhtran8384 11 месяцев назад

    Thank you 💯❤

  • @bookcentralpakistan2497
    @bookcentralpakistan2497 4 месяца назад

    I've been facing a problem where I'm not been able to connect local host. Please help if anyone can.

  • @danielgroth6998
    @danielgroth6998 9 месяцев назад

    Amazing video💪

  • @lakshmikanth1988
    @lakshmikanth1988 3 месяца назад +1

    @ 14:33 while executing this db_chain = SQLDatabaseChain.from_llm(llm, db, verbose=True) i am facing an error ValidationError: 1 validation error for SQLDatabaseChain
    database
    instance of SQLDatabase expected (type=type_error.arbitrary_type; expected_arbitrary_type=SQLDatabase) please someone help me

    • @shahrukhahmad4127
      @shahrukhahmad4127 3 месяца назад

      Not working this code now

    • @minimin-wj8vp
      @minimin-wj8vp Месяц назад

      @@shahrukhahmad4127
      @lakshmikanth1988
      Could you resolve the error?

  • @honprarules
    @honprarules 6 месяцев назад

    How do we add memory to this?

  • @gudiatoka
    @gudiatoka 11 месяцев назад

    Great 🎉

  • @bhaskarmarepalli2448
    @bhaskarmarepalli2448 8 месяцев назад

    How to use Gemini?

  • @FutureAIUpdates
    @FutureAIUpdates 11 месяцев назад

    Great video Dhaval❤

    • @codebasics
      @codebasics  11 месяцев назад

      Glad you liked it!

  • @mainuddinali9561
    @mainuddinali9561 Месяц назад

    OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\Moin\anaconda3\Lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
    i m getting this error, not able to tackle

  • @rahneshin752
    @rahneshin752 10 месяцев назад +1

    ❤❤❤

  • @siddharthrane2430
    @siddharthrane2430 5 месяцев назад

    Does this project include any paid Suprciptions for keys?

  • @c0mpl3xyz
    @c0mpl3xyz 10 месяцев назад

    what if the quantity of t-shirt decreases which means someone buys after some time passed, do we need to change few_shots list's values and rerun the whole process? or llm figure out by its own?

    • @loading757
      @loading757 6 месяцев назад

      Exactly my doubt

    • @loading757
      @loading757 6 месяцев назад

      You did this project?

  • @pragneshsolanki8243
    @pragneshsolanki8243 11 месяцев назад

    Which python version is used in this project & Why? There are new version available like 3.10, 3.11, 3.12

  • @JatinRana-y3g
    @JatinRana-y3g 9 месяцев назад +8

    I am watching videos on Generative AI from last 7-8 days and this one is so easy to understand. Thanks

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      Bro first line of code hi run nhi ho rha h pleade help kr do mera final year project h mera 😢😢😢

  • @GenZ_Hustler
    @GenZ_Hustler 3 месяца назад +2

    Facing error at
    vectorstore = Chroma.from_texts(to_vectorize, embeddings, metadatas=few_shots)
    ValueError: Expected EmbeddingFunction._call_ to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs'])

    • @akshaygupta5290
      @akshaygupta5290 Месяц назад

      Re-check this things:
      1. from langchain.vectorstores import Chroma this is correct
      2. formate of your few_shots dict it correct.
      3. to_vectorize = [" ".join(example.values()) for example in few_shots] This is correct.
      Might solves the issue

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      I am not able to run, please help me, this is my final year project 😢😢😢 If anyone can help me, I am ready for paying.

  • @mdmusaddique_cse7458
    @mdmusaddique_cse7458 9 месяцев назад +6

    Thank you uploading such detailed project videos. Learining newer tech like langchain becomes easier with such tutorials.

    • @ritikkumarsah7
      @ritikkumarsah7 16 дней назад

      Bro first line of code hi run nhi ho rha h pleade help kr do mera final year project h mera 😢😢😢

  • @vishalsaichindepalli2798
    @vishalsaichindepalli2798 4 месяца назад +2

    Thank you for this video! I was wondering if there is a way to do this with Gemini 1.5 Flash or Gemini 1.5 Pro

  • @sardorabdirayimov
    @sardorabdirayimov 7 месяцев назад +1

    Your body language is excellent, folk! That makes the topic to understand easily!

  • @sandesh-n3r
    @sandesh-n3r 11 месяцев назад +1

    Hey, Great Video ... How can we do this for Question Answering LLM Task.

  • @saiprakashreddy8590
    @saiprakashreddy8590 9 месяцев назад +1

    In production answers might change every day, it will be not possible to change answers every day right? And what about if I need data in table format, It will only answer in one single word, if we need data of 2 or more columns, so what would be the approach for it?

  • @iramdeep8964
    @iramdeep8964 9 дней назад

    Can i write this code in vscode?

  • @shashiraj6093
    @shashiraj6093 10 месяцев назад +1

    Hi sir good afternoon

  • @sriharshap1971
    @sriharshap1971 10 месяцев назад +1

    I am getting error at the starting stage itself while using the google palm

  • @abdulqadar9580
    @abdulqadar9580 11 месяцев назад +1

    Amazing project

  • @shivanshusoni4445
    @shivanshusoni4445 8 месяцев назад +1

    Error of this line :--to_vectorize = [" ".join(example.values()) for example in few_shots]
    This is the error :----------------------------------------------------------------------------
    TypeError Traceback (most recent call last)
    Cell In[31], line 1
    ----> 1 to_vectorize = [" ".join(example.values()) for example in few_shots]
    Cell In[31], line 1
    ----> 1 to_vectorize = [" ".join(example.values()) for example in few_shots]
    TypeError: sequence item 3: expected str instance, dict found
    If I change above line with this to_vectorize = [{" ".join(str(value) for value in example.values() if isinstance(value, str))} for example in few_shots] this is working fine but in next line
    vectorstore = Chroma.from_texts(to_vectorize, embeddings, metadatas=few_shots)
    it is giving me this error 86 texts = list(map(lambda x: x.replace("
    ", " "), texts))
    87 if self.multi_process:
    88 pool = self.client.start_multi_process_pool()
    AttributeError: 'set' object has no attribute 'replace'

    • @prakashraushan2621
      @prakashraushan2621 3 месяца назад +1

      I resolved it using the following changes:-
      in few_shots, make sure to take only the results from the qns1, qns2, qns3, qns4, qns5 .
      i;e., qns4['result'] in-place of qns4 and so on.
      and same for others.( if qns is alread a string value and not dictionary, then leave it.)

    • @deepashenoy2301
      @deepashenoy2301 3 месяца назад

      ​@@prakashraushan2621 did u get a working project?

    • @prakashraushan2621
      @prakashraushan2621 3 месяца назад

      @@deepashenoy2301 yes it worked for me.

  • @koushikroy8668
    @koushikroy8668 7 месяцев назад

    Hi , this video was super helpful for my work but can we retieve the SQL query without running it, actually I want only the SQL Query. I tried with logger but failed. Any good idea would help a lot.

  • @Maneesha352
    @Maneesha352 11 месяцев назад

    I have no science background in my school level and i completed my post graduation.is it eassy to shift data science filed.. If i can learn data science certificate programm.. If data science short term course are available in data science filed

  • @TusharQSXYV21
    @TusharQSXYV21 9 месяцев назад

    I am trying to join the list but i am getting error like this "sequence item 3: expected str instance, dict found" how can i solve this error
    please help me to comeout from this

  • @maroofabdullah9031
    @maroofabdullah9031 10 месяцев назад

    Can we access MongoDB as well?, becoz i could not find docs related to MongoDB.

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 10 месяцев назад

    can you make a video on finetuning llm for cyber security.

  • @arshahin9788
    @arshahin9788 23 дня назад

    Can I do this project using Llama or any open source model?

    • @codebasics
      @codebasics  23 дня назад +1

      Yes. Please check the latest video on this channel. It uses llama3.1, you can change this project as per that video.

    • @arshahin9788
      @arshahin9788 23 дня назад +1

      @@codebasics as the result in the browser I get this output "Question: what is the quantity of red tshirt? SQLQuery: SELECT sum(stock_quantity) as total_quantity FROM t_shirts WHERE color = 'Red'" not get output like you

    • @mihirkapile6925
      @mihirkapile6925 18 дней назад

      @@arshahin9788 @codebasics I am getting the same problem

  • @codeshivam_3434
    @codeshivam_3434 11 месяцев назад

    Hii sir, 2nd year cse student sir, certification ka bhi workshop rakhiye if possible please

  • @nemsingh6035
    @nemsingh6035 11 месяцев назад

    Please make a video on prompt engineering

  • @ankit-e6j9y
    @ankit-e6j9y 6 месяцев назад

    Feel bad for Lauki Lal

  • @parth.mandaliya
    @parth.mandaliya 7 месяцев назад

    I binged on the playlist, how come this does not have millions of views?

  • @harsh2014
    @harsh2014 6 месяцев назад

    Thanks for this tutorial !

  • @lakshmir9946
    @lakshmir9946 9 месяцев назад

    Amazing tutorial. really helpful. Thanks Dhaval Patel sir.

  • @technova430
    @technova430 8 месяцев назад

    Sir you are using a GPT api key internally how they work and what is providing in the code when you use the chain function then you are not going to encode query. And you pass LLM = LLM means what??