Building and evaluating robust conversational interfaces using LLMs
Janvi Palan21:442024
Чатбот за продажби, който задава въпрос след въпрос, е просто формуляр
Попитайте готов LLM какво да купите на съпруга си за 30-ия му рожден ден и ще получите дълъг, многословен списък; един търговски консултант би отбелязал важната годишнина и би попитал какво харесва той. Janvi Palan, старши ML инженер изследовател, ръководила генерирането на разговори за виртуалните хора на Samsung, обяснява защо тази разлика е важна в търговията и хотелиерството. Как се изгражда агент, който знае кога да спре да пита, и как се доказва, че работи?
Получете архитектура и план за оценка, компонент по компонент, за естествени и измерими LLM агенти
Janvi Palan представя рамка за изграждане на разговорни агенти, базирани на LLM, за търговията на дребно, продажбите и хотелиерството, които звучат естествено, разбират потребителите имплицитно и остават управляеми. Тя описва модулен процес (контекстуално NLU, проследяване на състоянието, конфигурируемо поведение, генериране, допълнено с извличане, и компонент за тоналност) и твърди, че всеки компонент и цялата система трябва да се оценяват спрямо еталонни набори от данни и бизнес показатели.
“Така че всичко да е по-меко и имплицитно всъщност наистина е ключът тук.”
“Това е изключително важно, защото искате да можете да сравнявате цялата си система на всеки етап от итерацията.”
What you will learn
Проектирайте поведението на агента като конфигурируеми действия, например потвърждаване, уточняване, препоръка или непринуден разговор, вместо да разчитате на суровия изход на LLM.
Изградете модулен процес от контекстуално NLU, състояние и памет, извличане и перифразиращ компонент за тоналност, за да може всяка част да се усъвършенства поотделно.
Разпознавайте конвергенцията: момента, в който агентът разбира потребителя достатъчно добре, за да спре да задава въпроси.
Създайте еталонен набор от данни за оценка и измервайте компонентите и цялата система, включително релевантността и пълнотата на извличането.
Намалете токсичността и халюцинациите чрез защитни механизми за входа и изхода, по-стегнат извлечен контекст и проверки на изхода за критични за бизнеса стойности.
Details
Level
Intermediate
Format
Talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
21:44
Published
May 2024
Questions this talk answers
Защо готовите LLM не са достатъчни за агенти за продажби или търговия на дребно?
Те обикновено отговарят с дълги, многословни списъци, докато добрият агент трябва да предприема детерминирани действия като потвърждаване и уточняване и да разбира предпочитанията имплицитно, вместо да попълва формуляр.
Какви компоненти са нужни на надеждния разговорен агент?
Контекстуално NLU за намерение и нагласа, проследяване на състоянието и паметта, конфигурируемо поведение, генериране, допълнено с извличане от статични и динамични източници на данни, компонент за тоналност или перифразиране, както и логване и наблюдаемост.
Как трябва да се оценяват разговорните системи с LLM?
Започнете с еталонен набор от въпроси и идеални отговори, оценявайте всеки компонент и целия процес, използвайте оценяване с помощта на AI и семантично сходство на отговорите и свържете онлайн оценката с бизнес показатели като продажби и ангажираност.
Как да разберем кога агентът трябва да спре да задава въпроси?
Palan нарича това конвергенция: да се разпознае кога агентът е изградил достатъчна представа за изискванията на потребителя, както би го направил човек в разговор.
Как екипите да прилагат red teaming към AI решения за токсичност и халюцинации?
Използвайте защитни механизми както за входа, така и за изхода, включете хора или събиране на данни, за да отразите как всеки бизнес определя забраненото съдържание, и намалете халюцинациите чрез подобряване и съкращаване на извлечения контекст и филтриране на изхода, например на цените.
Защо списъците с подаръци в стил ChatGPT не помагат на купувачите (83 s)
Започнете с набор от данни за оценка (72 s)
Защитни механизми срещу токсичност и халюцинации (79 s)
Speaker 1: Hi, everyone. Good morning. It's morning where I am. Welcome to this talk where I'll be talking about really using Gen. AI models, specifically large language models to build conversational interfaces, which are actually more natural, more realistic. And actually get the job done. So the purview, the domain of this talk and the conversational AI interfaces that we're talking about is basically for sort of scenarios like sales, hospitality, retail, places where naturalness of conversation, but really a better understanding of human feedback is extremely important.
Speaker 1: So let's kind of dive into the session. So yes, again, how not to sound like chat GPD, essentially. Speaker 1: So the agenda for this session is basically how do you, what do you define as a good conversational AI interface or service? What the motivation is? Is it just, you know, being able to answer questions or is it more than that?
Speaker 1: Then I will also present an outline on how to customize it and fix it for production use cases. Speaker 1: So this is not like using a no code platform or a low code platform, but rather if in your, you know, in a conversational AI or natural language understanding team, there is actual, you know, customizability that's required customer data models that are essential. How do you actually.
Speaker 1: Structure such an architecture. Speaker 1: And then what's most important in my opinion is defining evaluation pipelines, especially for production use cases. Speaker 1: So if you have B2B settings and you're building out a conversational agent, that's going to be used by an external business as a customer and enterprise that's a customer. Speaker 1: So it's more like B2B to B2B to C. You still need to have thorough evaluation metrics to identify versioning and iterate over the best, you know, versions and changes that happen both at a component level in your pipeline and as well as sort of end to end evaluating the entire architecture and the system.
Speaker 1: And then we'll maybe if we have time, we'll focus a little bit on retrieval systems for retrieving the relevant data and how you actually evaluate those. Speaker 1: And then, you know, we'll go from that. Speaker 1: So why should you care? Speaker 1: Okay. Speaker 1: So this talk is especially important for people who are in the space of natural language understanding and processing and potentially conversational AI.
Speaker 1: Or if you're, you know, a senior ML or technical architect that wants to build a system that can actually ingest data from different sources and actually be able to create an agent that can do a good job at whatever the business logic it hangs in. Speaker 1: But why should we care about making these conversational interfaces robust and more natural?
Speaker 1: The main reasons are, of course, you want these agents to not just be a question answering chatbot, you know, but you want them to actually enhance the customer experience. Speaker 1: So if you're if at a senior level, your technical strategy is to actually add in these to improve a customer experience to make them feel better.
Speaker 1: I think that we need to have better components in these AI systems to actually imitate that at the very least, if not truly replicate that. Speaker 1: You'd like them to be, you know, sometimes you don't want them to just answer questions with that straight face. Speaker 1: You want it. Speaker 1: You know, it's not a rapper on an LLM.
Speaker 1: It's you know, they have the need. Speaker 1: They should have personality. Speaker 1: There should be, you know, there should be candidness and the tone should be casual and potentially even fun depending on the use case, right? Speaker 1: You want there to be like a back and forth interaction. Speaker 1: The conversation should be free flowing.
Speaker 1: So, you know, if anything goes out of scope, it's not like you say, sorry, I can't handle that. Speaker 1: It should still gracefully fail in those cases. Speaker 1: However, these rules should still be configurable in a business logic based on business logic. Speaker 1: We don't want users to fill out a form. Speaker 1: So when you have a sales or retail agent, you don't want them to ask questions in that that are effectively just filling a form from a potential user or a customer.
Speaker 1: You don't want them to be like, okay, so what do you like about this? Speaker 1: What do you like about this? Speaker 1: But you want to implicitly understand preferences and make a recommendation. Speaker 1: So everything being more softer and implicit is actually really the key here. Speaker 1: And we want a pipeline that's accessible at every component.
Speaker 1: So if you have one module that's focusing more on user understanding, which has a couple of machine learning models, Speaker 1: and then there's components that are focusing on retrieval of data and components that are focusing on generation, Speaker 1: each of them should be accessible so that you can iterate on them in a deterministic manner.
Speaker 1: So that's the goal here is like we want to be able to build an actual sales or hospitality or marketing agent Speaker 1: measure how effective it is at its actual job, which is, you know, of doing the sales or being a good marketer. Speaker 1: So this should probably give you some insight. Speaker 1: You have on the left, you have this conversation.
Speaker 1: This is kind of what you just asked GPT 3.5 with GPT for or a lot of the off the shelf like LLMs that are available. Speaker 1: You know, a customer saying, what should I buy my husband as a 30th birthday, as a birthday gift for his 30th birthday. Speaker 1: And the agent just replies with like this long wordy list of things that would work well.
Speaker 1: What we actually want is, and sure, there are times when behavior of this model will be better, where you will have a probing question coming in. Speaker 1: But what we actually want is deterministically having a series of actions that can be taken by the agent. Speaker 1: So when the customer says something like this.
Speaker 1: You know, there's a potentially an acknowledgement action. Speaker 1: And then, which is like, oh, milestone birthday sounds like you really want to make it special. Speaker 1: What does he usually like? Speaker 1: So this is more like acknowledgement and then probe based on both of these actions. Speaker 1: Certain states are kind of failed, but implicitly.
Speaker 1: So we basically need to understand based on this response that the person's looking for something that fits this sort of a profile. Speaker 1: So really this this agent driven questioning and acknowledgement and that sort of behavior. Speaker 1: It's a research topic as well. Speaker 1: But right now, I think if we don't have implicitly large language models that can do this deterministically.
Speaker 1: We need a framework that actually defines and defines components that can handle this. Speaker 1: So how can we actually build a good conversation AI system? Speaker 1: We first define a framework that can be deployed in retail sales and hospitality. Speaker 1: That's what we're trying to do here. Speaker 1: What we actually want to do in this case, we want to reduce rigidity in the conversation while having more control in the flow.
Speaker 1: That's what I was kind of alluding to in the previous example. Speaker 1: We want to improve the tonality. Speaker 1: So there has to be some sort of tonality component which makes them sound more human than they are or adds a distinct sense of textual style or conversational style. Speaker 1: Obviously, we want to reduce latency in responses from larger models.
Speaker 1: So, you know, you can't just use the largest LLM available because it takes time to generate responses. Speaker 1: And in a sales or retail setting, it's not fun to wait for four seconds, potentially 10 seconds to get a response. Speaker 1: Understand user requests and profile the users better. Speaker 1: And build generalized yet customizable data integration pipelines.
Speaker 1: So different B2B customers would have different data sources, different, you know, in the retail setting, different product catalogs, different price books, different systems that can directly feed an inventory information and so on. Speaker 1: So how do you actually ingest all of that in a system that's generalizable? Speaker 1: And we should, like I said, iteratively be able to improve it based on measurable online and offline metrics.
Speaker 1: So how do we actually do this, right? Speaker 1: We have, what we have is basically improved, like we need an improved NLU component. Speaker 1: What that is, is we need to understand what the intent of the user is, understand the sentiment behind each important attribute and its relevance. Speaker 1: So this is more from classical dialogue system, sort of a framework.
Speaker 1: But now with the advent of large language models, we can potentially use better, better models and better methods of improving this in a multi multi-turn, more contextual setting. Speaker 1: Understand when to stop asking questions. Speaker 1: That's, that's also important. Speaker 1: Like I said earlier, we don't want to fill forms. Speaker 1: It's, it's annoying for users and it's not the most natural experience.
Speaker 1: So what we want is to really, you know, as a human being, we understand when, you know, when you understood enough about the opposite person having a conversation with. Speaker 1: So that's that we call it convergence. Speaker 1: So understanding when you actually created a sufficient picture of a user that you could watch to some sort of state of their requirements.
Speaker 1: So that brings me to the next point, which is better agent state context and memory Speaker 1: So the state is basically the current state of the conversation, the current state of the user and wherever the state is in the flow of the conversation. Speaker 1: Whether you've made a recommendation, whether you've understood the, you've filled in enough information about the user's profile and some inherent state.
Speaker 1: But, you know, tracking state. Speaker 1: So this state also is contextual. Speaker 1: So when you've made a recommendation. Speaker 1: As a FAQ kind of question is not again, it ruins the experience. Speaker 1: It makes it. Speaker 1: It's what is like the difference between actually using this in an end to end manner versus always requesting for a human agent at the end.
Speaker 1: So. Speaker 1: And like different things in different contexts can mean vastly different things. Speaker 1: So I think that that becomes essential is like the state tracking is also contextual. Speaker 1: The behavior, like how much to acknowledge, how much to probe, how many turns of conversation, which is how many tries of how many back and forth turns of conversation.
Speaker 1: Should you have before you realize that, you know, this user is clearly frustrated or they don't know what to do. Speaker 1: I need to hand off to somebody else. Speaker 1: So on. Speaker 1: How do you actually learn that or and or, you know, be able to configure that is another problem. Speaker 1: So we should be able to provide configurability configs or, you know, like high level definition sort of files or some sort of tooling to allow for this configurability to be pretty flexible.
Speaker 1: And then to learn this both heuristically and from machine learning based approaches, you can have things like prior logs with sales agents. Speaker 1: It's a little hard to get this source of data. Speaker 1: It's it's a little easier to get the data over like what we're doing on the Internet as opposed to what's happening in real life and in, you know, user to user use cases.
Speaker 1: But there are logs called center logs, telemarketing logs, so on. Speaker 1: Enhanced context from static and dynamic sources using a common data and regression pipeline. Speaker 1: So like I was mentioning, we want to use sources like product catalogs, textual descriptions, marketing information, all of the stuff that a sales associate really has access to that makes them a good sales associate.
Speaker 1: And then things like, you know, having connect plugins that connect with various APIs that talk about pricing or ads or promotions. Speaker 1: So those are more dynamic sources using a combination of both of these to perform rag, which is retrieval augmented generation for LLMs, which basically takes in understands users and understands the state of the conversation retrieves the relevant information and then feeds that to the context of a generation LLM.
Speaker 1: That's that's basically what we'd like to do. Speaker 1: Then I was talking about the tonality, which is basically making sure that the conversation is natural, non-rigid. Speaker 1: There is identity specific sort of styles that are available. Speaker 1: So, you know, potentially you could have a tonal, a tonality component or a paraphraser component, which would be able to replicate the tonality that a business would want in there.
Speaker 1: Their agents so that everything doesn't become, you know, standard. Speaker 1: And of course, there are all these other steps like logging observability metric accumulation as you've deployed a system that's that's more standard from a machine learning monitoring and a software systems monitoring approach. Speaker 1: But those that information is essential because it could also be used for fine tuning and using implicit feedback.
Speaker 1: And so, let's kind of go into this, which is basically it's it's basically like a high level diagram for for what I've sort of discussed. Speaker 1: So there's a user. Speaker 1: And what we have here is a user contextual NLU, which is basically a model that's or a set of models that's understanding the user's response and multiple responses so far.
Speaker 1: Based on that, it feeds into a static to a set of data and config files. Speaker 1: So you have static data sources, dynamic data sources, which are basically the API based sources and then configurations to configure agent behavior. Speaker 1: All of that is assimilated and create fed into a context creation template, which would basically use the agent behavior conflicts such as like how much to ask whether to acknowledge.
Speaker 1: And then based on contextual and then you should be recommend should be probe more and so on. Speaker 1: Or should we just chit chat and then that's fed in here and used to generate a response from a large language model that's faster paraphraser. Speaker 1: This is then added to, I mean, you know, typical dialogue machines scenario where you have dialogue, the memory of the conversation because that could be used going forward.
Speaker 1: And so it continues in this, in this setting. Speaker 1: I'm going to stop here and ask if anyone has any questions or, you know, comment, I mean, anything that they'd like to ask before we try to wrap this up. Speaker 1: Okay, so now maybe let's go into the next part, which is how to evaluate these systems.
Speaker 1: So I think I'll leave this at a very high level, but what we absolutely need to do is start with building out an evaluation data set. Speaker 1: That's extremely important because you want to be able to benchmark your entire system at every point of iteration. Speaker 1: And, you know, we know this from software, we know this from even traditional ML algorithms.
Speaker 1: So I think even in generative models, I think it's really essential. Speaker 1: It's just how we measure that becomes slightly different. Speaker 1: What we want is also to be able to design thoughtful metrics that actually assess the performance of various components as well as online and offline performance. Speaker 1: So, and then evaluate at a component level as well as an end to end system level.
Speaker 1: So we also want to evaluate the NLU components, the drag components, the generation model individually, but also the entire pipeline in an end to end manner. Speaker 1: So creating a goal data set is super important where you have the relevant questions and the most ideal responses. Speaker 1: Could also use AI assisted evaluation to score responses that come from a data.
Speaker 1: So using a larger model like GPT-4 or something that's much better. Speaker 1: So one way of, you know, assessing this is using semantic answer similarity. Speaker 1: So creating and this is, this is something that basically understands the context of a question and an expected answer. Speaker 1: And then the answer that's generated from your system is measured basically using cosine similarity.
Speaker 1: And then for evaluating retrieval systems, you know, there's various other areas to compute the metrics. Speaker 1: So whether it's actually relevant to the data, to the question that's asked, whether we actually are able to recall all the information about a particular question and so on. Speaker 1: So how do you online evaluate? Speaker 1: I mean, always tying it to a business metric.
Speaker 1: Like, is this agent actually leading to an increase in sales? Speaker 1: Is this actually being able to improve engagement with customers? Speaker 1: Maybe assessing sentiment of conversations in post is important as well. Speaker 1: And yeah, with that, I'm reaching the end of my session. Speaker 1: So anyone having any questions, comments or suggestions, please feel free to write it in the session.
Speaker 1: You can reach out to me on LinkedIn as well. Speaker 1: Okay, there's one question. Speaker 1: What's your opinion, red teaming your AI solutions? Speaker 1: Yeah, so with red teaming, I mean, assessing for things like toxicity, hallucinations, so on. Speaker 1: It's like, there's obviously open research tasks, and we're like working on that as well.
Speaker 1: But there are ways, there are scores like hallucination scores that can be used. Speaker 1: I think right now for toxicity, guard railing on the input side as well as on the output side becomes important. Speaker 1: So post-generation verification and filtering, and then on the input side is like guard railing for toxicity comments and so on.
Speaker 1: There are a lot of different approaches. Speaker 1: However, for each business, they have their own definition of what toxicity is or what is disallowed. Speaker 1: And so there still has to be a dedicated set of maybe people or some sort of data collection efforts Speaker 1: to ensure that everything that is disallowed is represented in some form somewhere.
Speaker 1: So whether it's coming through people actually actively working to understand the shortcomings of the system or building out data sets and models that can actually effectively identify these guardrails. Speaker 1: For hallucination also there's ways to hallucinate but to reduce hallucination. Speaker 1: What we've realized mostly is to improve the context that's being the retrieved context that's being fed into the models really works well.
Speaker 1: And reducing the length of the context as well works really well. Speaker 1: But for very important things like business logic or business specific terms, again filtering on the output side is also always a good check to have. Speaker 1: So identification of various slots and then making sure that they're filled with the relevant values, for example, for pricing and such.
Speaker 1: So I think it's a combination of both like there is research and development, but then there's also a lot of accounting for mistakes and being proactively cautious. Speaker 1: Yeah, I hope I'm able to answer questions. Speaker 1: All right. All right. Thank you, everyone. That's the end of my session. I'd love if you have any other questions, please feel free to connect. It's been really nice presenting today to this set of amazing women. Thanks a lot. Bye.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Какво е нужно, за да звучи LLM агентът за продажби човешки и да остане измерим
Рамката на Janvi Palan за разговорни агенти в търговията и хотелиерството, които уточняват деликатно, отговарят бързо и могат да се оценяват на всяка стъпка.
Накратко
Готовите големи езикови модели отговарят на въпроси, но не се държат като добър търговски консултант. Janvi Palan твърди, че разговорните агенти за търговията на дребно, продажбите и хотелиерството се нуждаят от модулен процес (контекстуално разбиране, проследяване на състоянието, конфигурируемо поведение, извличане и слой за тоналност) и преди всичко от оценка на ниво компонент и система, свързана с бизнес резултати.
Основни изводи
Проектирайте поведението на агента като конфигурируеми действия, например потвърждаване, уточняване, препоръка или непринуден разговор, вместо да разчитате на суровия изход на LLM.
Изградете модулен процес от контекстуално NLU, състояние и памет, извличане и перифразиращ компонент за тоналност, за да може всяка част да се усъвършенства поотделно.
Разпознавайте конвергенцията: момента, в който агентът разбира потребителя достатъчно добре, за да спре да задава въпроси.
Създайте еталонен набор от данни за оценка и измервайте компонентите и цялата система, включително релевантността и пълнотата на извличането.
Намалете токсичността и халюцинациите чрез защитни механизми за входа и изхода, по-стегнат извлечен контекст и проверки на изхода за критични за бизнеса стойности.
Отвъд чатбота, който отговаря на въпроси
Palan изгражда лекцията около проста амбиция: разговорни интерфейси, които са естествени и реалистични и наистина вършат работа. Нейната област са продажбите, хотелиерството и търговията на дребно, където тонът и разбирането на човешката обратна връзка са толкова важни, колкото и фактическите отговори. Тя иска агенти с личност, откровеност и непринуден, понякога забавен тон, които реагират елегантно, когато заявката е извън обхвата им, като същевременно спазват конфигурируеми бизнес правила.
Една от най-силните ѝ тези е, че агентът за продажби никога не бива да се усеща като въпросник. Вместо да задава на клиента един и същ тип въпрос отново и отново, агентът трябва да извежда предпочитанията и да прави препоръка. По думите ѝ: „Така че всичко да е по-меко и имплицитно всъщност наистина е ключът тук.“ (4:57)
Тя настоява също всяка част от процеса, от разбирането на потребителя през извличането до генерирането, да е достъпна, за да могат екипите да я усъвършенстват детерминирано и да измерват дали агентът се справя с реалната си задача, например продажби или маркетинг.
Потвърждаване, уточняване, конвергенция
За да покаже разликата, Palan сравнява два отговора на клиентка, която пита какво да купи на съпруга си за 30-ия му рожден ден. Типичният готов модел връща дълъг, многословен списък. Поведението, което тя иска вместо това, е потвърждаване (кръгла годишнина звучи специално), последвано от уточняващ въпрос какво обикновено харесва той. „Но това, което всъщност искаме, е детерминирано да имаме поредица от действия, които агентът може да предприеме.“ (6:18)
Рамката ѝ цели да намали твърдостта, като запази контрола върху потока, да подобри тоналността, да съкрати латентността, да профилира потребителите по-добре и да изгради процеси за интеграция на данни, които се обобщават за бизнес клиенти с различни продуктови каталози, ценоразписи и системи за наличности. Латентността е практическо ограничение, а не подробност: „А в среда на продажби или търговия на дребно не е приятно да чакаш четири секунди, потенциално 10 секунди, за отговор.“ (8:06)
Ключова концепция е това, което екипът ѝ нарича конвергенция: да се знае кога агентът е изградил достатъчна представа за потребителя, за да спре да пита. „Както казах по-рано, не искаме да попълваме формуляри.“ (9:23)
Архитектурата: разбиране, състояние, извличане и тон
Palan разглежда компонентите един по един. Подобрено контекстуално NLU разпознава намерението и нагласата зад важните атрибути в рамките на няколко реплики. Състоянието и паметта на агента проследяват докъде е стигнал разговорът: дали вече е направена препоръка и колко пълен е профилът на потребителя. Тъй като състоянието е контекстуално, неуместен въпрос в стил FAQ след препоръка може да развали преживяването.
Настройките на поведението, като колко да се потвърждава, колко да се уточнява и колко реплики да се допуснат преди предаване на човек, трябва да се конфигурират чрез файлове с дефиниции на високо ниво или инструменти и могат да се научат и от източници като записи от кол центрове или телемаркетинг. Генерирането, допълнено с извличане, съчетава статични източници (продуктови каталози, описания, маркетингови материали) с динамични, базирани на API източници (цени, реклами, промоции). След това компонент за тоналност или перифразиране възпроизвежда стила, който бизнесът желае, така че не всички агенти да звучат еднакво. Логването и наблюдаемостта затварят цикъла и могат да захранват дообучаването и имплицитната обратна връзка.
В нейната диаграма на високо ниво входът на потребителя преминава през контекстуалното NLU, към източниците на данни и конфигурациите на поведението, през шаблон за създаване на контекст и до бърз LLM за перифразиране, който генерира отговора; той се съхранява в паметта на разговора за следващите реплики.
Оценявайте всеки компонент, после цялата система
За Palan оценката е най-важната част от продукционната работа, особено в бизнес-към-бизнес среда, където корпоративен клиент внедрява агента за собствените си потребители. Всичко започва с набор от данни за оценка: „Това е изключително важно, защото искате да можете да сравнявате цялата си система на всеки етап от итерацията.“ (16:16)
Тя препоръчва еталонен набор от релевантни въпроси и идеални отговори, оценяване с помощта на AI чрез по-голям модел като GPT-4 и семантично сходство на отговорите, което сравнява генерирания отговор с очаквания чрез косинусово сходство. Извличането изисква собствени показатели, като релевантност спрямо въпроса и пълнота на нужната информация. Онлайн оценката трябва да е свързана с бизнеса: „Например, води ли този агент реално до увеличение на продажбите?“ (18:23) Ангажираността и нагласата след разговора са допълнителни сигнали.
Red teaming: защитни механизми от двете страни
Запитана за red teaming, Palan описва защитни механизми срещу токсичност както за входа, така и за изхода, като отбелязва, че всеки бизнес определя забраненото съдържание по различен начин, затова са нужни хора или специално събиране на данни, за да бъде то отразено. При халюцинациите екипът ѝ установява, че подобряването на извлечения контекст и съкращаването на дължината му работят добре, заедно с филтриране на изхода за специфични за бизнеса стойности като цените. „Така че мисля, че е комбинация от двете, има изследване и разработка, но има и много отчитане на грешки и проактивна предпазливост.“ (20:57)
Гледайте лекцията
Building and evaluating robust conversational interfaces using LLMs, Janvi Palan, 22 минути: https://www.womentech.net/video/building-and-evaluating-robust-conversational-interfaces-using-llms
За лектора
Janvi Palan (по-рано в Samsung Research America) е старши ML инженер изследовател, работила в отдела за изкуствени хора на Samsung, където е ръководила компонента за реалистично поведение и генериране на разговори във виртуалните хора. Тя работи по AI и ML проекти с фокус върху LLM, търсене и извличане на информация и обича да превръща неясни, недефинирани проблеми в конкретни части, с които може да се работи.
Въпроси, на които отговаря лекцията
Защо готовите LLM не са достатъчни за агенти за продажби или търговия на дребно?
Какви компоненти са нужни на надеждния разговорен агент?
Как трябва да се оценяват разговорните системи с LLM?
Как да разберем кога агентът трябва да спре да задава въпроси?
Как екипите да прилагат red teaming към AI решения за токсичност и халюцинации?
Изготвено с AI въз основа на транскрипцията на лекцията. Предстои редакторски преглед.
Frameworks and ideas mentioned
Retrieval-augmented generation (RAG)
Semantic answer similarity
Dialogue state tracking
Convergence
Red teaming
Guardrails
Cite this talk
Janvi Palan. "Building and evaluating robust conversational interfaces using LLMs." WomenTech Network, 2024. https://www.womentech.net/video/building-and-evaluating-robust-conversational-interfaces-using-llms