# voice pdf qa

> Orchestrate a voice-driven RAG pipeline to upload PDFs and retrieve spoken answers via FastAPI and Qdrant.

voice pdf qa is a free AI agent skill on Agensi by Salma Sehar, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Salma Sehar](https://www.agensi.io/creators/salma-sehar)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/voice-pdf-qa
- Tags: ai-agents, fastapi, qdrant, rag, docker, whisper-asr

## About this skill

Maintaining a voice-driven RAG pipeline is difficult when you have to orchestrate speech-to-text, vector embeddings, and text-to-speech across multiple containers. This skill provides the operational logic to manage a FastAPI and Docker-based service that lets users query PDF documents using audio recordings.

### What it does
- **Document ingestion** uploads PDFs and manages background processing for page-by-page text extraction.
- **OCR fallback** handles scanned documents automatically when standard text extraction fails.
- **Voice querying** processes audio files to transcribe questions, retrieve document context, and generate spoken responses.
- **Status monitoring** polls asynchronous jobs to track document indexing and answer generation states.
- **Client orchestration** uses a dedicated Python CLI to interact with the API, handling headers and file transfers.

### How it works
1. Use the `health` command to verify the FastAPI, Qdrant, and Redis services are online and reachable.
2. Upload a PDF using the `upload` command and monitor the status until it moves from `pending` to `ready`.
3. Provide an audio file of a spoken question to the `ask` command, specifying the document ID.
4. Retrieve the `answer_text` and the generated `.wav` audio file once the background worker completes the task.

### Frameworks & tools
Built for a stack comprising FastAPI, Postgres, Qdrant vector database, Redis, and Celery. It utilizes faster-whisper for transcription, Groq LLaMA for inference, and Coqui TTS for speech synthesis, all managed via Docker Compose.

### Why this beats prompting it yourself
Generic prompts cannot manage the asynchronous lifecycle of multi-stage audio processing or handle the specific HTTP 409 conflict errors that occur when querying unindexed documents. This skill understands the specific sequence of health checks and polling required to keep a voice RAG pipeline functional.

### Use cases
- Query complex technical manuals using voice commands while working hands-free.
- Build and debug a local voice-to-document pipeline for private data.
- Automate the testing of speech-to-text accuracy against specific PDF datasets.
- Troubleshoot stuck document processing jobs or OCR failures in a RAG stack.

### Known limitations
Requires Docker, approximately 8GB of RAM, and a valid Groq API key for the LLM component. Performance on scanned PDFs is significantly slower due to OCR processing requirements.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the voice pdf qa skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking an LLM to read a PDF?

This skill manages the complex orchestration between speech-to-text, vector search, and text-to-speech, handling asynchronous task states and error recovery that standard prompts cannot manage.

### What are the specific hardware and software requirements to run this pipeline?

It is designed for environments utilizing FastAPI and Docker Compose, requiring a system with at least 8GB of RAM and a Groq API key for inference.

### Can this skill process scanned documents or images, or does it only work with text-based PDFs?

Yes, the skill includes built-in OCR fallback logic to extract text from images and scanned files when standard PDF parsing fails.

### What exactly is included in the purchase of the 'voice pdf qa' skill?

You receive the complete operational logic for the FastAPI service, the dedicated Python CLI for client-side orchestration, and the Docker configuration files for local deployment.

### How does the skill handle large PDF files that take a long time to index?

The skill uses a status-polling mechanism to track background jobs, ensuring you only attempt to query documents once the indexing and embedding phases are fully complete.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
