界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

agentic-rag

agentic-rag

【效率与协作】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.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

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.
  • Parser choice, PDF/media/Office/code parsing details, impossible/corrupt documents: docs-and-parsing.
  • Provider/model/settings tuning, local embeddings, Qdrant, prompts beyond API usage: settings-and-configuration.
  • Metadata clients, DOI/title hydration, OpenReview/Zotero/ClinicalTrials sources: metadata-and-sources.

Start with the bundled references

  1. Check verified signatures and return shapes in references/api-reference.md.
  2. Use self-contained recipes in references/workflows.md.
  3. Diagnose common runtime failures with references/troubleshooting.md.
  4. For a safe no-network smoke, run 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.
我的收藏