원클릭으로
rag-query
When and how to query the LanceDB RAG knowledge base — proactive vs. passive, query methods, output format
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
When and how to query the LanceDB RAG knowledge base — proactive vs. passive, query methods, output format
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create and manage a Z-Library account for the Bianinho agent — registration, email verification via IMAP, and login workflow
Criar tasks visíveis no painel AionUI Scheduled Tasks — inserir diretamente na SQLite do AionUI
Debug protocol for AionUI macOS DMG white screen crashes — pattern, fixes, bundle analysis, and workflow.
AionUI — plataforma multi-agent cowork (frontend Electron). Arquitectura real, modos de acesso (Xvfb, web viewer, noVNC), e integração com Bianinho/Hermes. NUNCA inventar arquitectura sem verificar primeiro.
Diagnóstico e otimização de performance do MacBook — memória RAM, LaunchAgents, processos, bateria e swap. Workflow completo de 5 ações testado no MacBook Pro M1 Pro 16GB.
Organização de arquivos macOS — estruturar Desktop, Documents, Downloads, criar tarefas cron de limpeza automática.
| name | rag-query |
| description | When and how to query the LanceDB RAG knowledge base — proactive vs. passive, query methods, output format |
| triggers | ["user asks for information that could come from books/documents","user says \"me conta\", \"pesquisa\", \"busca\", \"o que você sabe\"","user asks \"consegue pesquisar no RAG?\"","any task requiring factual grounding from processed content","user asks to write copy, description, ad, post, email, or any promotional text about Method TEN → MUST consult RAG first","user asks to create content about psicotherapy, psychology, marketing, desenvolvimento_pessoal → consult RAG for factual grounding","user asks \"o que é\", \"quem pode\", \"como funciona\" about any topic in the knowledge base scope"] |
Respostas curtas e directas. Não expliques o que vais fazer — apenas faz. Se uma pergunta é simples ("consegue pesquisar no RAG?"), a resposta é "Consigo!" e ponto. Só entra em detalhe quando ele pedir.
Sempre consultar RAG antes de criar conteúdo sobre o Método TEN. Isso inclui: textos publicitários, descrições, posts, e-mails, landing pages, copies para redes sociais, ou qualquer material que mencione o método, seus pilares, estrutura ou formação.
O Álvaro foi claro: sem consultar o RAG, não escrever nada sobre o Método TEN.
Step 1 — Check table row counts:
~/.hermes/venv/bin/python -c "
import lancedb
db = lancedb.connect('/Users/alvarobiano/Library/Application Support/hermes/KnowledgeBase/knowledge_db')
resp = db.list_tables()
for t in resp.tables: # list_tables() → ListTablesResponse, .tables é lista de strings
print(f'{t}: {db.open_table(t).count_rows():,}')
"
Step 2 — Get table metadata (categories, sources):
~/.hermes/venv/bin/python -c "
import lancedb
db = lancedb.connect('/Users/alvarobiano/Library/Application Support/hermes/KnowledgeBase/knowledge_db')
for table_name in ['chunks', 'metodoten']:
tbl = db.open_table(table_name)
df = tbl.to_pandas()
print(f\"{table_name}: {len(df):,} chunks, {df['source'].nunique()} fontes, {df['category'].nunique()} categorias\")
"
Step 3 — For actual search queries, use ~/KnowledgeBase/hybrid_search.py which combines vector + BM25 search. The vector search requires an embedding (OpenAI via OpenRouter); BM25 provides keyword fallback.
⚠️ execute_code sandbox: does NOT have lancedb/pandas installed — always use ~/.hermes/venv/bin/python for RAG queries.
Tables available: api (5), chunks (72,001), default (0), metodoten (8,155), prd_collection (2)
Embedding: OpenAI text-embedding-3-small (1536 dim) via OpenRouter.
~/Library/Application Support/hermes/KnowledgeBase/knowledge_db/~/KnowledgeBase/ → above path~/KnowledgeBase/venv/ is Linux (broken symlinks on Mac) — always use ~/.hermes/venv/bin/pythonRAG covers: desenvolvimento_pessoal, marketing, comunicacao, financas, psicologia, default