fixing typos file search (#1715)

This commit is contained in:
pap-openai 2025-03-12 15:45:35 +00:00 committed by GitHub
parent 2152f15511
commit 3accc160d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,13 +5,13 @@
"id": "2dfbaf53-32de-4b8c-bd1c-d27371a87f81", "id": "2dfbaf53-32de-4b8c-bd1c-d27371a87f81",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# Using File Search tool in the Responses API\n", "# Using file search tool in the Responses API\n",
"\n", "\n",
"RAG can be overwhelming, searching amongst PDF file shouldn't be complicated. One of the most adopted options as of now is parsing your PDF, defining your chunking strategies, uploading those chunks to a storage provider, running embeddings on those chunks of texts and storing those embeddings in a vector database. That's only for the set-up, we're not yet at the step retrieving content in our LLM workflow which would also require multiple steps.\n", "RAG can be overwhelming, searching amongst PDF file shouldn't be complicated. One of the most adopted options as of now is parsing your PDF, defining your chunking strategies, uploading those chunks to a storage provider, running embeddings on those chunks of texts and storing those embeddings in a vector database. That's only for the set-up, we're not yet at the step retrieving content in our LLM workflow which would also require multiple steps.\n",
"\n", "\n",
"This is where File Search — a hosted tool you can use in the Response API — comes in. It allows you to search your knowledge base and generate an answer based on the retrieved content. In this cookbook, we'll upload those PDFs to a vector store on OpenAI and use File Search to fetch additional context from this vector store to answer the questions we generated in the first step. Then, we'll initially create a small set of questions based on PDFs extracted from OpenAI's blog ([openai.com/news](https://openai.com/news)).\n", "This is where file search — a hosted tool you can use in the Responses API — comes in. It allows you to search your knowledge base and generate an answer based on the retrieved content. In this cookbook, we'll upload those PDFs to a vector store on OpenAI and use file search to fetch additional context from this vector store to answer the questions we generated in the first step. Then, we'll initially create a small set of questions based on PDFs extracted from OpenAI's blog ([openai.com/news](https://openai.com/news)).\n",
"\n", "\n",
"_File Search was previously available on the Assistants API, it is now available on a stateless API that is Responses and benefits from new features (e.g: metadata filtering)_\n", "_File search was previously available on the Assistants API, it is now available on a stateless API that is Responses and benefits from new features (e.g: metadata filtering)_\n",
"\n", "\n",
"### Set up" "### Set up"
] ]
@ -213,7 +213,7 @@
"\n", "\n",
"### Integrating search results with LLM in a single API call\n", "### Integrating search results with LLM in a single API call\n",
"\n", "\n",
"However instead of querying the vector store and then passing the data into the Response or Chat Completion API call, an even more convenient way to use this search results in an LLM query would be to plug use file_search tool as part of OpenAI Responses API." "However instead of querying the vector store and then passing the data into the Responses or Chat Completion API call, an even more convenient way to use this search results in an LLM query would be to plug use file_search tool as part of OpenAI Responses API."
] ]
}, },
{ {
@ -660,7 +660,7 @@
"- Understand how chunks of texts are retrieved, ranked and used as part of the Response API\n", "- Understand how chunks of texts are retrieved, ranked and used as part of the Response API\n",
"- Measure accuracy, precision, retrieval, MRR and MAP on the dataset of evaluations previously generated\n", "- Measure accuracy, precision, retrieval, MRR and MAP on the dataset of evaluations previously generated\n",
"\n", "\n",
"By using File search with Responses, you can simplify RAG architecture and leverage this in a single API call using the new Responses API. File storage, embeddings, & retrieval all integrated in one tool!\n" "By using file search with Responses, you can simplify RAG architecture and leverage this in a single API call using the new Responses API. File storage, embeddings, & retrieval all integrated in one tool!\n"
] ]
} }
], ],