-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathcommit_message.txt
More file actions
28 lines (23 loc) · 1.26 KB
/
Copy pathcommit_message.txt
File metadata and controls
28 lines (23 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
feat: Add MCP server with PDF extraction and enhance hybrid method
Major enhancements:
- Add MCP (Model Context Protocol) server on port 8002 with 4 tools:
- describe_image_with_openai: OpenAI GPT-4 Vision image analysis
- describe_image_with_ollama: Local Ollama vision model analysis
- describe_image_with_claude: Anthropic Claude vision analysis
- extract_pdf_content: PDF content extraction with hybrid method support
- Implement hybrid PDF extraction method combining text_and_images + page_as_image:
- Preserves exact text while adding visual descriptions
- Optimized prompts to prevent LLM paraphrasing
- Parallel processing for better performance
- Separate output directories to prevent file collisions
- Infrastructure improvements:
- Add unified server management script (run_servers.sh)
- Update Docker configurations with poppler-utils for PDF processing
- Set OpenAI default model to gpt-4o across all endpoints
- Add comprehensive MCP setup documentation and examples
- Bug fixes:
- Fix filename collision in PDF extractors
- Resolve temporary directory cleanup issues
- Fix API key environment variable fallback
The hybrid PDF extraction method is now the recommended default, providing
the best balance of text accuracy and visual analysis.