Nebulaos rag
Skill starya-nebulaos/nebulaos-claude-skills/skills/nebulaos-rag
Gerenciar RAG (Retrieval-Augmented Generation) no NebulaOSFrom its SKILL.md
npx -y skills add starya-nebulaos/nebulaos-claude-skills --skill nebulaos-ragAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.5 KB, as published. Nobody here has run it
NebulaOS RAG
Use este guia para configurar e usar conexões RAG para busca semântica.
Conceitos
- Conexão RAG: Configuração de um vector store (OpenAI, Azure)
- Busca Semântica: Encontrar documentos por similaridade
- Embeddings: Representação vetorial do texto
Gerenciar Conexões
Listar
nebulaos rag connections list
nebulaos rag connections list -o json
Criar
# OpenAI
nebulaos rag connections create \
--name minha-base \
--type openai \
--api-key sk-... \
--model text-embedding-3-small
# Azure
nebulaos rag connections create \
--name azure-embeddings \
--type azure \
--base-url https://my-resource.openai.azure.com \
--api-key abc123 \
--model text-embedding-ada-002 \
--dimensions 1536
Ver/Testar
nebulaos rag connections get <connection-id>
nebulaos rag connections test <connection-id>
Atualizar/Deletar
nebulaos rag connections update <id> --model text-embedding-3-large
nebulaos rag connections delete <id> -y
Busca Semântica
# Básica
nebulaos rag search \
--connection <connection-id> \
--query "como configurar autenticação?"
# Com limite
nebulaos rag search \
--connection <connection-id> \
--query "processo de onboarding" \
--limit 5
# JSON
nebulaos rag search \
--connection <connection-id> \
--query "política de privacidade" \
-o json
Usar no SDK
import { RagOpenAISkill } from "@nebulaos/rag-openai-skill";
const ragSkill = new RagOpenAISkill({
connectionId: "<connection-id>",
maxResults: 5
});
const agent = new Agent({
skills: [ragSkill],
// Tool de busca adicionada automaticamente
});
Fluxo de Setup
# 1. Criar
nebulaos rag connections create --name docs --type openai --api-key sk-...
# 2. Testar
nebulaos rag connections test <connection-id>
# 3. Buscar
nebulaos rag search --connection <id> --query "teste"
# 4. Usar no código com RagOpenAISkill
Troubleshooting
Conexão falha
nebulaos rag connections get <id> -o json
# Verificar API key e base-url
Sem resultados
nebulaos rag search --connection <id> --query "*" --limit 1
Latência alta
# Usar modelo mais leve
# text-embedding-3-small é mais rápido que text-embedding-3-large
Modelos de Embedding
- text-embedding-3-small: Rápido, baixo custo
- text-embedding-3-large: Melhor qualidade, maior custo
- text-embedding-ada-002: Legado