Image processing
This commit is contained in:
@@ -74,6 +74,7 @@ func (c *DoclingClient) Convert(filePath string) (string, error) {
|
|||||||
// Add options
|
// Add options
|
||||||
writer.WriteField("to_formats", "md")
|
writer.WriteField("to_formats", "md")
|
||||||
writer.WriteField("do_ocr", "true")
|
writer.WriteField("do_ocr", "true")
|
||||||
|
writer.WriteField("image_export_mode", "placeholder") // Avoid base64 blobs flooding LLM context
|
||||||
|
|
||||||
// For images, force OCR
|
// For images, force OCR
|
||||||
ext := strings.ToLower(filepath.Ext(filePath))
|
ext := strings.ToLower(filepath.Ext(filePath))
|
||||||
|
|||||||
Reference in New Issue
Block a user