LangChain GEN AI Tutorial - 6 End-to-End Projects using OpenAI, Google Gemini Pro, LLAMA2

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • Learn how to us LangChain with GPT-4, Google Gemini Pro, and LLAMA2 by creating six end-to-end projects. The goal of LangChain is to link powerful LLMs, such as OpenAI's GPT-3.5 and GPT-4, to an array of external data sources to create and reap the benefits of natural language processing (NLP) applications.
    💻 Github: github.com/kri...
    ✏️ Course developed by ‪@krishnaik06‬
    ⭐️ Contents ⭐️
    ⌨️ (0:00:21) Introduction What We will Learn
    ⌨️ (0:01:36) Langchain Crash Course
    ⌨️ (1:18:26) Chat With PDF Using Langchain And Astradb
    ⌨️ (1:41:21) Blog Generation Using LLAMA 2 LLM Models
    ⌨️ (2:16:21) End To End LLm Projects Using Pinecone VectorDB
    ⌨️ (2:52:02) Google Gemini Pro Demo
    ⌨️ (3:20:11) Multi Language Invoice Extractor LLm Project
    ⌨️ (3:46:02) Conversational Q&A Chatbot Using Gemini Pro API
    🎉 Thanks to our Champion and Sponsor supporters:
    👾 davthecoder
    👾 jedi-or-sith
    👾 南宮千影
    👾 Agustín Kussrow
    👾 Nattira Maneerat
    👾 Heather Wcislo
    👾 Serhiy Kalinets
    👾 Justin Hual
    👾 Otis Morgan
    👾 Oscar Rahnama
    --
    Learn to code for free and get a developer job: www.freecodeca...
    Read hundreds of articles on programming: freecodecamp.o...

