쉐도잉 연습: Top 5 AI Gateway Use Cases | Solo.io - 영상으로 영어 말하기 배우기

연습 모드 선택

각 모드는 전체 화면 연습실로 열립니다.

159 문장
문장이 너무 짧거나 길면 Edit를 눌러 조정하세요.
1
Continuing on the theme of AI related connectivity, let's talk about AI gateways.
2
A really common question we get is, why do I need an AI gateway?
3
And maybe I'll just build one myself or use my existing API gateway for that functionality.
4
So let's examine the top five use cases we see in customers adopting an AI gateway.
5
The first one involves credential management.
6
So without an AI gateway, a very common pattern you see is I'll create a key here in my LLM provider,
7
and then I'll go ahead and take that key and distribute it to the application teams,
8
the teams writing agents, and anyone maybe that they're using an agentic IDE and they need an API key there as well, and you can distribute it in all those locations.
9
Functionally this works.
10
The problem is when any one of these developers that has seen
11
that key maybe leaves the company or accidentally checks it into a public GitHub repository,
12
the blast radius of that is this entire infrastructure, including your account in the ALM provider.
13
One thing that an AI gateway helps out with immediately is
14
that I can have safe and secure storage for my API keys that only my AI gateway has access to.
15
The AI gateway then can, if we want, go ahead and issue individual keys for specific use cases for specific user groups.
16
Or I can also integrate with existing authentication mechanisms I have in my organization.
17
Like if an agent is presenting a JWT, I can use that and map it to the API key I'm providing to the provider.
18
This is critical just in terms of the blast radius limitation of like, hey, a key is exfiltrated,
19
or someone has hacked a certain piece of code and gained access to a certain piece of code.
20
I know exactly how to contain that threat.
21
And by containing it, I'm not impacting any of the use cases I have for that LLM provider.
22
I would say that credential management also plays a key role in the other use cases we're about to talk about now.
23
So let's talk about rate limiting.
24
Why is rate limiting important?
25
So maybe you've already seen this in your existing applications where let's say you have,
26
this app is sending five requests with a token size of let's just say 20K tokens, right?
27
And over here, this IDE is sending 20 requests with a token size, like a 45k token window,
28
like every minute or so, right?
29
Now you end up with turning an agent on and the agent goes bananas.
30
And all of a sudden it sends, you know, 20,000 requests and a massive context window that it's dumping in.
31
And it's got like a million tokens, let's say, just in a very short period of time, like in less than a minute.
32
Now in
33
that scenario, what's going to happen is the LLM provider is going to rate limit not only based on request count, but also by token count.
34
So those are both variables in that equation and evaluation.
35
And when you get shut off, you're going to get shut off, not just for the use case that's abusing it, but account wide, and you're going to get a backoff.
36
That means maybe this agent, I'm just testing around or it's an evaluation,
37
but I brought my entire account down and that's all API keys for that account across all the other use cases.
38
It's impacting developers, it's impacting my production apps that may be customer facing as well.
39
We have to find a better way to deal with this problem.
40
And the answer is with an AI gateway to actually support rate limiting
41
and token rate and rate limiting in particular directly in the gateway.
42
And that means when I have this same traffic here where I'm coming over and this is the bad actor.
43
I have our IDE friends over here.
44
This agent, since it's interacting with the AI gateway first,
45
the AI gateway can shut off that agent directly while allowing traffic from all other consumers to continue.
46
That means I have no production or service interruptions from the app or the IDE, and the agent gets really gentle back pressure
47
and gets turned off for a period of time and then gets opened up again.
48
It'll be very obvious to that team that they're getting rate limited locally, and then they can fix that problem and address it and come back online.
49
Or maybe it was a periodic or ephemeral issue with flooding a bunch of traffic, and as soon as they exceed the rate limiting window, then they'll come back online.
50
But the key thing in any gateway and why API gateways, traditional API gateways are not sufficient to handle this requirement is you need both request rate limiting,
51
but also token weighted rate limiting.
52
So I can compute the amount of tokens that are allowed given a certain time window in seconds, minutes, hours or days.
53
All right.
54
Use case number three, usage reporting.
55
So maybe this is familiar to you as you're consuming more and more of provider services.
56
end of the day you get a nice bill from your provide your LLM provider
57
and it's a million dollars okay okay who has actually spending
58
that money okay you may be lucky enough to have multiple API keys
59
so you get maybe some subdivision of that but again
60
if you're sharing API keys across the clients
61
that are using it then you're gonna that's gonna get washed
62
out more importantly you're not gonna have the very specific details of the identities the groups that are consuming it, the model and the provider used in
63
that internal detail of how you're actually going to show chargeback or showback to the teams consuming.
64
So what we want is the ability that we'll get the same million dollar bill over here.
65
Okay.
66
But in this scenario, every request that's going through the AI gateway is actually earmarked
67
or watermarked with the client actually consuming it.
68
That's how we're doing rate limiting.
69
And that's why we implement credential management in this layer as well, which means that when I get this $1 million bill,
70
the access logging and reporting here can actually tell me that this particular app is actually responsible for 50K
71
and this IDE is responsible for 50K.
72
Or in like, you know, the token count, it'll report the token counts and you can extrapolate the value there.
73
And then our friend, the agent that was acting up in terms of rate limiting, their token contribution was around 900K, right?
74
This is a very, very key attribute to like once you're trying to justify
75
that AI budget and who's consuming you're trying to even
76
if you're not charging back those teams you're trying to show
77
who's consuming consumption reporting in the gateway is a key feature
78
you'd certainly don't want to you don't have the right details in a traditional API management solution
79
or API gateway to basically track providers and clients
80
and token counts to show that charge back
81
but then also you won't have the granularity to isolate it to given teams all right number four for guardrails.
82
So for guardrails, what we're going to protect against is a number of things.
83
The request that's going in, this can be a hijack request, it could be a phishing prompt, it can be anything.
84
This is your attack surface area of what's going in via natural language prompt.
85
And they're going to be a common attack vectors that you're going to want to protect against.
86
Certain prompts that if they contain keywords or they're structured in a certain way, you always want to prevent.
87
Or perhaps you want to append a system prompt to every request that goes through.
88
So you can use some semantic guardrails there in line with the request.
89
Likewise, even if it wasn't a malicious request on the response path, I always have a danger here of data exfiltration, right?
90
So if I'm asking a very innocent question that's not a phishing attack or trying to be a Trojan horse, I still might get back some customer data,
91
account information, social security number, this type of thing that I don't want to expose to clients.
92
And in that case, I have no way of protecting against either of these.
93
The only thing I can rely on is the actual LLM providers' moderation services, which are definitely valuable but on the request path, I'm never limited.
94
Like any data can go all the way to the LLM provider here.
95
So that's actually leaving my network and is out on like open internet and available to the provider.
96
And I might not want that data even escaping my network, right?
97
Likewise, there could be very specific requirements I have where maybe the obvious things like credit card numbers and social security numbers,
98
you can pattern match on those and the provider services can filter those.
99
But what if I have very unique constraints of what I consider PII for my customer base, or I have intellectual property that I don't want to escape my network,
100
I don't want developers accidentally putting in key bits of code
101
or other IP materials that actually might throw to an LLM provider, that I need to be able to instrument for advanced guardrails as well.
102
So let's look at how an API or an AI gateway solves for that.
103
In the AI gateway, you actually have three controls available.
104
So you have basic guardrails.
105
And what basic guardrails do is the first use case I said, that acting directly on the prompt and the response, it can introspect the request, it can identify keywords, identify patterns,
106
and reject those and reject that request to not allow it to flow through to the upstream LLM provider.
107
Likewise, in the response path, it can inspect the data and it can either reject
108
that outright or it can mask that data as it comes back to the client.
109
The key value there is that I don't have to implement it all of the client apps, these guardrails.
110
I have a centralized point of control.
111
This becomes very important if after going to production, you discover that some key data is being exfiltrated, or you're open to some attack vector.
112
What is the fastest path to remediating that exposure?
113
And it's not rolling out new updates to all the apps you've deployed, and it's not working with your upstream LLM provider to add that to their moderation endpoint.
114
that's actually implementing that in the AI gateway and getting it pushed to production in minutes.
115
The next feature I'll mention is moderation endpoint integration.
116
So again, this is a key feature that the upstream LLM providers all offer, but why would I want to wait necessarily for the full request to go to the LLM
117
and then catch that in the processing path?
118
What I really want to do is inside my network, basically contact the moderation point, and if there's any problem with that request,
119
I want that to actually be cut off in my network and not go farther downstream.
120
A key principle here is trying to eliminate any threats or any potential data exfiltration as soon as you can detect it.
121
And this is a key aspect of that.
122
And then finally, we support what we call advanced guardrails.
123
And really what that is, as an example, is if you wanted to train a small language model, maybe you take like an 8 billion parameter model
124
and you fine-tune it with maybe 500 examples of various types of data
125
that you don't want to see in a request or different types of prompts that you don't want to see,
126
that can be very, very useful to execute inline in the request path as more of a semantic guardrail.
127
So you're not even matching on specific data patterns or data signatures.
128
you're doing semantic controls of, is this suggestive of this, or is this like these other things?
129
And that can be done with a small language model that can be integrated directly with the AI gateway.
130
The last point I want to make is around abstraction.
131
So in this case, we have individual apps, agents, and IDEs going directly against the LLM provider.
132
The impact of that means that they are binding to the very specific API of that provider and also they are actually,
133
if you look behind the scenes, most customers, while they may be consuming the public endpoint,
134
the generalized endpoint for OpenAI, for example, that we all use when we use it, but it's quite likely for sensitive information or for their enterprise use cases,
135
you're consuming a private endpoint there.
136
So you've isolated that LLM in specific infrastructure for your company, and you need to access that endpoint or a specific model.
137
And in that scenario, now the app is going to go to that specific endpoint.
138
There are definitely cases where there can be endpoint availability issues
139
there for a very specific endpoint where it's unavailable for a certain period of time.
140
Now in that case, if that's tied to a production experience, so like a chat bot or any customer facing functionality,
141
then that customer channel is down in that period.
142
Another potential exposure here is if you get rate limited in a given model, or even availability of a given model is down,
143
then you might want to fall back or fail over to another model.
144
But it is very hard to instrument for this.
145
You actually have to build that logic directly into each application agent
146
and you're hoping your IDE supports it that you're using up here, but with an AI gateway we can do that seamlessly.
147
If a given endpoint, private endpoint is down, the LLM will seamlessly fall over based on your configuration to a backup endpoint
148
and this can cascade down to multiple end points, multiple models, and even multiple providers.
149
When we talk about abstraction, if your AI gateway supports a canonical API as we do in Agent gateway,
150
all of your clients can just talk OpenAI's API, and that can be mapped to any provider underneath the cover,
151
whether that's Claude or Vertex or Bedrock or OpenAI itself.
152
It can scale to all of these models while presenting a single canonical and consistent API to the consumers, which makes it much easier as you start to exchange models,
153
whether it's hosted providers or you're starting to run LAMA or another model, open source model internally.
154
you still don't impact the consumers of that because you're keeping that API abstraction the same.
155
So hopefully this was useful in terms of discussing the key use cases
156
and the key value we see with customers in adopting an AI gateway
157
and gives you a good idea of how daunting this task is
158
if you were gonna embark on the path of implementing it on your own.
159
Check out Agent Gateway today.

