Python Developer for Backend Task

Posted yesterday

Worldwide

Summary

need a single, production-quality retrieval-augmented (RAG) API endpoint built in Python. This is a one-time task, not an ongoing role. You will deliver one FastAPI service that ingests a set of documents into a Postgres + pgvector store, then answers questions over them through a single /chat endpoint backed by an LLM. What you will build 1. Ingestion script - Load a folder of provided documents (PDF and .txt). - Chunk the text, generate embeddings, and upsert them into PostgreSQL using pgvector. - Idempotent: re-running should not create duplicates. 2. /chat endpoint (FastAPI) - Runs cosine similarity search over pgvector to retrieve the top-k chunks. - Passes the retrieved context to an LLM via LangChain and returns a structured JSON response: the answer plus the source chunks used. 3. Basics done right - Pydantic request/response models. - Config via environment variables (DB URL, model/API key). - A README with setup and run instructions. - A docker-compose that spins up Postgres + pgvector so I can run it locally in one command. Tech stack (required) - Python 3.11+, FastAPI - PostgreSQL + pgvector (HNSW or IVFFlat index) - LangChain for the retrieval + LLM call - Embeddings: OpenAI text-embedding-3-small (or an open model such as bge-m3, your choice) - Docker / docker-compose Acceptance criteria - I can clone, run docker-compose up, run the ingestion script, and hit /chat successfully within 15 minutes using the README. - /chat returns a relevant answer plus the source chunks for a question about the sample documents. - No hardcoded secrets; keys read from env. To apply - Share one relevant RAG or FastAPI sample you have built. - Confirm the scope and $150 fixed price. - Give a realistic delivery time (I expect 2 to 4 days).

  • $150.00

    Fixed-price
  • Intermediate
    Experience Level
  • Remote Job
  • One-time project
    Project Type
Skills and Expertise
Mandatory skills
FastAPI
Nice-to-have skills
PostgreSQL
PostgreSQL Programming
Activity on this job
  • Proposals:50+
  • Interviewing:
    0
  • Invites sent:
    0
  • Unanswered invites:
    0
About the client
Member since Jun 30, 2020
  • United States
    Dublin4:39 PM
  • $13K total spent
    69 hires, 2 active
  • 345 hours
  • Engineering & Architecture
    Individual client

Explore similar jobs on Upwork

Application InstallationFixed-price‐ Posted 3 weeks ago
Android
Smartphone
Tablet
iPhone
Software Development
Spring Boot
Product Development
Software
Java
Angular Material
AWS Application

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers 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

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo