Need Python developer to build custom AI agent
Worldwide
We tried building our AI support workflow in n8n but hit a wall. We need someone who can build it properly in Python instead. What we need: a backend service that handles customer queries, decides whether to route them to Claude or OpenAI depending on the type of question, pulls relevant answers from our internal documentation (RAG-style, we have ~200 docs), and returns a response with a confidence score. If confidence is low, it should trigger an escalation instead of guessing. This needs to be real, maintainable code — not a no-code workflow. We specifically want: FastAPI backend with a clean API layer Custom routing logic between Claude API and OpenAI API based on query type (not just a static rule — something that can be tuned over time) RAG pipeline using a vector database (open to Pinecone, Weaviate, or your recommendation) Confidence scoring tied to retrieval quality, not just LLM self-reported certainty Proper error handling and retry logic — this needs to run reliably, not just work in a demo Basic logging/analytics so we can see what's routed where and why We tried the no-code route first and it fell apart once we needed branching logic and reliable error handling, so please don't pitch us an n8n/Make solution — we specifically need custom Python. What we're looking for: Strong Python backend experience (FastAPI or similar) Real production experience with Claude API and/or OpenAI API, not just tutorials RAG/vector search experience Comfortable explaining architecture decisions clearly — we're technical enough to follow, but want reasoning, not just a stack list Deliverables: Working FastAPI backend with documented endpoints RAG pipeline connected to our documents Model routing logic with basic logging Short handover call + documentation Please mention specific production systems you've built with this stack when applying — not just tools you know.
$800.00
Fixed-price- ExpertExperience Level
- Remote Job
- One-time projectProject Type
Skills and Expertise
Activity on this job
- Proposals:20 to 50
- Last viewed by client:11 minutes ago
- Interviewing:0
- Invites sent:0
- Unanswered invites:0
About the client
- UkraineKyiv12:45 AM
Explore similar jobs on Upwork
How it works
Create your free profileHighlight your skills and experience, show your portfolio, and set your ideal pay rate.
Work the way you wantApply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
Get paid securelyFrom contract to payment, we help you work safely and get paid securely.
About Upwork
- 4.9/5(Average rating of clients by professionals)
- G2 2021#1 freelance platform
- 49,000+Signed contract every week
- $2.3BFreelancers earned on Upwork in 2020
Find the best freelance jobs
Growing your career is as easy as creating a free profile and finding work like this that fits your skills.
Trusted by