You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Create a vector store with the file and wait for it to be processed.
37
+
// If you do not specify a vector store, create_message will create a vector store with a default expiration policy of seven days after they were last active
File Search augments the Agent with knowledge from outside its model, such as proprietary product information or documents provided by your users.
4
+
5
+
To access your files, the file search tool uses the vector store object. Upload your files and create a vector store to contain them. Once the vector store is created, you should poll its status until all files are out of the in_progress state to ensure that all content has finished processing. The SDK provides helpers for uploading and polling.
6
+
7
+
### File Sources
8
+
- Uploading local files
9
+
-[Coming Soon] Azure Blob Storage
10
+
11
+
### Basic Agent Setup <br>
12
+
The File Search tool has the same functionality as AOAI Assistants. Microsoft managed search and storage resources are used.
13
+
- Uploaded files get stored in Microsoft managed storage
14
+
- A vector store is created using a Microsoft managed search resource
15
+
16
+
### Standard Agent Setup
17
+
The File Search tool uses the Azure AI Search and Azure Blob Storage resources you connected during agent setup.
18
+
- Uploaded files get stored in your connected Azure Blob Storage account
19
+
- Vector stores get created using your connected Azure AI Seach resource
20
+
<br> </br>
21
+
22
+
For both Agent setups, OpenAI handles the entire ingestion process, including automatically parsing and chunking documents, generating and storing embeddings, and utilizing both vector and keyword searches to retrieve relevant content for user queries.
23
+
24
+
There is no difference in the code between the two setups; the only variation is in where your files and created vector stores are stored.
25
+
26
+
## Examples
27
+
28
+
Run the code samples below and view the output.
29
+
30
+
>[!NOTE]
31
+
> Be sure that you've [installed the SDK](../../quickstart.md#install-the-sdk-package) for your language.
0 commit comments