앱 다운로드

유창하게 말하는 데 필요한 모든 것

AI 발음 평가문장마다 점수 확인
IPA 발음 연습모든 소리 마스터
단어 학습나만의 단어장 만들기
단어 게임놀면서 외우기

이 레슨의 어휘와 말하기 포인트

이 C1 수준 말하기 레슨은 영상 “Top 5 AI Gateway Use Cases”을(를) 바탕으로 합니다. 가장 자주 반복되는 단어는 다음과 같습니다: gateway, key, provider, request, Api. 이 영상에는 섀도잉할 문장 159개와 단어 2518개가 있습니다. 말하는 구간의 길이는 13:37입니다. 화자는 분당 약 185단어로 빠르게 말하므로 연음과 약하게 발음되는 소리가 많습니다. 영어에서 가장 많이 쓰이는 3,000단어에 속하는 단어가 80%뿐이라 어휘가 어려운 편입니다.

이 영상의 핵심 어휘

영상에서 가장 어려운 단어 15개를 발음, 뜻과 함께 정리했습니다.

단어발음뜻
token 명사/ˈtoʊkən/토큰
guardrail 명사/ˈɡɑɹdˌɹeɪl/보호 난간
prompt 동사/pɹɑmpt/부추기다
moderation 명사/ˌmɑdəˈɹeɪʃən/절제
semantic 형용사/sɪˈmæntɪk/시멘틱
keyword 명사/ˈkiː.wɜːd/키워드, 핵심어
phishing 명사/ˈfɪʃɪŋ/피싱
functionality 명사기능
radius 명사/ˈɹeɪ.di.əs/노뼈, 요골
vector 명사/ˈvɛktɚ/벡터
authentication 명사/ɔːˌθɛntɪˈkeɪʃn̩/인증
embark 동사/ɪmˈbɑɹk/타다
ephemeral 형용사/ɛˈfɛ.mə.ɹəl/재지 않는
watermark 명사/ˈwɔːtəmɑːk/워터마크, 수위표
parameter 명사/pəˈɹæm.ə.tɚ/파라미터, 매개변수

