LangChain and Ollama: Build Your Personal Coding Assistant in 10 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 2024
  • In this video I’ll show you how to build your own coding assistant using LangChain, Ollama, and an open-source LLM.
    Source code: github.com/aid...
    Before we dive in, let’s acknowledge some of the fantastic commercial coding assistants like GitHub Copilot, Amazon Q Developer, and Tabnine. They do a great job-I use Copilot daily! So why build your own?
    Several reasons:
    🚀 Better privacy 🔒: Keep your code local, no need to send data to external providers.
    🚀 Lower costs 💸: Run it for free, no subscriptions.
    🚀 Customization 🔧: Fine-tune models, add function calling, Retrieval-Augmented Generation (RAG), and more!
    🚀 Workflow integrations 🛠️: Use it beyond your editor, including multi-agent flows.
    🚀 Consistency across teams 👥: Standardize code generation for your whole team.
    With this approach, you'll have full control over your assistant, including privacy, functionality, and custom integrations that commercial solutions can’t offer.
    Let’s get started! 🎬
    🔔 Don’t forget to like, share, and subscribe for more tutorials!
    #AI #llm #tools #ollama #langchain

ความคิดเห็น • 14

  • @Aksafan
    @Aksafan วันที่ผ่านมา +3

    Hey, this was surprisingly helpful!! Thank you so much!
    Can I ask for a source code please?

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  12 ชั่วโมงที่ผ่านมา

      Here you go: github.com/aidev9/tuts/tree/main/langchain-ollama

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  12 ชั่วโมงที่ผ่านมา

      Thanks for the comment. What topic would you like to see next?

    • @Aksafan
      @Aksafan 12 ชั่วโมงที่ผ่านมา

      @@AISoftwareDeveloper Some tuning would be great, cause the quality of code (that React components) is so bad tbh. I asked several frontend engineers to look at it and it was not the best one.
      Maybe it's cause of models I used (llama 3.2-3b and 3.1-7b).
      Also, that would be great to know how to prepare a proper guideline for a model to use, cause links (event to GitHub raw MD file) are not working when there are a bunch of other links on that page.

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  6 ชั่วโมงที่ผ่านมา

      Here is the repo: github.com/aidev9/tuts/tree/main/langchain-ollama

  • @adriangpuiu
    @adriangpuiu 8 ชั่วโมงที่ผ่านมา +1

    what it would be nice, is to have a meta agent that creates dynamic tools and reinserts them into the flow when needed

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  7 ชั่วโมงที่ผ่านมา

      Yeah, that would be cool. Based on the user prompt, the meta agent creates its own tools and executes them as needed. Controlling the agent will be a beast

  • @genzprogrammer
    @genzprogrammer 13 ชั่วโมงที่ผ่านมา +1

    Thanks Bro, 🎉 Correct Time. Was looking for something like this

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  12 ชั่วโมงที่ผ่านมา

      Thanks for the comment. What would you like to see next?

    • @genzprogrammer
      @genzprogrammer 12 ชั่วโมงที่ผ่านมา

      @@AISoftwareDeveloper How can we load a complete codebase from a git repo and Implement a Rag for that codebase?

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  11 ชั่วโมงที่ผ่านมา

      @@genzprogrammer Easy. What would the RAG do - are you thinking a chatbot to talk to the codebase or something more advanced, like artifacts generation?

    • @genzprogrammer
      @genzprogrammer 11 ชั่วโมงที่ผ่านมา

      @@AISoftwareDeveloper Thinking of build something like a Chat where it takes my query and search the vectordb for which file should i change Nd what should i change

    • @AISoftwareDeveloper
      @AISoftwareDeveloper  10 ชั่วโมงที่ผ่านมา

      @@genzprogrammer that's a great idea. So, it will tell you what files need to be updated based on a feature change you're thinking. Can you give me one or two examples of queries you'd ask?