๐Ÿ“—
smiley book
  • Smiley Books
  • AI
    • Readme
    • openai-whisper
      • ์ƒ˜ํ”Œ ์‹คํ–‰ํ•ด๋ณด๊ธฐ
      • GPU ์„œ๋ฒ„ ์ค€๋น„ํ•˜๊ธฐ
      • API๋กœ whisper๋ฅผ ์™ธ๋ถ€์— ์˜คํ”ˆํ•˜๊ธฐ
      • ํ”„๋กฌํ”„ํŠธ ์ง€์›
      • ์‹ค์‹œ๊ฐ„ message chat
      • ํ™”๋ฉด ์ด์˜๊ฒŒ ๋งŒ๋“ค๊ธฐ์™€ ๋กœ๊ทธ์ธ
      • ํŒŒ์ด์ฌ ๊ฐ€์ƒํ™˜๊ฒฝ
      • ์‹ค์‹œ๊ฐ„ voice chat
      • fine tunning(๋ฏธ์„ธ ์กฐ์ •) ์œผ๋กœ ์„ฑ๋Šฅ ์˜ฌ๋ฆฌ๊ธฐ
      • app์—์„œ api๋ฅผ ํ˜ธ์ถœํ•˜์—ฌ ์‹ค์‹œ๊ฐ„์œผ๋กœ ํ…์ŠคํŠธ๋กœ ๋ฐ”๊ฟ”๋ณด๊ธฐ
    • ollama - llm์„ ์‰ฝ๊ฒŒ ๋‚ด์ปด์—์„œ ์‹คํ–‰
      • ollama webui
      • ollama docker
    • stable diffusion
      • SDXL - text to image
      • SD-webui
    • ChatGPT
      • ๋‹ต๋ณ€์ด ๋Š๊ธธ๋•Œ
      • ์—ญํ• ์„ ์ •ํ•˜์ž
      • ๊ตฌ์ฒด์ ์ธ ์งˆ๋ฌธ
      • ๊ฒฐ๊ณผํ˜•ํƒœ๋ฅผ ์ง€์ •
      • ํ”„๋กฌํ”„ํŠธ๋ฅผ ์—ฌ๋Ÿฌ์ค„๋กœ ์‚ฌ์šฉํ•˜์ž.
      • ๋งˆํ‹ด ํŒŒ์šธ๋Ÿฌ ๊ธ€ ๋ฒˆ์—ญ๋ณธ
    • Prompt Engineering
    • Auto-GPT
    • Gemini
      • google ai studio
      • gemini-api
      • embedding guide
    • Huggingface
      • huggingface ์‚ฌ์šฉ๋ฒ•
      • huggingface nlp ๊ณต๋ถ€์ค‘
    • kaggle
      • download dataset
    • langchain
      • langchain์„ ๊ณต๋ถ€ํ•˜๋ฉฐ ์ •๋ฆฌ
      • basic
      • slackbot
      • rag
      • document-loader
      • website-loader
      • confluence
      • memory
      • function-call
      • langsmith
      • agent-toolkit
  • Ansible
    • templates vs files and jinja2
    • dynamic inventory
    • limit ์˜ต์…˜ ๊ฐ•์ œํ•˜๊ธฐ
    • limit ์‚ฌ์šฉํ›„ gather_fact ๋ฌธ์ œ
  • AWS
    • AWS CLI
    • EKS
      • cluster manage
      • ALB Controller
      • external-dns
      • fargate
    • ECR
    • S3
    • Certificate Manager
  • Azure
    • Azure AD OAuth Client Flow
  • Container
    • Registry
    • ๋นŒ๋“œ์‹œ์— env๊ฐ’ ์„ค์ •ํ•˜๊ธฐ
  • DB
    • PXC
      • Operator
      • PMM
      • ์‚ญ์ œ
      • GTID
      • Cross Site Replication
    • Mssql
    • Mysql
  • dotnet
    • Thread Pool
    • Connection Pool
    • Thread Pool2
  • Devops
    • Recommendation
  • GIT
    • Basic
    • Submodule
  • GitHub
    • Repository
    • GitHub Action
    • GitHub PR
    • Self Hosted Runner
    • GitHub Webhook
  • GitLab
    • CI/CD
    • CI/CD Advance
    • Ssl renew
    • CI/CD Pass env to other job
  • Go Lang
    • ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์ถ•
    • multi os binary build
    • kubectl๊ฐ™์€ cli๋งŒ๋“ค๊ธฐ
    • azure ad cli
    • embed static file
    • go study
      • pointer
      • module and package
      • string
      • struct
      • goroutine
  • Kubernetes
    • Kubernetes๋Š” ๋ฌด์—‡์ธ๊ฐ€
    • Tools
    • Install with kubespray
    • Kubernetes hardening guidance
    • 11 ways not to get hacked
    • ArgoCD
      • Install
      • CLI
      • Repository
      • Apps
      • AWS ALB ์‚ฌ์šฉ
      • Notification slack
      • Backup / DR
      • Ingress
      • 2021-11-16 Github error
      • Server Config
      • auth0 ์ธ์ฆ ์ถ”๊ฐ€(oauth,OIDC)
    • Extension
      • Longhorn pvc
      • External dns
      • Ingress nginx
      • Cert Manager
      • Kube prometheus
    • Helm
      • Subchart
      • Tip
    • Loki
    • Persistent Volume
    • TIP
      • Job
      • Pod
      • Log
  • KAFKA
    • raft
  • KVM
    • kvm cpu model
  • Linux
    • DNS Bind9
      • Cert-Manager
      • Certbot
      • Dynamic Update
      • Log
    • Export and variable
    • Grep ์‚ฌ์šฉ๋ฒ•
  • Modeling
    • C4 model introduce
    • Mermaid
    • reference
  • Monitoring
    • Readme
    • 0. What is Monitoring
    • 1. install prometheus and grafana
    • 2. grafana provisioning
    • 3. grafana dashboard
    • 4. grafana portable dashboard
    • 5. prometheus ui
    • 6. prometheus oauth2
    • Prometheus
      • Metric type
      • basic
      • rate vs irate
      • k8s-prometheus
    • Grafana
      • Expolorer
    • Node Exporter
      • advance
      • textfile collector
  • Motivation
    • 3 Simple Rule
  • OPENNEBULA
    • Install(ansible)
    • Install
    • Tip
    • Windows vm
  • Reading
    • comfort zone
    • ๋ฐฐ๋ ค
    • elon musk 6 rule for insane productivity
    • Feynman Technique
    • how to interview - elon musk
    • ๊ฒฝ์ฒญ
    • Readme
  • Redis
    • Install
    • Master-slave Architecture
    • Sentinel
    • Redis Cluster
    • Client programming c#
  • SEO
    • Readme
  • Security
    • criminalip.io
      • criminalip.io
  • Stock
    • robinhood-python
  • Terraform
    • moved block
    • output
  • vault
    • Readme
  • VS Code
    • dev container
    • dev container on remote server
  • Old fashione trend
    • curity
    • MAAS
      • Install maas
      • Manage maas
      • Tip
