How to Fine-Tune Azure OpenAI Models for Domain-Specific Use Cases?

sam 20 Reputation points
2025-01-29T09:45:29.7566667+00:00

I'm working on a chatbot using Azure OpenAI and need to fine-tune it for a specific industry (legal). I have a dataset of past conversations and documents. What's the best approach to fine-tune the model while keeping costs manageable? Should I use embeddings with Azure Cognitive Search instead, or is fine-tuning the better option? Any guidance on best practices would be appreciated!

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,271 questions
0 comments No comments
{count} votes

Accepted answer
  1. Azar 26,820 Reputation points MVP
    2025-01-29T10:12:19.26+00:00

    Hi there sam

    Thanks for using QandA platform

    start by evaluating your dataset of past conversations and documents. Fine-tuning can help the model understand industry-specific language, but it can also be costlier than using embeddings with Azure Cognitive Search. If your use case involves retrieving specific documents or answering domain-related queries, embeddings with Cognitive Search may be more cost-effective and scalable, as they allow the model to leverage pre-built knowledge without needing retraining. However, fine-tuning is better if you need a more customized, conversational response. To keep costs manageable, start by experimenting with embeddings and only fine-tune if you need further refinement in model responses.

    Kindly accept if this helps

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.