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