in

Unlocking Creativity: How to Build Your Own Generative AI with HuggingFace and Langchain

hugging face

#1-Getting Started Building Generative AI Using HuggingFace Open Source Models And Langchain

AI技術の魅力を伝える記事を書いてみましょう。今回は、LangChainとHugging Faceが共同で維持するLangChain_huggingfaceについて焦点を当てます。

LangChain_huggingfaceは、最新のHugging Faceの開発力をLangChainに取り込み、常に最新の状態を保つことを目的とした新しいPythonパッケージです。このパートナーシップは、技術の共有だけでなく、この統合を維持し、継続的に改善する共同の取り組みでもあります。

langchain-huggingfaceはLangChainとシームレスに統合されており、LangChainエコシステム内でHugging Faceモデルを効率的かつ効果的に活用する方法を提供しています。このパートナーシップは単なる技術の共有ではなく、この統合を維持し、継続的に改善していくための共同の約束でもあります。

この記事では、LangChain_huggingfaceがどのようにAI技術の進化に貢献しているかや、その利点などに焦点を当てることで、読者にAI技術への理解と興味を促すことができます。また、実際の使用例や具体的な利用シーンも挙げることで、読者がイメージしやすくするとさらに効果的です。

さらに、「github Code」や「Support me by joining membership」など宣伝的な部分は省略し、「langchain-huggingface」自体の魅力や利点にフォーカスした文章構成が望ましいでしょう。AI技術への理解を深めるためにもわかりやすく具体的な説明を心掛けましょう。



動画はこちら

#1-Getting Started Building Generative AI Using HuggingFace Open Source Models And Langchain の画像

Written by Krish Naik

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

GIPHY App Key not set. Please check settings

30 Comments

  1. Ran the following code (and equivalent) and keeps giving me the answer as "Borish Becker" instead of Stefan Edberg !
    ###
    from langchain import PromptTemplate, LLMChain

    # question = "what is the hypotenuse length of pythagorus traingle with sides 3 and 4"

    question = "who won Webledon mens final 1990"

    template = """ Question: {question}

    Answer: Let us think step by step."""

    prompt = PromptTemplate(template=template,input_variables=["question"])

    print(prompt)

    Llm_chain = LLMChain(llm=llm, prompt = prompt )

    print(Llm_chain.invoke(question))

  2. repo_id="mistralai/Mistral-7B-Instruct-v0.2"

    llm=HuggingFaceEndpoint(repo_id=repo_id,max_length=128,temperature=0.7,token=src_key)

    WARNING:langchain_huggingface.llms.huggingface_endpoint:WARNING! max_length is not default parameter.

    max_length was transferred to model_kwargs.

    Please make sure that max_length is what you intended.

    WARNING:langchain_huggingface.llms.huggingface_endpoint:WARNING! token is not default parameter.

    token was transferred to model_kwargs.

    Please make sure that token is what you intended.

    why am i getting this error
    please help

  3. "The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.3.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.

    warn_deprecated("

    this error i am getting while using agent with open source model through hugging face pipeline ,i even tried with these "create_react_agent, create_json_agent, create_structured_chat_agent" i am error. can you help me ?

  4. "The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.3.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.

    warn_deprecated("

    this error i am getting while using agent with open source model through hugging face pipeline ,i even tried with these "create_react_agent, create_json_agent, create_structured_chat_agent" i am error. can you help me ?

  5. "The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.3.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.

    warn_deprecated("

    this error i am getting while using agent with open source model through hugging face pipeline ,i even tried with these "create_react_agent, create_json_agent, create_structured_chat_agent" i am error. can you help me ?

  6. "The function `initialize_agent` was deprecated in LangChain 0.1.0 and will be removed in 0.3.0. Use Use new agent constructor methods like create_react_agent, create_json_agent, create_structured_chat_agent, etc. instead.

    warn_deprecated("

    this error i am getting while using agent with open source model through hugging face pipeline ,i even tried with these "create_react_agent, create_json_agent, create_structured_chat_agent" i am error. can you help me ?

  7. Hey Hi @krishnaik06, my first time seeing you and detailed video on HuggingFace & Langchain, been 4,5 days since i found HuggingFace & Langchain. I have few question, could you please clear these will be very helpful.

    I'm creating an android application, where i'm using HuggingFace Interface API endpoints, where i'm using 2 models – Salesforce/blip-image-captioning-large, google/flan-t5-xxl, is there any limitation on HuggingFace access token? or if these modal is paid or free?

    I've to deploy this android application on playstore for the large group of people, any challanges or risk i might face in future? Please answer.
    Btw loved your video, getting interest into Generative AI. Keep creating such content, it really really helps us. Thank you so much ❤

クックチームは、Apple Intelligenceの段階的な立ち上げ、ChatGPTとの統合は今年は起こら ...

「Apple Intelligenceの進化:クックチームが語る段階的立ち上げとChatGPT統合の未来」

「Copilot」は「GPT-4o」に ~「Visual Studio Code 1.92」が公開

「Visual Studio Code 1.92が登場!最新AI『GPT-4o』を搭載したCopilotが開発者の新たな相棒に」