영상에 나오는 구동사

단어뜻
come back 동사돌아오다
fall over 동사넘어지다

이 영상의 문법

화자가 가장 많이 쓰는 문형을 영상 속 실제 표현과 함께 정리했습니다.

문형영상 속 표현
수동태 be + 과거분사 — 누가 하는지보다 무슨 일이 일어나는지에 초점is exfiltrated · are allowed · is actually earmarked
현재완료 have/has + 과거분사 — 과거의 일이 지금도 관련이 있을 때has seen · has hacked · you've already seen
관계절 who / which + 절 — 사람이나 사물에 대한 추가 정보well, which means · services, which are · consumers, which makes

주의할 발음

화자는 you're, don't, I'm 같은 축약형과 약화된 형태를 60번 사용합니다. 들리는 대로 짧게 발음하세요.

  • “th” 소리: authentication /ɔːˌθɛntɪˈkeɪʃn̩/, underneath /ˌʌndɚˈniθ/
  • “sh”와 “zh” 소리: moderation /ˌmɑdəˈɹeɪʃən/, abstraction /æbˈstɹæk.ʃn̩/, credential /kɹɪˈdɛnʃəl/, phishing /ˈfɪʃɪŋ/, authentication /ɔːˌθɛntɪˈkeɪʃn̩/
  • 긴 단어 — 강세 위치에 주의: moderation /ˌmɑdəˈɹeɪʃən/, canonical /kəˈnɒn.ɪ.kəl/, authentication /ɔːˌθɛntɪˈkeɪʃn̩/, ephemeral /ɛˈfɛ.mə.ɹəl/, extrapolate /ɛkˈstɹæp.əˌleɪt/

