Assistant never references some of the files it used

I’m creating an assistant with attachments:

const thread = await this.client.beta.threads.create({ headers });

await this.client.beta.threads.messages.create(thread.id, {
    role: "user",
    content: messages[0].content as string,
    attachments: [{file_id: file.id, tools: [{type: 'file_search'}]}],
}, { headers });

I also attached a vector storage to this assistant once.
It doesn’t matter if I ask to add a reference, add the file ID to the thread, or ask to find it in vector storage - it never shows this file as a reference in the output, but it looks like it is using it somehow to generate content.

It doesn’t matter if I add any other data to this file, explanations on how and when to use this template, etc.
File ‘email template.txt’.
"
Subject: [subject] Hey/Hello/Hi/etc., [client], \n Reference to needs/problem. \n Match problem with the solution \n Add a very light call to action, in a more friendly style, but not too informal. \n Cheers/Best/etc., \n [name]
"