Azure OpenAI: DataSource & Few Shot Prompting

matteo 25 Reputation points
2023-08-22T06:33:25.02+00:00

Hi, I have connected my cognitive search in Azure OpenAI playground to search my own data. As a next step, I wanted to add few shot examples to add some functionality to my bot. However, this is not possible, as I receive the error message "Few shot examples are not used when source data has been added. Any previous examples have been cleared. Once data is removed, then examples can be added."

Is there a way to do it anyways or how should I proceed? Since function calling is not available in my region, how can I add functionality?

Thanks in advance.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,080 questions
{count} vote

Accepted answer
  1. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2023-08-22T12:16:30.2966667+00:00

    @matteo I believe you are referring to the studio screen where this message is seen when a data source is added and adding the example button is greyed out. I don't think there is a way to define this from the studio functionality with BYOD now, however I have seen a previous example from Github repo that uses Azure OpenAI endpoint along with search index and langchain where examples are defined and then queried from own data i.e the search index. Here is the link to the notebook that showcases this functionality through API. You could try to use this to define examples and using your own data? Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.