Python OpenAI Doc Q&A Assistant
Budget / Salary$250–750
TypeFreelance project
LocationRemote
Posted1 hour ago
I need a small Python application that lets a user upload a document, ask natural-language questions about it, and instantly receive a short, direct answer pulled from the content. The core will rely on the OpenAI API for embeddings or chat completion, whichever proves most efficient, and any lightweight framework you prefer (Streamlit, Flask, or FastAPI are all fine).
Key workflow
1. User uploads a document. It should handle at least PDFs, and if it’s easy to extend to Word or plain text that would be a welcome plus.
2. The file is parsed, chunked, and embedded.
3. When the user types a question, the system retrieves the most relevant chunks, feeds them to OpenAI, and returns a concise answer on screen—no extra commentary, just the direct response.
Deliverables
• Clean, well-commented Python code with a requirements.txt or Poetry file
• Simple front end (browser or Streamlit) showing upload, question box, and answer field
• Instructions for obtaining an OpenAI key and running everything locally
Acceptance criteria
• A question about any portion of the uploaded file returns an accurate, one-sentence answer in under five seconds on a typical laptop.
• If the answer cannot be found, the assistant replies honestly that the information isn’t present.
If you’ve built similar retrieval-augmented generation tools and can turn this around quickly, I’d love to see a brief note on your approach and any relevant repo examples.
Key workflow
1. User uploads a document. It should handle at least PDFs, and if it’s easy to extend to Word or plain text that would be a welcome plus.
2. The file is parsed, chunked, and embedded.
3. When the user types a question, the system retrieves the most relevant chunks, feeds them to OpenAI, and returns a concise answer on screen—no extra commentary, just the direct response.
Deliverables
• Clean, well-commented Python code with a requirements.txt or Poetry file
• Simple front end (browser or Streamlit) showing upload, question box, and answer field
• Instructions for obtaining an OpenAI key and running everything locally
Acceptance criteria
• A question about any portion of the uploaded file returns an accurate, one-sentence answer in under five seconds on a typical laptop.
• If the answer cannot be found, the assistant replies honestly that the information isn’t present.
If you’ve built similar retrieval-augmented generation tools and can turn this around quickly, I’d love to see a brief note on your approach and any relevant repo examples.
Apply on Freelancer →
Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.