The legacy option uses the following packages:
Note: This is the fastest option, but its accuracy may vary depending on the file types.
The follolwing sample will upload the SampleFile.pdf document to the {name} RAG Assistant using the legacy provider.
curl -X POST "$BASE_URL/v1/search/profile/{name}/document" \
-H "Authorization: Bearer $SAIA_PROJECT_APITOKEN" \
-H "Content-Type: multipart/form-data" \
-F 'file=@"/C:/temp/SampleFile.pdf"' \
-F 'provider="legacy"'