rag

Load FAISS indexes and retrieve content via dot-path queries.

215|34|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/sjtu-sai-agents/EvoMaster --skill rag-sjtu-sai-agents
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag
Source: https://github.com/sjtu-sai-agents/EvoMaster/tree/main/evomaster/skills/rag
Command: npx skills add https://github.com/sjtu-sai-agents/EvoMaster --skill rag-sjtu-sai-agents

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, torch, transformers, faiss-cpu, and includes scripts (resource) components.

What problem does it solve?

Rag enables knowledge-grounded AI by retrieving relevant information from local FAISS indexes and external knowledge sources to ground reasoning and improve accuracy.

Core Features & Use Cases

  • Semantic search and document Q&A using FAISS and transformer embeddings.
  • Knowledge extraction and content retrieval via dot-path queries from task data.
  • Use Case: build a document QA assistant that answers questions using indexed documents and related metadata.

Quick Start

Use the rag skill to perform a semantic search against a local vector store by pointing vec_dir to evomaster/skills/rag/MLE_DATABASE/node_vectorstore/draft (or improve) and providing a query like 'What is the main topic?' to retrieve relevant content and knowledge.

Frequently Asked Questions about rag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform semantic search against a local FAISS vector store?

Semantic search against a local FAISS vector store is performed by pointing the skill to your vector directory and providing a query. It uses transformer embeddings to retrieve relevant content and related metadata.

How does retrieval-augmented generation ground reasoning with external documents?

Retrieval-augmented generation grounds reasoning by loading FAISS indexes and optional nodes_data to fetch relevant external documents. This contextual knowledge is exposed via dot-path queries to improve accuracy.

Do I need transformer embeddings to build a document Q&A assistant?

Yes, transformer embeddings are required to build a document Q&A assistant. The skill uses them alongside FAISS vector stores to map queries to indexed documents and extract knowledge-grounded answers.

Can I extract content from task data using dot-path queries?

Yes, you can extract content from task data using dot-path queries. The skill exposes retrieved knowledge and metadata flexibly, allowing targeted access to specific information within the loaded nodes_data.

What is the best way to retrieve knowledge from indexed documents?

The best way to retrieve knowledge from indexed documents is using FAISS and transformer embeddings for semantic search. This approach quickly fetches relevant content by matching query intent with vectorized document data.

Are there limitations when using FAISS for knowledge-grounded tasks?

FAISS for knowledge-grounded tasks requires a pre-built local vector index and depends on CPU-based processing. It does not natively generate answers but retrieves relevant context for downstream reasoning.