{"id":21991597,"url":"https://github.com/dlr-sc/waw-ml-24-llm-tutorial","last_synced_at":"2025-04-30T13:50:36.596Z","repository":{"id":262463108,"uuid":"860397256","full_name":"DLR-SC/WAW-ML-24-LLM-Tutorial","owner":"DLR-SC","description":"Techniques for Using LLMs Effectively: An Introduction to Prompt Engineering, Retrieval Augmented Generation, and Toolformer","archived":false,"fork":false,"pushed_at":"2024-11-12T14:39:29.000Z","size":9682,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-26T22:12:05.284Z","etag":null,"topics":["jupyter-notebook","large-language-models","lm-studio","prompt-engineering","retrieval-augmented-generation","toolformer"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DLR-SC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-20T11:06:55.000Z","updated_at":"2024-11-29T11:17:25.000Z","dependencies_parsed_at":"2024-11-12T15:47:32.697Z","dependency_job_id":null,"html_url":"https://github.com/DLR-SC/WAW-ML-24-LLM-Tutorial","commit_stats":null,"previous_names":["dlr-sc/waw-ml-24-llm-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLR-SC%2FWAW-ML-24-LLM-Tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLR-SC%2FWAW-ML-24-LLM-Tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLR-SC%2FWAW-ML-24-LLM-Tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DLR-SC%2FWAW-ML-24-LLM-Tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DLR-SC","download_url":"https://codeload.github.com/DLR-SC/WAW-ML-24-LLM-Tutorial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251714815,"owners_count":21631794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter-notebook","large-language-models","lm-studio","prompt-engineering","retrieval-augmented-generation","toolformer"],"created_at":"2024-11-29T20:10:12.541Z","updated_at":"2025-04-30T13:50:36.563Z","avatar_url":"https://github.com/DLR-SC.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Techniques for Using LLMs Effectively: An Introduction to Prompt Engineering, Retrieval Augmented Generation, and Toolformer\n\nAuthors: Diaoule Diallo, Roxanne El Baff, Dominik Opitz, Oliver Bensch, Peer Schütt \n\nCorresponding Author: Peer Schütt (peer.schuett at dlr.de)\n\nIn this hands-on tutorial, you'll learn the latest techniques in Prompt Engineering, how to steer Large Language Models (LLMs) efficiently using Retrieval Augmented Generation (RAG), and Toolformer, a recent method to enrich LLMs with information from external tools. You'll be able to set up your own local LLM model and apply these techniques to sample tasks. Ideally, you can use this knowledge straight away to tackle your own challenges, whether in research or administration.\n\nThis tutorial was prepared for the WAW ML 2024.\n\n## Plan for the tutorial:  \n\nEach of the three tutorial parts has a dedicated folder with instructions. The tutorial is planned to be completed in four steps:      \n1) LM Studio \u0026 Python Setup\n2) Prompt Engineering\n3) Retrieval Augmented Generation (RAG)\n4) Toolformer\n\n## LM Studio Setup:  \nWe will be using LM Studio (https://lmstudio.ai/). We provide a PDF with installation instructions [LM_Studio_Install_Instruct.pdf](LM_Studio_Install_Instruct.pdf), a short introduction to LM Studio, and explanations of the model we want to use. **Please read the PDF, download the specified LLM model and have LM Studio up and running**. For some part of the tutorial you are able to use the Mistral API to get a better performance, but this is an optional choice. If you would like to use that, sign Up here (https://docs.mistral.ai/getting-started/quickstart/#account-setup). But all parts are doable with LM Studio.\n\n## Python Setup:  \nWe also provide a ``requirements.txt`` with all the necessary Python packages. With that, you can create a conda/mamba environment for the tutorial:\n\n```\nconda init powershell  # only for Windows users - requires terminal restart\nconda activate \nmamba create -n waw_ml python=3.10  # mamba/conda depending on what you use\nconda activate waw_ml\npip install -r requirements.txt\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlr-sc%2Fwaw-ml-24-llm-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlr-sc%2Fwaw-ml-24-llm-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlr-sc%2Fwaw-ml-24-llm-tutorial/lists"}