Share
Embed
Transcript
9 slides
-
gptask • LLM ʹҙͷίϚϯυͱ Python ίʔυΛ࣮ߦͤ͞Δ CLI • LangChain ͷ
ReAct Agent ͕Ͳ͏ಈ͍͍ͯΔͷ͔Γͨͯ͘։ൃ • ΤϥʔΛࣗΒमਖ਼ͯ͠λεΫΛ࠶࣮ߦ͢ΔͳͲͷϙςϯγϟϧͷߴ͞ʹڻ͘ $ gptask "AWS Ͱϙʔτ͕શ։์͞Ε͍ͯΔ Security Group ΛϦετΞοϓͯ͠" -
code-search-agent • ίʔυΛॻ͍ͯΒ͏લఏͱͯ͠ɺ·ͣݕࡧΛͰ͖ΔΑ͏ʹͨ͠ LLM ΤʔδΣϯτ • GPT-4 ͱ Language Server
Protocol (LSP) ΛΈ߹ΘͤͯɺEmbedding ͳͲ༻ͤͣʹίʔ υγϯϘϧΛݕࡧͯ͠ճͯ͠Β͏Έ • Kubernetes ͷΑ͏ͳڊେͳίʔυϕʔεͰͦͦ͜͜ͷਫ਼ͰճͰ͖Δ͜ͱ͕͔ͬͨ $ code-search-agent \ -r github.com/kubernetes/kubernetes \ "Deployment ϦιʔεͷόϦσʔγϣϯΛ͍ͬͯΔίʔυΛ୳ͯ͠ɺͦͷॴͱఆٛ༰Λࣔͯ͠ॲཧͷઆ໌Λ͍ͯͩ͘͠͞" The `ValidateDeployment` function in the file `pkg/apis/apps/validation/validation.go` is responsible for validating Deployment resources in Kubernetes. It calls two other validation functions on the deployment object: `apivalidation.ValidateObjectMeta` which validates the metadata of the deployment object, including the deployment name; and `ValidateDeploymentSpec` which validates the spec of the deployment object. These checks ensure that the deployment object is correctly formed and holds valid data, thereby avoiding invalid configurations in the Kubernetes system. ```github.com/kubernetes/kubernetes/pkg/apis/apps/validation/validation.go func ValidateDeployment(obj *apps.Deployment, opts apivalidation.PodValidationOptions) field.ErrorList { allErrs := apivalidation.ValidateObjectMeta(&obj.ObjectMeta, true, ValidateDeploymentName, field.NewPath("metadata")) allErrs = append(allErrs, ValidateDeploymentSpec(&obj.Spec, field.NewPath("spec"), opts)...) return allErrs } ``` -
CotEditor ͔Βͷ LLM ݺͼग़͠ • CotEditor (macOS ༻ΤσΟλ) ʹೖྗͨ͠༰ Λͦͷ··ϓϩϯϓτʹͯ͠
LLM Λݺͼग़͢ • ΩʔϘʔυγϣʔτΧοτͰ༁ςΩετͷ ܗͳͲ͕࣮ߦͰ͖Δͷศར • CotEditor ଆͷ੍ͰετϦʔϛϯάදࣔͰ͖ ͣɺ·ͨಡΈࠐΈதͷ UI ͷද͍ࣔ͠ͷͰ ͕ͪ࣌ؒ͘ײͯ͡͠·͏ -
ϢʔβʔͷߦಈΛݩʹಈ࡞͢ΔΤʔδΣϯτ • ϒϥβͷϖʔδભҠͳͲΛτϦΨʔʹ LLM Λಈ࡞ͤ͞Δ࣮ݧ • ྫ͑ arxiv.org Λ։͘ͱɺͦͷϖʔδͷจΛղઆͯ͘͠ΕͨΓ͢Δ •
ҰఆศརͰ͋Δ͕ɺߦಈΑΓ LLM ͷग़ྗͷํ͕͍ͷͰ͍ͭग़ྗΛͬͯ͠·͏ • τϦΨʔͱͦͷΞΫγϣϯΛ૿͍ͯ͘͠ͱ໘നͦ͏ͳ༧ײ͍ͯ͠Δ -
• ͍͍ײ͡ͷΠϯλʔϑΣʔεʹ͏·͘ LLM (ΤʔδΣϯτ) ΛΈࠐΉͷ͍͠ • LLM ͷग़ྗΛͭඞཁ͕͋ΔΑ͏ͳ͍ํɺݸਓతʹͪΐͬͱҧ͏ײ • ʮ͜Εͬͱ͖·͠ΐ͏͔ʁʯʮͬͱ͖·ͨ͠ʯ͙Β͍ͷඇಉظతʹ
LLM (ΤʔδΣϯτ) ͕ ಈ͍ͯ͘ΕΔͱخ͍͔͠͠Εͳ͍ ࣮ݧʹΑΔֶͼ