Hey I have been working on Vapi for some time now....
# support
s
Please provide me some Best practices of Vapi, for the voice, the stability of the voice, temperature and the knowledge base.
a
Regarding temperature, you can use a value between 0 and 0.3. For the voice stick, please use the default settings. For the knowledge base, I would appreciate more information about your specific use case.
s
Ok so we are using information for medical services and preparation instructions. Last time I used it, it wasnt so accurate and the assistant was also stopping in between. 3c899935-6dc4-4163-80d5-30a2573ff567. You can check this call where the caller asks about bowel prep solutions and it says 1 2 3 4 5 but they were mentioned in the prompt. there's one more -f8ec2d9e-0f63-4fa0-91dc-2c7b60e88dee. In the end, it just stopped in between when it was reading the knowledge base. Also just so you know, I first uploaded the files in the files section, then I created the knowledge base with the file Ids. And I updated the assistant with the knowledge base id. https://cdn.discordapp.com/attachments/1342824967833653268/1342889339885191168/image.png?ex=67bb46a8&is=67b9f528&hm=ddb0abdf483c43ad18059666735f103208a58b14b049169fb78a2d1721e04d05& https://cdn.discordapp.com/attachments/1342824967833653268/1342889340417871882/image.png?ex=67bb46a8&is=67b9f528&hm=1eae7ec3afd4c0fae8abb9cbc04328da35b744de59bfbc828529465b422c212b&
s
3c899935-6dc4-4163-80d5-30a2573ff567
messages-input-to-LLM
šŸ”µ 07:58:21:917 AzureOpenAIRequest. Messages: [ { "role": "system", "content": "[Introduction]\n\nYou are Aaiva, the Voice AI assist..." }, { "role": "assistant", "content": "Thank you for calling United Medical Center Temecula office. This is Eva. How may I assist you today?" }, { "role": "user", "content": "Hey. Uh, what are services you provided," }, { "role": "assistant", "content": "At the United Medical Temecula office, we offer the following procedures. 1, colonoscopy, 2, capsule endoscopy or CapsoCam. 3, upper endoscopy or EGD. 4, FibroScan, 5, SIBO breath test. 6, fructose malabsorption breath." }, { "role": "user", "content": "Uh, I only No. I want to know wanna know more instructions about colonoscopy." }, { "role": "assistant", "content": "Certainly, a colonoscopy is a procedure that allows the doctor to examine the lining of your large intestine, colon, for abnormalities. Here are some important instructions related to the colonoscopy. Procedure. Pre procedure instructions. 1, your doctor will prescribe a bowel prep solution such as SouPrep, Sutab, Souflav, Clenvoo, Clenpiq, MoviePrep, TriLite, or Golly Tele. Follow the instructions provided with the solution to ensure your colon is properly cleaned. It's crucial to follow the dietary restrictions and prep instructions exactly as given to ensure a successful procedure. 2, is you may be advised to follow" }, {"role": "user", "content": "The"}, { "role": "assistant", "content": "post procedure instructions." }, { "role": "user", "content": "Okay. Uh, I want to I want to know uh, wait, I wanna know more about the ball trip solutions you have." } ]
ouput-by-LLM
šŸ”µ 07:58:22:386 Voice Input Formatted: "Certainly. Here are the Bowel Prep Solutions often prescribed by doctors for Colonoscopy Procedures at United Medical Temecula Office:. 1.", Original: "Certainly. Here are the Bowel Prep Solutions often prescribed by doctors for Colonoscopy Procedures at United Medical Temecula Office: 1." šŸ”µ 07:58:22:521 Voice Input Formatted: ". 2. 3. 4.", Original: "**Suprep** 2. Sutab 3. Suflave 4." šŸ”µ 07:58:22:672 Voice Input Formatted: ". 5. 6. 7.", Original: "**Plenvu** 5. Clenpiq 6. MoviPrep 7." šŸ”µ 07:58:22:820 Voice Input Formatted: ". Each of these solutions has specific instructions on how to use them,", Original: "**Trilyte or Golytely** Each of these solutions has specific instructions on how to use them," ....
@Shrey basically your model generated contains ******** in this format and any value b/w ** is removed. You can toggle this off for your assistant voice formatting plan using API. Here's an draft version of the doc explaining the complete process from llm output to input to voice provider https://docs.google.com/document/d/1ZXeru4FxS1hEgltecipGl4Edvn4VC3whZdW8iob5dmU/edit?tab=t.0#heading=h.bk3gtu4bnekp
@Shrey let me know if you have more doubts.
s
@Shubham Bajaj could you please rephrase the model generated contains in this format and ** part. I didn't get it.
a
LLM generated outputs goes to formatting before passing to voice provider, during this process if any of LLM generated output or content contains special character
*
then any content inside it is removed.
Input: this \*\*/is\\\* okie Output: this okie