---
type: email
from: Sergey Lyapustin <notifications@github.com>
subject: [openai/openai-agents-python] Add support Query rewriting in the

 FileSearchTool (Issue #1728)
received: 2026-03-06 07:30:04
date_header: Fri, 12 Sep 2025 05:27:07 -0700
priority: normal
status: awaiting_approval
uid: 30264
---

## Email Content

**From:** Sergey Lyapustin <notifications@github.com>
**Subject:** [openai/openai-agents-python] Add support Query rewriting in the

 FileSearchTool (Issue #1728)
**Date:** Fri, 12 Sep 2025 05:27:07 -0700

### Body (preview)

slyapustin created an issue (openai/openai-agents-python#1728)



### Describe the feature

It will be nice to have `Query rewriting` feature available when using `FileSearchTool`:



so it will be configured as part of the tool definition:

```python

        tools=[

            FileSearchTool(

                max_num_results=10,

                vector_store_ids=[VECTOR_STORE_ID],

                include_search_results=False,

                rewrite_query=True,

            )

        ],

```



https://platform.openai.com/docs/guides/retrieval#query-rewriting



> Certain query styles yield better results, so we've provided a setting to automatically rewrite your queries for optimal performance. Enable this feature by setting rewrite_query=true when performing a search





-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/issues/1728

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/issues/1728@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
