본문으로 건너뛰기
Skillpedia
리서치36k · #7585

weknora-rag-search

하는 일

이 스킬은 WeKnora 명령줄 도구를 통해 WeKnora 지식 베이스에 질문하도록 돕습니다. WeKnora 시스템에 문서를 보관하고 검색하거나 질문하려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓WeKnora 지식 베이스에 근거한 서술형 답변을 원할 때.
  • ✓직접 검토할 수 있도록 지식 베이스의 원문 단락을 원할 때.
  • ✓제목으로 특정 문서나 과거 세션을 찾아야 하는 경우.

스킬 링크

https://github.com/Tencent/WeKnora/blob/main/cli/skills/weknora-rag-search/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Tencent/WeKnora/blob/main/cli/skills/weknora-rag-search/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“회사 지식 베이스에서 환불 정책에 관한 단락을 찾아 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 결정 표를 써서 알맞은 명령을 고릅니다. 일부 명령은 출처 인용과 함께 답을 작성하고, 다른 명령은 원문 단락이나 문서 및 세션 목록을 돌려줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

WeKnora — retrieval & RAG queries

REQUIRED BACKGROUND: read the weknora-shared skill first (auth, --kb resolution, the JSON envelope, exit codes, streaming/NDJSON output).

WeKnora gives you several ways to "ask about a knowledge base." Picking the wrong one wastes turns or returns the wrong shape. Use the decision table.

Pick the command by your goal

Your goal Command LLM synthesis? Returns
Natural-language answer grounded in a KB chat "<q>" --kb <kb> yes bounded answer events; --reference adds citations; --verbose adds execution detail
Answer via a custom agent (its own KB scope, tools, web search) session ask --agent <id> "<q>" yes (+ tools) bounded answer events; --reference adds citations; --verbose adds execution detail
Raw context chunks to reason over yourself (no answer) search chunks "<q>" --kb <kb> no ranked chunk list
Which documents match a keyword (title/filename) search docs "<q>" --kb <kb> no document list
Find a knowledge base by name search kb "<q>" no KB list
Find a past session by title search sessions "<q>" no session list

The three decisions that matter

  1. Answer vs raw context. Want a written answer → chat / session ask. Want chunks to feed into your own reasoning (e.g. you'll synthesize across sources) → search chunks. Don't call chat just to read source text.
  2. chat vs session ask. chat = plain KB RAG Q&A. session ask --agent <id> = invoke a configured custom agent (it may scope its own KBs, call tools, do web search). If the user set up an agent for this, prefer it (weknora agent list to find ids); otherwise chat.
  3. One-shot vs multi-turn. Both chat and session ask return a data.session_id in default JSON output. Pass --session <id> on the next call to continue the conversation. In NDJSON mode, read it from init.

Safety / Gotchas

  • chat, search chunks, search docs need a KB: pass --kb <id-or-name>, or set WEKNORA_KB_ID, or weknora link the directory (resolved in that order). If none resolves it's exit 1 (local.kb_id_required); a bad name is exit 1 (local.kb_not_found). Resolve names with weknora kb list / search kb. (search kb / search sessions are tenant-wide and take no --kb.)
  • chat / session ask return one buffered JSON envelope with answer events by default. Add --reference for indexed citations and --verbose for execution detail; use --format ndjson for raw events or --format text for the live human-readable projection.
  • A stalled stream is not stopped by Ctrl-C (that just drops your local connection; the server keeps generating + billing). Stop it server-side: weknora session stop <session-id> --message <message-id> (session_id from data.session_id, or from init under --format ndjson). Re-attach to a stream with weknora session resume <session-id> --message <message-id>.
  • search chunks --limit defaults to 8 (tuned for an LLM context window); the search docs/kb/sessions lists default to 30. Tune retrieval with --vector-threshold / --keyword-threshold, or --no-vector/--no-keyword to disable a channel. Details: references/search-chunks.md.

Quick examples

# raw retrieval to reason over
weknora search chunks "retry backoff policy" --kb engineering --limit 12

# grounded answer (human transcript)
weknora chat "How do we handle retries?" --kb engineering --format text

# continue the conversation (session id from data.session_id above)
weknora chat "And the max attempts?" --kb engineering --session sess_abc

# answer via a custom agent
weknora session ask --agent ag_123 "Summarize this quarter's incidents"
자주 묻는 질문

항상 답을 작성하나요?

아닙니다. 원문 조각 검색은 작성된 답 없이 단락만 돌려줍니다.

인용 옵션은 무엇을 하나요?

답의 바탕이 된 자료에 대한 참고 문헌을 덧붙입니다.

WeKnora CLI를 먼저 설정해야 하나요?

네. 공유 기본 안내서에 로그인과 설정 방법이 나와 있으며, 이 검색 전에 필요합니다.

상세 정보

작성자의 원본 설명

Use when retrieving from or asking questions against a WeKnora knowledge base via the `weknora` CLI — and especially when unsure whether to use `chat`, `session ask`, or `search chunks` for a given goal.

repo: Tencent/WeKnora

인기도

GitHub 스타
36k
순위
#7585
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