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

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 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 22 วันที่ผ่านมา

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

    • @SatwikVarmaKunaparaju
      @SatwikVarmaKunaparaju 12 วันที่ผ่านมา

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

    • @ritikkumarsah7
      @ritikkumarsah7 12 วันที่ผ่านมา

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

  • @SandeepKumar-rj3te
    @SandeepKumar-rj3te 7 หลายเดือนก่อน +4

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

  • @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 22 วันที่ผ่านมา

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

  • @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 22 วันที่ผ่านมา

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

  • @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.

  • @sardorabdirayimov
    @sardorabdirayimov 7 หลายเดือนก่อน +1

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

  • @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.

  • @parth.mandaliya
    @parth.mandaliya 7 หลายเดือนก่อน

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

  • @aruneshuma
    @aruneshuma 9 หลายเดือนก่อน +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!

  • @umeshtiwari9249
    @umeshtiwari9249 6 หลายเดือนก่อน

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

  • @umeshtiwari800
    @umeshtiwari800 11 หลายเดือนก่อน +2

    U always explain very easily😊

  • @dasigiraghu640
    @dasigiraghu640 8 หลายเดือนก่อน

    hats off , took me a while to understand fewshotprompttemplate

  • @drogokhal3058
    @drogokhal3058 7 หลายเดือนก่อน

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

  • @lakshmir9946
    @lakshmir9946 10 หลายเดือนก่อน

    Amazing tutorial. really helpful. Thanks Dhaval Patel sir.

  • @kotresht1804
    @kotresht1804 10 หลายเดือนก่อน

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

  • @smeetkathiria1182
    @smeetkathiria1182 10 หลายเดือนก่อน

    Excellent video Dhaval Sir. 👌👏🏻👏🏻

  • @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 22 วันที่ผ่านมา

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

  • @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

  • @abdulqadar9580
    @abdulqadar9580 11 หลายเดือนก่อน +1

    Amazing project

  • @henilshah.
    @henilshah. 11 หลายเดือนก่อน +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

  • @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)

  • @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 22 วันที่ผ่านมา

      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 22 วันที่ผ่านมา

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

  • @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

  • @trendyjewellery1987
    @trendyjewellery1987 4 หลายเดือนก่อน

    Superb

  • @harsh2014
    @harsh2014 6 หลายเดือนก่อน

    Thanks for this tutorial !

  • @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.

  • @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

  • @karthiksundaram544
    @karthiksundaram544 10 หลายเดือนก่อน

    Nice teaching ❤

  • @SurendraKumar-ci3vt
    @SurendraKumar-ci3vt 10 หลายเดือนก่อน +1

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

  • @senthiljun1987
    @senthiljun1987 6 หลายเดือนก่อน

    Well explained

  • @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?

  • @danielgroth6998
    @danielgroth6998 9 หลายเดือนก่อน

    Amazing video💪

  • @panhtran8384
    @panhtran8384 11 หลายเดือนก่อน

    Thank you 💯❤

  • @gudiatoka
    @gudiatoka 11 หลายเดือนก่อน

    Great 🎉

    • @codebasics
      @codebasics  11 หลายเดือนก่อน

      Thank you !

  • @FutureAIUpdates
    @FutureAIUpdates 11 หลายเดือนก่อน

    Great video Dhaval❤

    • @codebasics
      @codebasics  11 หลายเดือนก่อน

      Glad you liked it!

  • @siddheshphapale95
    @siddheshphapale95 11 หลายเดือนก่อน +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'

  • @sandesh-n3r
    @sandesh-n3r 11 หลายเดือนก่อน +1

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

  • @KanupriyaDhiman
    @KanupriyaDhiman 6 หลายเดือนก่อน

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

  • @vatsalkumar5690
    @vatsalkumar5690 26 วันที่ผ่านมา +1

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

  • @rahneshin752
    @rahneshin752 11 หลายเดือนก่อน +1

    ❤❤❤

  • @GauravHaritas-j4k
    @GauravHaritas-j4k 10 หลายเดือนก่อน +2

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

  • @AkankshaRasaputhra
    @AkankshaRasaputhra 9 วันที่ผ่านมา

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

  • @nemsingh6035
    @nemsingh6035 11 หลายเดือนก่อน

    Please make a video on prompt engineering

  • @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 22 วันที่ผ่านมา

      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.

  • @codeshivam_3434
    @codeshivam_3434 11 หลายเดือนก่อน

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

  • @priyaranjan2094
    @priyaranjan2094 8 หลายเดือนก่อน +1

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

  • @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.

  • @DevShahin-zm8ni
    @DevShahin-zm8ni 12 วันที่ผ่านมา

    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?

  • @shashiraj6093
    @shashiraj6093 11 หลายเดือนก่อน +1

    Hi sir good afternoon

  • @clytandsilva5279
    @clytandsilva5279 3 หลายเดือนก่อน

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

  • @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 7 หลายเดือนก่อน +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 22 วันที่ผ่านมา

      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 20 วันที่ผ่านมา

      module 'google.generativeai' has no attribute 'generate_text'
      please how can i fix 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 หลายเดือนก่อน

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

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 10 หลายเดือนก่อน

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

  • @ThemanB1997
    @ThemanB1997 11 หลายเดือนก่อน +1

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

  • @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  11 หลายเดือนก่อน +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 11 หลายเดือนก่อน +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

  • @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.

  • @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 😢😢

  • @saitarak1824
    @saitarak1824 8 หลายเดือนก่อน +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 22 วันที่ผ่านมา

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

  • @kaustavjana8584
    @kaustavjana8584 หลายเดือนก่อน

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

  • @mukilanru
    @mukilanru 11 หลายเดือนก่อน +2

    Can we use HuggingFace InferenceClient?

    • @Sy06274
      @Sy06274 11 หลายเดือนก่อน

      Obviously

  • @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 22 วันที่ผ่านมา

      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.

  • @yummyfoods2764
    @yummyfoods2764 หลายเดือนก่อน +2

    Any one have updated code

  • @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?

    • @loading757
      @loading757 6 หลายเดือนก่อน

      Same doubt

  • @tharunps8048
    @tharunps8048 8 หลายเดือนก่อน

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

  • @pankajvats421
    @pankajvats421 10 หลายเดือนก่อน

    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

  • @sriharshap1971
    @sriharshap1971 11 หลายเดือนก่อน +1

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

    • @sidindian1982
      @sidindian1982 10 หลายเดือนก่อน

      Activate your api key

  • @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')

  • @sainukala9
    @sainukala9 10 หลายเดือนก่อน

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

  • @iramdeep8964
    @iramdeep8964 15 วันที่ผ่านมา

    Can i write this code in vscode?

  • @bhaskarmarepalli2448
    @bhaskarmarepalli2448 8 หลายเดือนก่อน

    How to use Gemini?

  • @Dastak786
    @Dastak786 3 หลายเดือนก่อน

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

  • @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

  • @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?

  • @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

  • @deepanshurai7491
    @deepanshurai7491 25 วันที่ผ่านมา +1

    They have decommissioned google palm now what to do

    • @kashifahmad9880
      @kashifahmad9880 23 วันที่ผ่านมา

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

    • @deepanshurai7491
      @deepanshurai7491 22 วันที่ผ่านมา

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

  • @maroofabdullah9031
    @maroofabdullah9031 11 หลายเดือนก่อน

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

  • @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

  • @bookcentralpakistan2497
    @bookcentralpakistan2497 4 หลายเดือนก่อน

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

  • @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??

    • @johannanderson848
      @johannanderson848 8 หลายเดือนก่อน

      Bro you got a long way to go

    • @technova430
      @technova430 8 หลายเดือนก่อน

      @@johannanderson848 means

  • @honprarules
    @honprarules 7 หลายเดือนก่อน

    How do we add memory to this?

  • @arshahin9788
    @arshahin9788 29 วันที่ผ่านมา

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

    • @codebasics
      @codebasics  29 วันที่ผ่านมา +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 29 วันที่ผ่านมา +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 24 วันที่ผ่านมา

      @@arshahin9788 @codebasics I am getting the same problem

  • @lakshmikanth1988
    @lakshmikanth1988 4 หลายเดือนก่อน +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 4 หลายเดือนก่อน

      Not working this code now

    • @minimin-wj8vp
      @minimin-wj8vp หลายเดือนก่อน

      @@shahrukhahmad4127
      @lakshmikanth1988
      Could you resolve the error?

  • @siddharthrane2430
    @siddharthrane2430 5 หลายเดือนก่อน

    Does this project include any paid Suprciptions for keys?

  • @pragneshsolanki8243
    @pragneshsolanki8243 11 หลายเดือนก่อน

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

    • @5-10zoomergirls
      @5-10zoomergirls 11 หลายเดือนก่อน

      use 3.11 or 3.10 dont go for 3.12

    • @pragneshsolanki8243
      @pragneshsolanki8243 11 หลายเดือนก่อน

      Thanks @@5-10zoomergirls

  • @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?

  • @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.

  • @ankit-e6j9y
    @ankit-e6j9y 6 หลายเดือนก่อน

    Feel bad for Lauki Lal

  • @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