Skip to content

Amirali/ocr - #2

Merged
aircode610 merged 3 commits into
mainfrom
amirali/ocr
Jun 6, 2026
Merged

aircode610 merged 3 commits into
mainfrom
amirali/ocr

Conversation

@aircode610

Copy link
Copy Markdown
Owner

No description provided.

aircode610 and others added 3 commits June 6, 2026 13:22
- Uses langgraph.prebuilt.create_react_agent (handles state + routing)
- Tavily search via langchain-tavily (TavilySearch)
- Qwen qwen3.7-plus model via ChatOpenAI (OpenAI-compatible)
- Parses structured JSON output into AgentEvents
- Tested on TK health insurance letter — correct classification and risk

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
OCR (5.8s) + ReAct Agent (69.7s) = 75.5s total
Traces visible at https://eu.smith.langchain.com → project 'klar-hackathon'

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
- Use langchain.agents.create_agent (replaces deprecated create_react_agent)
- 3-tier deadline extraction: letter → calculate → search as last resort
- Max 2 searches per letter with focused search guidelines
- Tavily max_results reduced to 3

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant