Anaconda Power Shell this will open , way you know if it is a anaconda power shell by seeing "base" Then you can install the full environment then to activate use command "conda activate llms" Open Ques "what is environment.yml" Then activate the conda environment and open jupyter lab you can start with virtualenv as well (all details in readme) Video 11 : Day 1 every AI has 2 types of plan 1) pro plan with UI monthly subscription 2) API pricing , pay per request, for OPEN API need to put in 5$ pre payment (can use gpt4-o-mini for less cost) (all details in readme) Video 11: store keys in .env files (all details in readme) Video 14 there are two types of prompt Video 15 OpenAI came up with a standard way of interacting with LLMs which is now standard for many LLMs. It is a list of dictionaries. Use completions API https://platform.openai.com/docs/guides/completions For websites that use Java...
8 weeks https://edwarddonner.com/2024/11/13/llm-engineering-resources/ 6 week Agentic AI Course https://github.com/ed-donner/agents the file .env has all the keys select kernel https://github.com/ed-donner/agents/blob/main/1_foundations/1_lab1.ipynb import os openai_api_key = os.getenv( 'OPENAI_API_KEY' ) from openai import OpenAI openai = OpenAI() messages = [{ "role" : "user" , "content" : "What is 2+2?" }] response = openai.chat.completions.create( model= "gpt-4.1-nano" , messages=messages ) print (response.choices[ 0 ].message.content) Day 2 : what are AI Agents? 5 different patterns for agentic systems https://lavnish.blogspot.com/2025/05/essential-design-patterns-for-building.html In General Day 3 comparing different models https://www.vellum.ai/llm-leaderboard syntax to call diff LLMs openAI , anthropic, gemini, deepseek, groq https://github.com/ed-donner/agents/blob/main/1_foundations/2_lab2.ipynb...
In POM.xml add dependency < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter-security </ artifactId > </ dependency > then start your API , if you try to access a URL , you need to give username as "user" password seen in log "Using generated security password: b418f92c-xxx-xxx-xxx-xxx" this can be overriden in "SecurityProperty.java" https://docs.spring.io/spring-boot/appendix/application-properties/index.html spring.security.user.password= pwd spring.security.user.name= user enter above in application.properties Spring security keeps username and pwd in sesion , if you reload URL no issues https://medium.com/@greekykhs/springsecurity-part-3-spring-security-flow-7da9cc3624ab Servlets Servlet container converts HTTP messages to ServletsRequests and hand over to servlet method as parameter Servlet Filter Used to intercept the req...
Comments
Post a Comment