Generate LLM Embeddings On Your Local Machine

Ғылым және технология

In this video today we learn how to generate LLM embeddings using LLaMa 2 locally on our system.
Ollama: ollama.ai/
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
💼 Services 💼
💻 Freelancing & Tutoring: www.neuralnine.com/services
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord

Пікірлер: 17

  • @moumniable
    @moumniable5 ай бұрын

    i just love how diverse your videos are ! even when i don't particulary look for something your videos drives me to learn more. thanks ❤

  • @mohammadalibazyar5079
    @mohammadalibazyar50793 ай бұрын

    thanks, bro... really helpful ❤

  • @rons96
    @rons965 ай бұрын

    Not bad, but if i may say any tip, i would say to use a sentence-transformer from hugging face for embeddings and then use a llama like llm only to customize the answer, because models created just for embeddings seems to be more accurate for this task. Also, langchain module is easier and useful than using numpy and requests, with lot more features. I use this setup most for RAG and seems to work pretty well.

  • @henrischomacker6097

    @henrischomacker6097

    4 ай бұрын

    Very interesting hint. Why would you suggest to use a sentence-transformer from hugging face for creating the embeddings instead? Which method does a sentence-transformer from hugging face use to create the embeddings and which one does ollama use?

  • @hackdonalds

    @hackdonalds

    4 ай бұрын

    I tried llama2 and mistral embeddings through ollama embeddings api. The similarity search results were sht compared to Xenova/all-MiniLM-L6-v2 or gte-small

  • @rons96

    @rons96

    2 ай бұрын

    @@hackdonalds yes, llama for embeddings is not good, with sentence-transformers i mean that one you mentioned, then use llama to elaborate the sentence. There's another model better for embeddings but it will require more resources and i don't remember the name now.

  • @iamreallybadatphysicsbutda8198
    @iamreallybadatphysicsbutda81985 ай бұрын

    Great video! 😃

  • @all-in-one-890
    @all-in-one-8905 ай бұрын

    First comment ❤ and ur videos are fantastic

  • @dangalimov7435
    @dangalimov74355 ай бұрын

    Brilliant!

  • @ddschaefer
    @ddschaefer5 ай бұрын

    Great video! But where comes faiss into play?

  • @EliSpizzichino
    @EliSpizzichino3 ай бұрын

    that's very interesting! I imagine you can build your local knowledge base in this way... I need to make one for code-snippets that store knowledge bits find around.... Is `d` dimension fixed by the model? does it mean I have 4096 bytes to store my embedding?

  • @Darkev77
    @Darkev774 ай бұрын

    Powerful video! Guys, anyone knows how I can generate these embeddings if I were to deploy my app remotely?

  • @JuanDiegoSalamanca-oy6xs
    @JuanDiegoSalamanca-oy6xs2 ай бұрын

    if you do it in Colab what url do you use?

  • @JJTradess
    @JJTradess5 ай бұрын

    🔥

  • @AGASTRONICS
    @AGASTRONICS5 ай бұрын

    comments[-1] #FirstComment😅

  • @peterparker5161
    @peterparker5161Ай бұрын

    I tried this with LLAMA3 8b locally. It can work if the sentences are short enough. But when I started plugins in long paragraphs (youtube transcripts) it becomes basically useless. Transformers that are creating for embedding (BERT for example) seems to work better. They also have lower computational cost compared to LLAMA. I tried again with "nomic-embed-text-v1.f16.gguf" and it works much better.

Келесі