python -m fastapi dev app/main.py
This project is configured for Qwen 3 VL 8B Instruct Q4 through Ollama's OpenAI-compatible endpoint.
- Ensure Ollama is running.
- Pull the model in Ollama:
ollama pull qwen3-vl:8b-instruct-q4_K_M
- Set environment variables:
OLLAMA_API_BASE=http://127.0.0.1:11434/v1OLLAMA_MODEL=qwen3-vl:8b-instruct-q4_K_MOLLAMA_API_KEY=ollamaOLLAMA_TIMEOUT=120OLLAMA_TEMPERATURE=0
- Run the smoke test:
python examples/basic_usage.py
If Ollama or the model is unavailable, the pipeline falls back to mock mode and logs the exact reason.
This workflow processes each source folder under Benchmark_Data/Raw sequentially,
supports both images and PDF files, and writes one SQL file per source folder into Benchmark_Data/SQL.
Generated SQL schema:
service_ID(globally unique across all generated files)service_Nameservice_Origin(source folder name)service_Price
Run:
python examples/export_benchmark_sql.py --raw-root ./Benchmark_Data/Raw --sql-dir ./Benchmark_Data/SQL --start-id 1