Skip to content
Back to skills

Agentic Rag

ASecurity

"Use PaperQA's Python API for agentic and manual scientific RAG

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentspythonapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill agentic-rag --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agentic Rag?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agentic Rag
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-agentic-rag/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-agentic-rag)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agentic-rag
description: "Use PaperQA's Python API for agentic and manual scientific RAG
  over Docs, Doc, Text, ask, agent_query, evidence retrieval, answers,
  callbacks, and async boundaries."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# PaperQA Agentic RAG API

Use this sub-skill when the task is to run PaperQA from Python: build `Docs`, add `Doc`/`Text` objects or local files/texts, retrieve evidence with `Docs.aget_evidence`, generate answers with `Docs.aquery`, or use `ask`/`agent_query` with fake or ToolSelector agents.

## Route here for

- Manual `Docs` workflows: `aadd`, `aadd_file`, `aadd_url`, `aadd_texts`, `aget_evidence`, `aquery`.
- Agent workflows: `ask`, `agent_query`, `agent_type="fake"`, default `ToolSelector`, agent callbacks, answer/session/status outputs.
- No-network object smokes and pre-chunked text ingestion with deferred embeddings.
- Understanding `PQASession`, `Context`, `AnswerResponse`, citations, references, and source/context outputs.

## Route elsewhere

- CLI commands, index build/search/reuse, `pqa ask/search/index`, manifests: [cli-and-indexing](../cli-and-indexing/SKILL.md).
- Parser choice, PDF/media/Office/code parsing details, impossible/corrupt documents: [docs-and-parsing](../docs-and-parsing/SKILL.md).
- Provider/model/settings tuning, local embeddings, Qdrant, prompts beyond API usage: [settings-and-configuration](../settings-and-configuration/SKILL.md).
- Metadata clients, DOI/title hydration, OpenReview/Zotero/ClinicalTrials sources: [metadata-and-sources](../metadata-and-sources/SKILL.md).

## Start with the bundled references

1. Check verified signatures and return shapes in [references/api-reference.md](references/api-reference.md).
2. Use self-contained recipes in [references/workflows.md](references/workflows.md).
3. Diagnose common runtime failures with [references/troubleshooting.md](references/troubleshooting.md).
4. For a safe no-network smoke, run [scripts/smoke_docs_objects.py](scripts/smoke_docs_objects.py) with `--help`, then `smoke`.

## Operating cautions

- Prefer async APIs (`await docs.aadd_texts(...)`, `await docs.aquery(...)`) in notebooks, web servers, and other running event loops.
- Passing a citation and disabling metadata hydration avoids citation-inference LLM calls and metadata-provider network calls during manual file addition.
- `Settings(parsing={"defer_embedding": True})` defers embeddings at ingest; retrieval/answering can still call the configured embedding and LLM providers.
- The no-network smoke only proves installed object/API construction; it does not validate provider credentials, embeddings, parsing quality, or answer quality.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md11.9 KB
  • references/troubleshooting.md10.6 KB
  • references/workflows.md12.3 KB
  • scripts/smoke_docs_objects.py5.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.