Openai Assistant API and vector rstorage does not use words from the storage correctly

There is a task involving the use of the Assistant API and vector storage.

A JSON file is uploaded to vector storage, containing word objects. The structure is approximately as follows:

{
  "car": {
    "id": 1,
    "forms": ["car", "cars"],
    "description": "Car's description",
    "example": "Example of usage"
  },

  "run": {
    "id": 2,
    "forms": ["run", "runs", "ran", "running"],
    "description": "Run's description",
    "example": "Example of usage"
  }
}

There are about 50 words in total. The goal is for the assistant to generate meaningful sentences using only these 50 words.

A simple instruction like: “Use only words from vector storage for your response. Other words are not allowed.” does not yield any results. The assistant continues to include words not found in the file and also constructs grammatically incorrect sentences.

Could you please suggest how to configure the assistant to meet this requirement?

So above, there are only 2 words, car and run (and their allowed forms: car, cars, run, runs, ran, running).


See also this very similar (but simpler) post from Reddit about challenges restricting output from AI. (I copy from r/ChatGPTPromptGenius sub.Reddit because adding links is not allowed.)

"
How might I get OpenAI/ChatGPT to observe a command like the following?

# Until I write “Stop restricting your words”, all words in your replies must being with one of these letters:

# {a, e , i, o, u, n,m,r,s,t}. Start now.

It constantly forgets after each successive text exchange.
"