Document analysis with API

I want to create system about document analysis. By use can upload them with many type document like doc, xls, pdf, csv etc. Then I want to pass that file user uploaded with API and promt (fixed) like ‘Can you help me analysis this document?’ Can you guy help me to show example or API document (I can’t find api document). Thx for support me mate :slight_smile:

try this Assistants API File Search Quickstart. please note the supported files.

1 Like

Note that “file search” is just that: documents are chunked into pieces, and then the AI performs a search on the chunked information in order to answer a question.

A whole-document view is not guaranteed. You can mess with the chunk size in tokens (default 800) and the number of results returned by vector store file search, which could return more cohesive pieces of a document.