{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiaemd2cxwks74htqjifyx7g3kikahl5itzyaart7fdprmr2spqwi4",
    "uri": "at://did:plc:lk3jfj3zq4k4wxnk474axylu/app.bsky.feed.post/3mjrqust5juz2"
  },
  "path": "/t/including-citations-from-both-file-search-tool-and-web-search-tool-in-the-same-response/1379247#post_1",
  "publishedAt": "2026-04-18T14:24:18.000Z",
  "site": "https://community.openai.com",
  "textContent": "Hi,\nI’m trying to fix an issue in a RAG system with file_search that also uses `web_search` tool restricted to a set of allowed domains (using responses api).\n\nThe problem I’m facing is the following: when only one tool returns results, I can correctly parse the output and insert annotations. However, when both tools return results, I start seeing text truncation in the middle of sentences.\n\nHas anyone encountered this before or can share examples of how to handle this situation correctly?",
  "title": "Including citations from both file_search tool and web_search tool in the same response"
}