File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,21 @@ model_id = "MY_MODEL_ID"
1313# Init a new client
1414mindee_client = ClientV2(api_key)
1515
16+ # Set inference options
17+ options = InferencePredictOptions(
18+ # ID of the model, required.
19+ model_id=model_id,
20+ # If set to `True`, will enable Retrieval-Augmented Generation.
21+ rag=False,
22+ )
23+
1624# Load a file from disk
1725input_doc = mindee_client.source_from_path(input_path)
18- options = InferencePredictOptions(model_id=model_id)
1926
20- # Parse the file.
21- response: InferenceResponse = mindee_client.enqueue_and_parse(input_doc, options)
27+ # Upload the file
28+ response: InferenceResponse = mindee_client.enqueue_and_parse(
29+ input_doc, options
30+ )
2231
2332# Print a brief summary of the parsed data
24- print(response.inference)
33+ print(response.inference)
You can’t perform that action at this time.
0 commit comments