본문으로 건너뛰기
Skillpedia
데이터베이스18k · #10719

vector-db

하는 일

이 스킬은 임베딩 선택, 청크 크기, 인덱스를 포함해 의미로 콘텐츠를 찾는 벡터 검색 시스템을 설계하는 방법을 안내합니다. AI 어시스턴트를 위한 의미 검색이나 검색 기능을 만드는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓정확한 키워드가 아니라 의미로 콘텐츠를 찾는 검색을 원할 때.
  • ✓AI 어시스턴트가 문서에서 답할 수 있도록 검색 기능을 만들고 있을 때.
  • ✓임베딩을 위한 인덱스 유형이나 거리 측정 방식을 골라야 할 때.

스킬 링크

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/vector-db/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“고객 센터 기사들에 대한 의미 검색을 설정해서, AI 어시스턴트가 각 질문에 맞는 기사를 찾도록 도와주세요.”

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

작동 방식

스킬은 임베딩 모델 선택, 문서를 적절한 크기의 청크로 나누기, 거리 측정과 인덱스 선택, 벡터 검색과 키워드 검색의 결합을 설명합니다.

기술 내용 (원본 SKILL.md)

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

Vector Database Expert

A retrieval systems specialist with deep expertise in embedding models, vector indexing algorithms, and Retrieval-Augmented Generation (RAG) architectures. This skill provides guidance for designing and operating vector search systems that power semantic search, recommendation engines, and LLM knowledge augmentation, covering embedding selection, indexing strategies, chunking, hybrid search, and production deployment.

Key Principles

  • Choose the embedding model based on your domain and retrieval task; general-purpose models work well for broad use cases, but domain-specific fine-tuned embeddings significantly improve recall for specialized content
  • Select the distance metric that matches your embedding model's training objective: cosine similarity for normalized embeddings, dot product for magnitude-aware comparisons, and L2 (Euclidean) for spatial distance
  • Chunk documents thoughtfully; chunk size directly impacts retrieval quality because too-large chunks dilute relevance while too-small chunks lose context
  • Index choice determines the trade-off between search speed, memory usage, and recall accuracy; understand HNSW, IVF, and flat index characteristics before choosing
  • Combine dense vector search with sparse keyword search (hybrid retrieval) for production systems; neither approach alone handles all query types optimally

Techniques

  • Generate embeddings with models like OpenAI text-embedding-3-small, Cohere embed-v3, or open-source sentence-transformers (all-MiniLM-L6-v2, BGE, E5) depending on cost and quality requirements
  • Configure HNSW indexes with appropriate M (connections per node, typically 16-64) and efConstruction (build quality, typically 100-200) parameters; higher values improve recall at the cost of memory and build time
  • Implement chunking strategies: fixed-size with overlap (e.g., 512 tokens with 50-token overlap), semantic chunking at paragraph or section boundaries, or recursive splitting that respects document structure
  • Build hybrid search by executing both vector similarity and BM25/keyword queries, then combining results with Reciprocal Rank Fusion (RRF) or a learned reranker like Cohere Rerank or cross-encoder models
  • Filter results using metadata (date ranges, categories, access permissions) at query time; most vector databases support pre-filtering or post-filtering with different performance characteristics
  • Design the RAG pipeline: query embedding, retrieval (top-k candidates), optional reranking, context assembly with source citations, and LLM generation with the retrieved context in the prompt

Common Patterns

  • Parent-Child Retrieval: Embed small chunks for precise matching but return the larger parent document or section as context to the LLM, preserving surrounding information
  • Multi-vector Representation: Generate multiple embeddings per document (title, summary, full text) and search across all representations to improve recall for different query styles
  • Contextual Retrieval: Prepend a document-level summary or metadata to each chunk before embedding so that the vector captures both local content and global context
  • Evaluation Pipeline: Measure retrieval quality with precision@k, recall@k, and NDCG using a labeled relevance dataset; track these metrics as embedding models and chunking strategies change

Pitfalls to Avoid

  • Do not use a single embedding model for all use cases without benchmarking; embedding quality varies dramatically across domains, languages, and query types
  • Do not index documents without preprocessing: remove boilerplate, normalize whitespace, and handle tables and code blocks as structured content rather than raw text
  • Do not skip reranking in production RAG systems; initial vector retrieval optimizes for speed, but a cross-encoder reranker significantly improves precision in the final results
  • Do not store only vectors without the original text and metadata; you need the source content for LLM context assembly, debugging, and auditing retrieval results
자주 묻는 질문

임베딩이란 무엇인가요?

텍스트의 의미를 나타내는 숫자 목록이며, 비슷한 의미는 가까이 놓입니다.

청크 크기는 왜 중요한가요?

청크가 너무 크면 관련성이 희석되고, 너무 작으면 답에 필요한 맥락을 잃기 때문입니다.

벡터 검색과 키워드 검색을 왜 결합하나요?

어느 한 방식만으로는 모든 종류의 질의를 잘 처리하지 못하므로, 하이브리드 검색이 실제 운영에서 더 잘 작동한다고 스킬은 말합니다.

상세 정보

작성자의 원본 설명

Vector database expert for embeddings, similarity search, RAG patterns, and indexing strategies

repo: RightNow-AI/openfang

인기도

GitHub 스타
18k
순위
#10719
라이선스
Apache-2.0
업데이트
2026. 7. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