Powered by GitBook
On this page
  • reference
  • ์‹œ์ž‘ํ•˜๊ธฐ
  • model
  • prompt type
  • ํ”„๋กฌํ”„ํŠธ์˜ ์ผ๋ถ€ ๋™์ ๋ณ€๊ฒฝ
  • ๋งค๊ฐœ๋ณ€์ˆ˜
  • ์ฝ”๋“œ๋ณด๊ธฐ
  • structured Prompt ๊ตฌ์กฐํ™”๋œ ํ”„๋กฌํ”„ํŠธ
  • chat prompt

Was this helpful?

  1. AI
  2. Gemini

google ai studio

PreviousGeminiNextgemini-api

Last updated 1 year ago

Was this helpful?

reference

Google AI Studio๋Š” ์ƒ์„ฑ ๋ชจ๋ธ๋กœ ํ”„๋กœํ† ํƒ€์ž…์„ ์ œ์ž‘ํ•˜๋Š” ๋ธŒ๋ผ์šฐ์ € ๊ธฐ๋ฐ˜ IDE์ž…๋‹ˆ๋‹ค.

์‹œ์ž‘ํ•˜๊ธฐ

์—์„œ ๋‹ค์Œ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

new prompt๋ฅผ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.

์ด์ œ google ai studio๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

model

  • Gemini pro (llm)

  • Gemini Pro Vision (image to text)

prompt type

  • freeform prompt(์ž์œ  ํ˜•์‹ ํ”„๋กฌํ”„ํŠธ) : ์ด ํ”„๋กฌํ”„ํŠธ๋Š” ์ฝ˜ํ…์ธ ์™€ ์•ˆ๋‚ด์— ๋Œ€ํ•œ ์‘๋‹ต์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ๊ฐœ๋ฐฉํ˜• ํ”„๋กฌํ”„ํŠธ ํ™˜๊ฒฝ์„ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กฌํ”„ํŠธ์— ์ด๋ฏธ์ง€์™€ ํ…์ŠคํŠธ ๋ฐ์ดํ„ฐ๋ฅผ ๋ชจ๋‘ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

  • structured prompt(๊ตฌ์กฐํ™”๋œ ํ”„๋กฌํ”„ํŠธ ) : ์ด ํ”„๋กฌํ”„ํŠธ ๊ธฐ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋ฉด ์ผ๋ จ์˜ ์˜ˆ์‹œ ์š”์ฒญ ๋ฐ ์‘๋‹ต์„ ์ œ๊ณตํ•˜์—ฌ ๋ชจ๋ธ ์ถœ๋ ฅ์„ ์•ˆ๋‚ดํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ชจ๋ธ ์ถœ๋ ฅ ๊ตฌ์กฐ๋ฅผ ๋” ์„ธ๋ถ€์ ์œผ๋กœ ์ œ์–ดํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ์— ์ด ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค

  • chat prompt(์ฑ„ํŒ… ํ”„๋กฌํ”„ํŠธ): ์ฑ„ํŒ… ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋Œ€ํ™”ํ˜• ํ™˜๊ฒฝ์„ ๊ตฌ์ถ•ํ•ฉ๋‹ˆ๋‹ค. ์ด ํ”„๋กฌํ”„ํŠธ ๊ธฐ๋ฒ•์„ ์‚ฌ์šฉํ•˜๋ฉด ์ž…๋ ฅ ๋ฐ ์‘๋‹ต์„ ์—ฌ๋Ÿฌ ์ฐจ๋ก€ ์ „ํ™˜ํ•˜์—ฌ ์ถœ๋ ฅ์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

๊ธฐ๋ณธ์ ์œผ๋กœ freeform ์œผ๋กœ ํ…Œ์ŠคํŠธํ•˜๋ฉด๋˜๊ณ  ๊ฐœ๋ฐœ์‹œ์—๋Š” structured prompt๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

์ฑ„ํŒ…์œ„์ฃผ๋กœ๋Š” chat prompt๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

ํ”„๋กฌํ”„ํŠธ์˜ ์ผ๋ถ€ ๋™์ ๋ณ€๊ฒฝ

์ด ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด ์•„๋ž˜ ์ชฝ์—์„œ ๋ณ€์ˆ˜์ฒ˜๋Ÿผ ์ž…๋ ฅ์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

  1. ํ”„๋กฌํ”„ํŠธ์—์„œ ๋ฐ”๊พธ๋ ค๋Š” ๋‹จ์–ด๋‚˜ ๋ฌธ๊ตฌ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฒฝ์šฐ ํ…์ŠคํŠธ๋ฅผ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค

  2. ํ”„๋กฌํ”„ํŠธ ์œ„ ์˜ Insert: ํ—ค๋”์—์„œ{{ }} Test input ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค .

  3. ํ”„๋กฌํ”„ํŠธ ์•„๋ž˜์— ์žˆ๋Š” ํ”„๋กฌํ”„ํŠธ ํ…Œ์ŠคํŠธ ํ…Œ์ด๋ธ” ์—์„œ ํ…Œ์ŠคํŠธ ์˜ˆ์ œ ์ถ”๊ฐ€๋ฅผ ์„ ํƒํ•˜๊ณ  ์ถ”๊ฐ€ ํ”„๋กฌํ”„ํŠธ ๊ฐ’์„ ์ž…๋ ฅํ•˜์—ฌ ํ”„๋กฌํ”„ํŠธ์— ๋Œ€ํ•œ ์ถ”๊ฐ€ ๊ฐ’์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค . ์—ฌ๋Ÿฌ ๊ฐ€์ง€ ์ƒˆ๋กœ์šด ์ž…๋ ฅ ๊ฐ’์„ ์ž์œ ๋กญ๊ฒŒ ์ถ”๊ฐ€ํ•˜์„ธ์š”.

  4. ์•ฑ ์ฐฝ ํ•˜๋‹จ์—์„œ ์‹คํ–‰์„ ์„ ํƒํ•˜์—ฌ ๋‹ค์–‘ํ•œ ์š”์ฒญ ๊ฐ๊ฐ์— ๋Œ€ํ•œ ์‘๋‹ต์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

๋งค๊ฐœ๋ณ€์ˆ˜

ํ”„๋กฌํ”„ํŠธ์˜ ํ”„๋กœํ† ํƒ€์ž…์„ ์ œ์ž‘ํ•  ๋•Œ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์˜ค๋ฅธ์ชฝ์—์„œ ๋ชจ๋ธ ์‹คํ–‰ ์„ค์ •์„ ์‚ฌ์šฉํ•ด ๋ณผ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์•Œ์•„์•ผ ํ•  ์ฃผ์š” ์„ค์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • Model - ํ”„๋กฌํ”„ํŠธ์— ์‘๋‹ตํ•  ๋ชจ๋ธ์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.

  • Temperature - ๋ชจ๋ธ ์‘๋‹ต์—์„œ ํ—ˆ์šฉ๋˜๋Š” ๋ฌด์ž‘์œ„์„ฑ ์ˆ˜์ค€์„ ์ œ์–ดํ•ฉ๋‹ˆ๋‹ค. ์ด ๊ฐ’์„ ๋†’์ด๋ฉด ๋ชจ๋ธ์ด ๋ณด๋‹ค ์˜ˆ๊ธฐ์น˜ ๋ชปํ•œ ์ฐฝ์˜์ ์ธ ์‘๋‹ต์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

  • Max output(์ตœ๋Œ€ ์ถœ๋ ฅ) - ๊ฐ ์š”์ฒญ์—์„œ ๋ชจ๋ธ์ด ๋ฐ˜ํ™˜ํ•˜๋Š” ์‘๋‹ต ์ˆ˜๋ฅผ ๋Š˜๋ฆฝ๋‹ˆ๋‹ค. ์ด ์˜ต์…˜์€ ๋‹จ์ผ ํ”„๋กฌํ”„ํŠธ์— ๋Œ€ํ•ด ์—ฌ๋Ÿฌ ๊ฐœ์˜ ์‘๋‹ต์„ ์ƒ์„ฑํ•˜์—ฌ ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‹ ์†ํ•˜๊ฒŒ ํ…Œ์ŠคํŠธํ•˜๋Š” ๋ฐ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค.

์ฝ”๋“œ๋ณด๊ธฐ

structured Prompt ๊ตฌ์กฐํ™”๋œ ํ”„๋กฌํ”„ํŠธ

chat prompt

๋Œ€ํ™”๋ฅผ ํ†ตํ•ด์„œ ๊ณ„์† ๋ฐ์ดํ„ฐ๋ฅผ ์ž…๋ ฅ์‹œํ‚จ๋‹ค.

๋‹ค ์ž…๋ ฅ์ด ๋ซ์œผ๋ฉด ์ด์ œ ์ฑ„ํŒ…์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

Safety settings: ๋ชจ๋ธ ์‘๋‹ต์„ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ์•ˆ์ „ ์„ค์ •์„ ์กฐ์ •ํ•ฉ๋‹ˆ๋‹ค. ์ด๋Ÿฌํ•œ ์ œ์–ด์— ๊ด€ํ•œ ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์„ ์ฐธ๊ณ ํ•˜์„ธ์š”.

์•ˆ์ „ ์„ค์ •
https://ai.google.dev/
https://ai.google.dev/tutorials/ai-studio_quickstart?hl=ko
https://ai.google.dev/
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text
Alt text