한국어 화자가 어려워하는 소리:

  • /f/ — ㅍ(/p/)으로 바꾸지 말고 윗니를 아랫입술에 대기: exfiltrate /ˈɛksfɪltɹeɪt/, phishing /ˈfɪʃɪŋ/, ephemeral /ɛˈfɛ.mə.ɹəl/, configuration /kənˌfɪɡ.əˈɹeɪ̯.ʃən/
  • /v/ — ㅂ(/b/)과 구별하기: vector /ˈvɛktɚ/, suggestive /sə(ɡ)ˈd͡ʒɛs.tɪv/, unavailable /ˌʌnəˈveɪləbəl/, subdivision /ˈsʌbdɪvɪʒən/
  • /z/ — ㅈ이 아니라 성대를 울리는 /s/: likewise /ˈlaɪkˌwaɪz/, centralize /ˈsɛntɹəlaɪz/, generalize /ˈd͡ʒɛn.(ə.)ɹə.laɪz/, repository /ɹɪˈpɒz.ɪ.t(ə.)ɹɪ/, expose /ɪkˈspoʊz/

이 영상으로 연습하는 방법

  1. 먼저 말하지 않고 영상을 끝까지 듣고 모르는 단어를 적어 둡니다.
  2. 0.75배속으로 한 문장씩 섀도잉을 시작하고, 익숙해지면 보통 속도로 돌아갑니다.
  3. 자신의 목소리를 녹음해 원본과 비교하고, token, guardrail, prompt 같은 단어에 특히 주의합니다.

쉐도잉이란? 영어 실력을 빠르게 키우는 과학적 방법

쉐도잉(Shadowing)은 원래 전문 통역사 훈련을 위해 개발된 언어 학습 기법으로, 다언어 학자인 Dr. Alexander Arguelles에 의해 대중화된 방법입니다. 핵심 원리는 간단하지만 매우 강력합니다: 원어민의 영어를 들으면서 1~2초의 짧은 지연으로 즉시 소리 내어 따라 말하는 것——마치 '그림자(shadow)'처럼 화자를 따라가는 것입니다. 문법 공부나 수동적인 청취와 달리, 쉐도잉은 뇌와 입 근육이 동시에 실시간으로 영어를 처리하고 재현하도록 훈련합니다. 연구에 따르면 이 방법은 발음 정확도, 억양, 리듬, 연음, 청취력, 말하기 유창성을 크게 향상시킵니다. IELTS 스피킹 준비와 자연스러운 영어 소통을 원하는 분들에게 특히 효과적입니다.

섀도잉 방법: 단계별 전체 가이드 읽기 →