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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- 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 callchatjust to read source text. chatvssession 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 listto find ids); otherwisechat.- One-shot vs multi-turn. Both
chatandsession askreturn adata.session_idin default JSON output. Pass--session <id>on the next call to continue the conversation. In NDJSON mode, read it frominit.
Safety / Gotchas
chat,search chunks,search docsneed a KB: pass--kb <id-or-name>, or setWEKNORA_KB_ID, orweknora linkthe 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 withweknora kb list/search kb. (search kb/search sessionsare tenant-wide and take no--kb.)chat/session askreturn one buffered JSON envelope with answer events by default. Add--referencefor indexed citations and--verbosefor execution detail; use--format ndjsonfor raw events or--format textfor 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 fromdata.session_id, or frominitunder--format ndjson). Re-attach to a stream withweknora session resume <session-id> --message <message-id>. search chunks --limitdefaults to 8 (tuned for an LLM context window); thesearch docs/kb/sessionslists default to 30. Tune retrieval with--vector-threshold/--keyword-threshold, or--no-vector/--no-keywordto 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.
댓글
- …
이 저장소의 다른 스킬
weknora-shared
36kWeKnora 명령줄 도구에 로그인하고 결과를 읽는 방법을 설명하며, 다른 WeKnora 작업 전에 보는 기본 안내서 역할을 합니다.
agent-browser
36k에이전트가 샌드박스 안의 실제 웹 브라우저로 페이지를 열고, 클릭하고, 양식을 채우고, 스크린샷을 찍고, 로그인이 필요한 사이트의 데이터까지 추출하도록 돕습니다.
비슷한 스킬
graincrawl
394k에이전트가 저장된 Granola 회의 메모와 기록을 검색하고, 최신 상태를 확인하며, 일정 기간 동안 개수를 세도록 돕습니다.
notcrawl
394k에이전트가 저장된 Notion 워크스페이스 사본을 검색하고, 페이지와 데이터베이스를 찾아보며, 페이지를 Markdown 파일로 내보내도록 돕습니다.
knowledge-entities
394k에이전트가 사람, 회사, 프로젝트가 무엇인지 식별한 뒤, Knowledge 볼트에 출처가 있는 프로필 페이지를 작성하도록 돕습니다.