# Obtaining responses other than the trained response

**URL:** <https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688>\
**Category:** API\
**Tags:** api, text-davinci-003\
**Created:** [September 19, 2023, 12:41pm UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688 "2023-09-19T12:41:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh.balamurugan](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vignesh.balamurugan](https://community.openai.com/u/vignesh.balamurugan)\
**Post date:** [September 19, 2023, 12:41pm UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688/1 "2023-09-19T12:41:43Z")

</div>

We are using GPTSimpleVectorIndex to index the data and employing LLMPredictor along with GPTSimpleVectorIndex to retrieve responses from the indexed datasets. Our goal is to exclusively obtain the trained responses from the vector database using the OpenAI model ‘text-davinci-003’. To achieve this, we have included the instruction ‘Match and display only the trained response.’ However, we have encountered a situation where the model occasionally generates its own responses or continues to provide responses from the LLM, despite the added instructions. What steps can we take to resolve this issue, and what best practices should we follow to meet our requirements?

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [September 19, 2023, 12:56pm UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688/2 "2023-09-19T12:56:36Z")

</div>

Hi and welcome to the Developer Forum!

Do you mean GPTVectorStoreIndex from llama\_index?

You would probably be better asking this on llama\_index’s discord here [LlamaIndex 🦙(GPT Index)](https://discord.com/invite/dGcwcsnxhU)

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/719663_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [September 19, 2023, 1:25pm UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688/3 "2023-09-19T13:25:43Z")

</div>

> [@vignesh.balamurugan](#):
>
> using the OpenAI model ‘text-davinci-003’

`gpt-3.5-turbo-instruct` has just been previewed today as the replacement for text-davinci-003, with its own training and significantly-updated fine-tuning on instruction following. It might be worth dropping this in as the model name for your existing project, and besides decimating your costs (literally), seeing how it performs on the same tasks instructed.

On the prompting front: “when receiving an injected document with response format, you are only to answer based on the provided text, and not use pretrained AI knowledge to further infer an answer.” Or instead you might not phrase it as “you”, but instead prompt as “the AI will successfully only answer”

Although it seems like if the vector database return was sufficient, you could almost cut out the AI middleman.

---

<div class="post-metadata">

**Author:** ![Foxalabs](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/foxalabs/32/738355_2.png) [@Foxalabs](https://community.openai.com/u/Foxalabs)\
**Post date:** [September 20, 2023, 8:43am UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688/5 "2023-09-20T08:43:33Z")

</div>

I’ve joined their discord to let them know I’m going to start sending these types of queries to them, I’ll also see if I can make some time to learn their framework, looks promising.

---

<div class="post-metadata">

**Author:** ![vignesh.balamurugan](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vignesh.balamurugan](https://community.openai.com/u/vignesh.balamurugan)\
**Post date:** [September 20, 2023, 10:51am UTC](https://community.openai.com/t/obtaining-responses-other-than-the-trained-response/381688/6 "2023-09-20T10:51:41Z")

</div>

@Foxalabs  
Yes, we are using the Llama Index (formerly GPT Index).