КОМЕНТАРІ • 162

  • @mayankjain4379
    @mayankjain4379 8 місяців тому +34

    Guys, at 1:12:56 the model da-vinci-003 is deprecated which means it's removed and replaced with another model.
    llm=OpenAI(openai_api_key=os.getenv("OPENAI_API_KEY"),model_name="gpt-3.5-turbo-instruct",temperature=0.5)
    Make the above changes, so that you dont get an error.

    • @bafna007
      @bafna007 8 місяців тому

      Hi any idea what is the problem with huggingface? I get this error, did you encounter like this "ConnectionError: (ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)), '(Request ID: 92d58948-1e04-40d9-a054-e6e182be6e43)')"

    • @islamicvoicesandhistory138
      @islamicvoicesandhistory138 8 місяців тому

      Please can anyone help to use this api freely in start? As everytime I run code it says check your bills

    • @theBear89451
      @theBear89451 8 місяців тому

      @@islamicvoicesandhistory138 If you run LM Studio on your local machine, it produces an API similar to OpenAI. I will need to override the OpenAI point locally. You could also use Hugging Face.

    • @trienode6189
      @trienode6189 8 місяців тому

      Exactly… checked their model and changed to this 3.5 instruct

  • @dffhhfhdifh
    @dffhhfhdifh 8 місяців тому +16

    legends dropping legendry tutorials.Thankyou so much gonna watch now

  • @siddhubhai2508
    @siddhubhai2508 3 місяці тому +2

    So clean and clear explaination! 😍😍 I love the way he teaches nad makes the complex concepts so easy 😍

  • @AlexMelemenidis
    @AlexMelemenidis 7 місяців тому +2

    Unfortunately the Gemini Pro API is not available in Germany yet and I am too lazy to run via VPN😬, but the other projects were great and already really helpful! 👏👏👏

  • @lutfilloahmedov5069
    @lutfilloahmedov5069 8 місяців тому +4

    very good video which shows how important ai is becoming in programming

  • @Zaratch
    @Zaratch 8 місяців тому +51

    Gonna watch it tomorrow!! Can someone remind me at 11 am on 26/01/2024. Thank you.

    • @1Iljo1
      @1Iljo1 8 місяців тому +7

      get a calendar maybe?

    • @أحمدالعريقي-ض1خ
      @أحمدالعريقي-ض1خ 8 місяців тому +12

      ​@@1Iljo1 if you really want to watch it, you can set your alarm or make an event on your mobile...etc. No need to ask someone reminding you. I used to do like your stupid actions many years ago👎🏻👎🏻

    • @wassimiskandar699
      @wassimiskandar699 8 місяців тому

      😂

    • @Zaratch
      @Zaratch 8 місяців тому

      @@أحمدالعريقي-ض1خ bro went so hard that I decided to watch it right away !!

    • @pulkitkhanna1119
      @pulkitkhanna1119 8 місяців тому

      No

  • @zhaobu9326
    @zhaobu9326 6 місяців тому

    very useful video, which is very helpful for learning AI related technologies,please make more videos like this.

  • @Martyniqo
    @Martyniqo 8 місяців тому +3

    Thanks for this video :) Unfortunately langchain has already changed a lot of things - even 'predict' is deprecated in favor of 'invoke'

  • @harippriyasivapatham2251
    @harippriyasivapatham2251 6 місяців тому +3

    The run at 1:40:40 results in "This is a chat model and not supported in the v1/completions endpoint" error. To solve this, use model="gpt-3.5-turbo-instruct" when defining the llm.

  • @mikemargetts
    @mikemargetts 8 місяців тому +1

    Love it. a pragmatic approach to learning how to use these libraries.

  • @PANDURANG99
    @PANDURANG99 8 місяців тому +2

    Nice video, kindly add a list of timestamps and titles.

  • @aruns05
    @aruns05 4 місяці тому

    The tutorial is very good, a few things is now different especially Pinecone related

  • @AlexMelemenidis
    @AlexMelemenidis 7 місяців тому

    thanks for the tip with the venv! I did another course on Udemy (which was also great otherwise) but there I had huge issue with breaking changes, dependencies etc.

  • @subbu7512
    @subbu7512 8 місяців тому +2

    Right when i needed it , Just blessed ! :)

  • @summersoldier9905
    @summersoldier9905 8 місяців тому

    PhysicsWala legend on another Legendary Channel

  • @ovskihouse5270
    @ovskihouse5270 8 місяців тому +3

    Thanks to the association #freecodecamp

  • @mrnabby4178
    @mrnabby4178 8 місяців тому +3

    Langchain looks like in demand.

  • @JohnMathew-w3k
    @JohnMathew-w3k 7 місяців тому +1

    This is gold!

  • @lwjunior2
    @lwjunior2 8 місяців тому +3

    Going to complete right now. Thanks

  • @keymung
    @keymung 8 місяців тому +1

    What is the total number of months from January 2014 to December 2019 when NBA is more popular (in terms of hits) than MLB? HOW TO DO THIS ON R STUDIO

  • @sayedmobashir7803
    @sayedmobashir7803 8 місяців тому +1

    Thanks for learning to us

  • @abhijeetdhumal7385
    @abhijeetdhumal7385 8 місяців тому +1

    Please make video on Performance Testing (jmeter)

  • @vasarajasekhar
    @vasarajasekhar 8 місяців тому +3

    Seems text-davinci-003 model used in Q&A Chatbot is deprecated! I tried with gpt-3.5-turbo-instruct. It worked.

    • @ParthShuklaprateek
      @ParthShuklaprateek 8 місяців тому

      hi boss - can you help me .. i followed the video step by step for the Q*A chatbot.. im unable to launch the streamlit app...its just showing a blank screen. no error. Initially streamlit webpage was giving an error - Import error: can import openai from langchain

    • @disrael2101
      @disrael2101 8 місяців тому

      running the command: conda create -p venv python -y (worked just fine)
      then i try: conda activate venv/
      CondaError: Run 'conda init' before 'conda activate'
      on mac using brew

  • @realCleanK
    @realCleanK 8 місяців тому

    Thank you!

  • @ProgrammingNCodingWithHarsh
    @ProgrammingNCodingWithHarsh 8 місяців тому

    Wow Thanks for this tutorial
    This is very helpful!! 😀

  • @CodewithRiz
    @CodewithRiz Місяць тому

    Can you plz make some content on api tokens management to optimize business price .

  • @Narendra_19
    @Narendra_19 8 місяців тому +2

    Thank you 😊 sir

  • @codietech2806
    @codietech2806 8 місяців тому

    thank you sir for this informative video

  • @be_present_now
    @be_present_now 8 місяців тому +2

    Langchain v0.1.0 is now slightly different that this version. Nonetheless, thanks for this nice tutorial. 👍

    • @disrael2101
      @disrael2101 8 місяців тому

      running the command: conda create -p venv python -y (worked just fine)
      then i try: conda activate venv/
      CondaError: Run 'conda init' before 'conda activate'
      on mac using brew

    • @sprightly106
      @sprightly106 8 місяців тому

      @@disrael2101 like the error says, try running `conda init`, and after that it should work...

    • @disrael2101
      @disrael2101 8 місяців тому

      i tried, i posted it after i tried of course.. it seems to run fine but the same error persist.. looks like it's a brew mac issue with the envs of the ancaonda on the shell@@sprightly106

    • @disrael2101
      @disrael2101 8 місяців тому

      do you've any idea why he chose 1536 as the dimensions at 2:41:15 he didn't explain that@@sprightly106

  • @SparxableTunes
    @SparxableTunes 6 місяців тому

    Nice tutorial, but just like many others I've seen it sidesteps the use of Meta's raw .pth model in favor of Hugging face's format. I guess that's more comprehensive for the sake of educating but I had to search for a while to understand what switching to Hugging Face's models actually implied.

  • @proan_1992
    @proan_1992 8 місяців тому +2

    Can you share the google colab for the pdfquery tutorial?

  • @adesinapsalmlord7305
    @adesinapsalmlord7305 8 місяців тому

    Thanks for this❤

  • @Robocontestuchun
    @Robocontestuchun 8 місяців тому

    Thank you 🎉🎉

  • @gamefied7023
    @gamefied7023 8 місяців тому

    After Watching the full video can I able to make my own Application like ChatGPT??

  • @lenkamndev9988
    @lenkamndev9988 8 місяців тому

    Krish sir guru ji🥰🙏

  • @Humza_Aseel_Lover
    @Humza_Aseel_Lover 8 місяців тому +1

    I think the huggingface llm is making so short and non creative answers because you made its temperature 0 rather than making it 0.6 like you did to openAi llm. Correct me if I'm wrong please.

  • @samstar1290
    @samstar1290 8 місяців тому +1

    He is a great teacher, i m proud to be his student. @krishnaik

  • @DesignsbyBlanc
    @DesignsbyBlanc 8 місяців тому

    Thank you!!

  • @hassanahmad1483
    @hassanahmad1483 8 місяців тому +2

    Everybody is just teaching how to make custom assistants...But nobody is guiding how to deploy these on webpages...can someone guide me to implement custom assistant api into webpage?
    Thank you

  • @antirokamado865
    @antirokamado865 5 місяців тому

    Thank you so much , very clear explanation

  • @ramesh-dk9nr
    @ramesh-dk9nr 8 місяців тому +3

    Are you all using the paid version for OpenAI part? Any workaround if you can't use paid API for openai?

    • @mayankjain4379
      @mayankjain4379 8 місяців тому +1

      Yes, i added credit of 5 dollar with tax 5.90 to the open ai account, without that the query was not getting answered.

    • @disrael2101
      @disrael2101 8 місяців тому

      running the command: conda create -p venv python -y (worked just fine)
      then i try: conda activate venv/
      CondaError: Run 'conda init' before 'conda activate'
      on mac using brew@@mayankjain4379

    • @MatthewM2002
      @MatthewM2002 7 місяців тому +1

      I did a little bit of my own tinkering and found that you can use mixtrals model for free for quite a bit of the lessons, he explains using Hugging Face LLMs so I reverse engineered the steps.

    • @rohanpachauri9777
      @rohanpachauri9777 7 місяців тому

      @@MatthewM2002 can you tell me more? like what's the LLM name exactly - there seems to be more than one by the name of HuggingFace, also what model of the mixtral one do i have to use?

  • @eqfira
    @eqfira 7 місяців тому

    You gott it 2k like

  • @abhinjr4918
    @abhinjr4918 8 місяців тому

    Spring AI is the future or this?

  • @RamonX69
    @RamonX69 4 місяці тому

    Krish freecodecamp fusion! Nice

  • @bevansmith3210
    @bevansmith3210 8 місяців тому

    Beginning RAG example? 1:19:30

  • @jamesbondisamonkey
    @jamesbondisamonkey 8 місяців тому

    make sure you set up the paid api key, if you've used free, or you won't be able to use Open AI

  • @IbrahimPopatiya
    @IbrahimPopatiya 19 днів тому +2

    OpenAI is not free anymore so what to use instead of it

  • @Anuj_Kumar_1
    @Anuj_Kumar_1 8 місяців тому

    👍👍👍👍👍👍

  • @Zeioth
    @Zeioth 8 місяців тому

    This is the best 4h resume of a manual you would otherwise read in 1h.

  • @rajeshpurwar4406
    @rajeshpurwar4406 8 місяців тому

    can we use hugging face hub in production? I think not, as license is not open source. please confirm

  • @TheSharkbeast
    @TheSharkbeast 8 місяців тому +1

    Guys do i need to get chat gpt plus to proceed with this?? I'm gonna start this on Saturday

  • @aliakbar-vb9sl
    @aliakbar-vb9sl 8 місяців тому +1

    What is the use of this ?

  • @disrael2101
    @disrael2101 8 місяців тому +1

    how can i use this to create a chatgpt specified for my website content q&a

    • @gamefied7023
      @gamefied7023 8 місяців тому +1

      Same Question any one please Ans??

  • @sohailpatel9562
    @sohailpatel9562 3 місяці тому

    at 2:44:12 why did you use ''doc" that is the entire data intead of the data in chunks.

  • @random_guy_7
    @random_guy_7 5 місяців тому +1

    openai has stopped giving api for free, please suggest some alternative

  • @abbasmahmoud360
    @abbasmahmoud360 8 місяців тому

    Reding attentively

  • @egonkirchof
    @egonkirchof 5 місяців тому +3

    This is great material. But please stop saying "probably" so much.

    • @drewplayz3765
      @drewplayz3765 4 місяці тому

      probably stop saying "probably" so much

  • @prakharkapoor2572
    @prakharkapoor2572 4 місяці тому +1

    we need paid api key of open ai 3.5?

  • @slavabugz2612
    @slavabugz2612 8 місяців тому +1

    The SequentialChain part (00:47:00) is not working for some reason, it tells me I'm missing required input keys, any idea? I've verified that the code is the same..

    • @dietmarbaur1185
      @dietmarbaur1185 8 місяців тому

      works for me, please share your code.

    • @slavabugz2612
      @slavabugz2612 8 місяців тому

      @@dietmarbaur1185 Hi, thanks for the rsponse, It was because the versions were different, as it was deprecetad or something, One way or another, the rest of the stuff seems to be working great, so not relevant anymore :D

    • @disrael2101
      @disrael2101 8 місяців тому

      running the command: conda create -p venv python -y (worked just fine)
      then i try: conda activate venv/
      CondaError: Run 'conda init' before 'conda activate'
      on mac using brew

    • @disrael2101
      @disrael2101 8 місяців тому

      running the command: conda create -p venv python -y (worked just fine)
      then i try: conda activate venv/
      CondaError: Run 'conda init' before 'conda activate'
      on mac using brew@@dietmarbaur1185

  • @sal8398
    @sal8398 8 місяців тому +1

    I am unable to create the environment. When type in conda create -p venv python==3.9 -y I get the following message: "'conda' is not recognized as an internal or external command,
    operable program or batch file.". Can anybody help? Do I need to download anything prior to theses steps?

    • @peppytech3281
      @peppytech3281 8 місяців тому

      hope u are able to solve it

    • @addytechie6948
      @addytechie6948 2 місяці тому

      u can try py -m venv 'environment name', if conda is not installed

  • @TameemAnsari-kq2jh
    @TameemAnsari-kq2jh 6 місяців тому

    is the openai key only for paid accounts, coz created the key but I couldn't use it

  • @ananya__f
    @ananya__f 8 місяців тому

    code is not working for my Personal "OPEN_API_KEY". please help me

  • @asthashukla2086
    @asthashukla2086 3 місяці тому

    I get error because i do not have enough api_keys left for the month

  • @krrishawesomeness3125
    @krrishawesomeness3125 7 місяців тому

    For the Pinecone project I'm receiving PineconeApiAttributeError: QueryResponse has no attribute '0' at ['['received_data']'] error. Error seems to be associated with chain.run(). Can someone suggest how to fix?

  • @dhirajsharma6484
    @dhirajsharma6484 5 місяців тому

    Any solution for the RateLimitError? While doing llm.predict(text), it is not giving output and showing RateLimitError, quota exceeded. Do I have to have the paid version for this?

    • @random_guy_7
      @random_guy_7 5 місяців тому

      That's because OpenAI has stopped giving its API for free. If you want you can use a paid plan or simply can use a different llm like the one used here by HuggingFace but it says the capital of India to be Calcutta and Chennai lol

  • @thomasferreira306
    @thomasferreira306 8 місяців тому +1

    Hi, pinecone has migrate to a new version now "init" is no longer a top-level attribute of the pinecone package. I've made lot of reasearch but i don't find any solution to make it working again. Did you have an idea ?

    • @bafna007
      @bafna007 8 місяців тому +2

      hey man, I had the same problem and I fixed it like this: import openai
      import langchain
      import os
      from langchain_community.document_loaders import PyPDFDirectoryLoader
      from langchain.text_splitter import RecursiveCharacterTextSplitter
      from langchain.embeddings.openai import OpenAIEmbeddings
      from langchain_community.vectorstores import Pinecone as langpinecone
      from langchain.llms import OpenAI
      from pinecone import Pinecone, ServerlessSpec
      from dotenv import load_dotenv
      load_dotenv()
      # read doc
      def read_doc(directory):
      file_loader = PyPDFDirectoryLoader(directory)
      documents = file_loader.load()
      return documents
      doc = read_doc('data/')
      def chunk_data(docs, chunk_size=800, chunk_overlap=50):
      text_splitter= RecursiveCharacterTextSplitter(chunk_size=chunk_size, chunk_overlap=chunk_overlap)
      doc = text_splitter.split_documents(docs)
      return doc
      documents=chunk_data(docs=doc)
      len(documents)
      ## Embedding technique of OpenAI
      embeddings = OpenAIEmbeddings(api_key=os.environ['OPENAI_API_KEY'])
      embeddings
      vectors=embeddings.embed_query("How are you")
      len(vectors)
      # Create a Pinecone instance
      pc = Pinecone(
      api_key=os.environ.get('PINECONE_API_KEY'),
      environment="gcp-starter"
      )
      index_name = "langchainvector"
      # Now do stuff with 'pc'
      # For example, to check if an index exists and create one if it doesn't:
      if index_name not in pc.list_indexes().names():
      pc.create_index(
      name=index_name,
      dimension=1536, # Update the dimension as per your requirement
      metric='cosine',
      spec=ServerlessSpec(
      cloud='gcp', # Update this to your cloud provider if different
      region='us-west-2' # Update this to your specific region
      )
      )
      index = langpinecone.from_documents(doc, embeddings, index_name=index_name)
      This should work and you should see the pinecone database filled with your document vectors!, also with the new version the problem is both pinecone and langchain_community.vectorstores have an object as Pinecone and this leads to conflict when both the libraries are called and used one after the other!, so my work around for one of the library was to call like this "from langchain_community.vectorstores import Pinecone as langpinecone" and now it works. Let me know if it works for you.

    • @thomasferreira306
      @thomasferreira306 8 місяців тому

      @@bafna007 oh thanks a lot I'll look that tonight !

    • @amitjain9851
      @amitjain9851 7 місяців тому

      @@bafna007 Thanks, that worked like a charm, having spent looking for error resolution after the version change.

    • @kumarshivam1379
      @kumarshivam1379 7 місяців тому

      @@bafna007 hey man ,
      index = langpinecone.from_documents(doc, embeddings, index_name=index_name)
      is still throwing errors , i think the from_documents is also removed now

  • @stephenjames2951
    @stephenjames2951 8 місяців тому

    Does this require a paid subscription to open AI?

    • @yashjainme
      @yashjainme 8 місяців тому +1

      you get 5$ worth credit free for your OPENAI API. I think that is sufficient for this tutorial.

  • @Aztari0
    @Aztari0 Місяць тому

    i got RateLimitError 429 quota exceeded all the time that i try to run the simple question of "Whats the capital of India" just like in the video, any help?
    the api key i use is brand new and its configured to have all permissions.

  • @shriharinair3919
    @shriharinair3919 8 місяців тому

    is everything in this tutorial deprecated? i cant even move post 20mins here.

  • @saulbadman2530
    @saulbadman2530 8 місяців тому +1

    Indian ice cube

  • @savitharachuri
    @savitharachuri 5 місяців тому

    did anyone encounter error for gemini-pro project, at this statement to_markdown(response.text) ?

  • @factified6294
    @factified6294 3 місяці тому

    rate limit error why it is showing my activity is zero

  • @utkbella
    @utkbella 5 місяців тому

    is it outdated? I see different code on the docs?

  • @shreyashavaldar2076
    @shreyashavaldar2076 7 місяців тому

    Guys is open ai key free for everyone?

  • @pesfreak7310
    @pesfreak7310 8 днів тому

    Probably probably probably x 100000000000000

  • @yash_kakashi9029
    @yash_kakashi9029 8 місяців тому

    Conda function not working

  • @lucifer-learning-data
    @lucifer-learning-data 7 місяців тому +3

    First skill required to join iNeuron as a trainer: How bad you are typing and incorrect spellings. 😂😂

    • @Chanakya0075
      @Chanakya0075 Місяць тому

      I saw krish once upon time
      Adjusting for loop indentation for getting output in loop even though there is no error in the loop... He executed thrice 😅😅😅

  • @meshavegas
    @meshavegas 8 місяців тому

    sidney

  • @SanjayRoy-vz5ih
    @SanjayRoy-vz5ih 8 місяців тому +1

    Don't use "probably" for everything 😁

  • @mayankjain4379
    @mayankjain4379 8 місяців тому

    The term 'conda' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path
    was included, verify that the path is correct and try again.
    Get this error when I am running below command in VS Code terminal
    conda create -p venv python==3.9 -y
    Does it mean I need to install conda first.

    • @tensorlab
      @tensorlab 8 місяців тому +1

      It's either that or you need to add conda to path. Check your installation by searching for anaconda prompt. If you have conda installed and still facing the error, add conda to path (Windows)

    • @Humza_Aseel_Lover
      @Humza_Aseel_Lover 8 місяців тому +1

      Do it by this method:
      1) python -m venv my_venv
      2) cd my_venv/Scripts/activate
      Now the virtual environment will get activated.
      Note: please run these commands in the command prompt not in the shell etc

    • @Humza_Aseel_Lover
      @Humza_Aseel_Lover 8 місяців тому +1

      And yes you are right, you have to first install Conda for opening it's command prompt

    • @mayankjain4379
      @mayankjain4379 8 місяців тому +1

      This problem got resolved as below
      1. There was path missing in system variables which I added ( I already had conda installed but at different location).
      2. conda --no-plugins create -p venv python==3.9 -y
      The above line of code helped me solv the issue, by not downloading any plugin. so finally all the files got installed.

    • @Humza_Aseel_Lover
      @Humza_Aseel_Lover 8 місяців тому +1

      @@mayankjain4379 okay that's great 👍

  • @ajmalshahanpm938
    @ajmalshahanpm938 8 місяців тому +1

    first,

  • @webrevolution.
    @webrevolution. 8 місяців тому

    Why python? I'm so fed up with all this python stuff.
    It sucks. It's like the most noob friendly programming language made with absolutely no regard to optimization or speed of execution in mind. If you are just starting to learn programming it might be good, but why are you using py to showcase a project like this?

    • @BT-te9vx
      @BT-te9vx 8 місяців тому

      Cause this is for the ones starting out. You could create an advanced, focused on efficiency tutorial with c++ implementation or maybe assembly language.

  • @styluxlive
    @styluxlive 8 місяців тому

    Broken english

    • @Aragorneus
      @Aragorneus 8 місяців тому

      Whose ? Yours ! Are you even literate

  • @ah89971
    @ah89971 8 місяців тому +1

    Boring youtuber!

  • @hardscope7744
    @hardscope7744 8 місяців тому +2

    Sorry can’t watch this that accent annoying

    • @i8you
      @i8you 8 місяців тому +31

      you'll never learn with this attitude 😆

    • @kskfernando2945
      @kskfernando2945 8 місяців тому +13

      you're not gonna be missed so don't worry

    • @pythonantole9892
      @pythonantole9892 8 місяців тому +8

      No problem, you wont die if you don't watch or learn.

    • @Suresh-iu2tx
      @Suresh-iu2tx 8 місяців тому +6

      No one's gonna miss you😂 get outta here

  • @banaiviktor6634
    @banaiviktor6634 8 місяців тому +1

    Hello, do you know what should be used instead of Pinecone.from_document? It is no longer an attribute of the package. "index=Pinecone.from_documents(documents, embeddings, index_name=index_name)"

    • @Fredricktbb
      @Fredricktbb 7 місяців тому

      i have this same problem, i need help.

    • @kumarshivam1379
      @kumarshivam1379 7 місяців тому

      @@Fredricktbb did you get any solution?

    • @Fredricktbb
      @Fredricktbb 7 місяців тому

      @@kumarshivam1379
      "from langchain_pinecone import Pinecone". The code will work when you input this.

  • @ermalai
    @ermalai 8 місяців тому

    4 months old programs - langchain has deprecated several classes, methods

  • @mayankjain4379
    @mayankjain4379 7 місяців тому

    getting this error while running the code to Initialize pinecone.init()? Can someone please help.
    Went through pinecone documentation still unable to solve, only got to know that init method as been deprecated.
    AttributeError Traceback (most recent call last)
    Cell In[69], line 1
    ----> 1 pinecone.init(
    2 api_key="removed the api key for security",
    3 environment="gcp-starter"
    4 )
    5 index_name="langchainvector"
    File c:\Users\DELL\anaconda3\Lib\site-packages\pinecone\deprecation_warnings.py:38, in init(*args, **kwargs)
    11 example = """
    12 import os
    13 from pinecone import Pinecone, ServerlessSpec
    (...)
    29 )
    30 """
    31 msg = f"""init is no longer a top-level attribute of the pinecone package.
    32
    33 Please create an instance of the Pinecone class instead.
    (...)
    36 {example}
    37 """
    ---> 38 raise AttributeError(msg)
    AttributeError: init is no longer a top-level attribute of the pinecone package.
    ...
    region='us-west-2'
    )
    )

    • @abhijitrajkumar2406
      @abhijitrajkumar2406 7 місяців тому

      May this pdf will help

    • @shobharajanna692
      @shobharajanna692 7 місяців тому

      try this ! pip install langchain-pinecone
      from langchain_community.vectorstores import Pinecone as PineconeStore
      import os
      os.environ['PINECONE_API_KEY'] = pinecone_api_key
      index_name = 'vectordb'
      vector_database = PineconeStore.from_documents(index_name=index_name,documents=doc,embedding=embeddings) it worked for me

    • @AlexMelemenidis
      @AlexMelemenidis 7 місяців тому +1

      There have been some changes in langchain and pinecone packages.
      What works for me right now:
      -pip install langchain_pinecone
      -from langchain_pinecone import PineconeVectorStore
      -store your API key as environment variable PINECONE_API_KEY
      - to store your documents to your index and create embeddings do the following:
      index_name = "langchainvector"
      # this is the new way to upload
      vectorstore = PineconeVectorStore.from_documents(
      documents=documents,
      index_name=index_name,
      embedding=embeddings
      )
      I was checking through the langchain API documentation for pinecone and always followed to get to the latest version...

    • @mayankjain4379
      @mayankjain4379 7 місяців тому

      @@AlexMelemenidis Thanks Alex will try and update here.

  • @mayankjain4379
    @mayankjain4379 8 місяців тому +2

    In a world of data and code,
    Where technology reigns supreme,
    There's a new kind of learning mode,
    That's taking over the scene.
    It's called machine learning,
    A powerful tool indeed,
    With algorithms and data mining,
    It fulfills our every need.
    From predicting stock prices,
    To recognizing faces,
    It can make our lives so precise,
    And take us to new places.
    With every byte of information,
    It grows smarter every day,
    It adapts to any situation,
    And finds patterns in every way.
    But behind its complex workings,
    Lies a simple truth,
    It's only as good as its teachings,
    ...
    So let us embrace machine learning,
    And all the wonders it can bring,
    But always remember its true yearning,
    To make our world a better thing.
    Poem generated by llm.predict("Write a poem on Machine learning")

  • @hasiburrahman96
    @hasiburrahman96 8 місяців тому +1

    Everything is good except the Indian accent

  • @fancyviper688
    @fancyviper688 8 місяців тому

    Xenova/text-davinci-003 -model depricated