Updating Prompts and Models
Guide to updating prompts and models for different LLM services in your voice bot.
In this guide, we’ll explore how to update prompts and models for different Language Model (LLM) services in your voice bot. We’ll cover two popular LLM services: OpenAI and Fireworks.
OpenAI
OpenAI offers powerful language models through their API.
Trying Out Models Online
- Visit the OpenAI Models page.
- Browse through the available models or use the search function to find specific types of models.
- Click on a model to see its capabilities.
- Note the model ID, which you’ll need for the next step.
Updating the Prompt and Model in voice_bot.py
To update the prompt and model for OpenAILLM, modify the system_prompt
and model
parameters as shown below:
For a complete and up-to-date list of available OpenAI models, please refer to the OpenAI Models page.
Best Practices for Updating Prompts and Models
- Be Specific: Clearly define the role and behavior you want the AI to adopt in your prompt.
- Keep it Concise: Avoid overly long prompts that might confuse the model.
- Test Thoroughly: After updating the prompt or model, test your bot to ensure it behaves as expected.
- Iterate: Refine your prompt based on the responses you get from the bot.
- Consider Model Capabilities: Different models have different strengths and limitations. Choose a model that best fits your use case.
- Stay Updated: LLM providers frequently release new models. Keep an eye on their documentation for the latest available models and their capabilities.
Remember, the effectiveness of your prompt and the choice of model can significantly impact the quality and relevance of your voice bot’s responses. Experiment with different combinations to find the one that best suits your use case.
Always refer to the official documentation of each LLM provider for the most up-to-date list of available models and their specific capabilities.
Was this page helpful?