Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

ragie-rag

bởi hatim-be

Search & Research
292Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Execute Retrieval-Augmented Generation (RAG) using Ragie.ai.

Mô tả

Kỹ năng này làm gì

Connects an AI agent to Ragie.ai to perform retrieval-augmented generation. Handles the full lifecycle: ingesting files or URLs, polling until documents are ready, retrieving relevant chunks, and constructing grounded answers that cite source documents.

Ragie offloads chunking, embedding, vector indexing, and optional reranking so the agent only needs to handle ingestion triggers and prompt construction.

Khi nào nên dùng

  • Ask questions about uploaded policy or compliance documents
  • Ingest a PDF and query its contents without manual parsing
  • Check which documents are indexed and delete outdated ones
  • Answer support questions grounded in a product knowledge base
  • Retrieve context from partitioned tenant data in a multi-user system

Quy trình ví dụ

ĐẦU VÀO

User asks: 'What does our refund policy say about digital products?'

AGENT
  1. 1

    Run retrieve.py with the user question and --rerank flag

  2. 2

    Receive scored chunks with document_name and text fields

  3. 3

    Concatenate chunk text into a grounded system prompt

  4. 4

    Generate answer using only the retrieved context

  5. 5

    Cite the document_name for each factual claim in the response

ĐẦU RA

A grounded answer referencing the specific document, or an explicit statement that the information is not in the knowledge base

Yêu cầu

  • RAGIE_API_KEY environment variable
  • Ragie.ai account at https://app.ragie.ai

Cài đặt

clawhub install hatim-be/ragie-rag

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết