AGENT SKILL

rag-vector-db

Retrieval-Augmented Generation implementation using vector databases, embedding models, and query routines.

License 许可
MIT
最近更新
2026-06-05
Stars
★ 1
Forks
0

01 前言 Front Matter

name
rag-vector-db
license
MIT license
metadata
{ "skill-author": "Lord1Egypt" }
description
Retrieval-Augmented Generation implementation using vector databases, embedding models, and query routines.
allowed-tools
Read Write Edit Bash

03 SKILL.md 正文

Rag Vector Db

Overview

RAG enhances LLM outputs by retrieving relevant documents from an external vector index based on query embeddings.

When to Use This Skill

Use to build custom Q&A pipelines over proprietary documentation files or PDF sets.

Quick Start (with runnable code examples)

# Simple cosine similarity matching using numpy (conceptual vector lookup)
import numpy as np

def cosine_similarity(v1, v2):
    return np.dot(v1, v2) / (np.linalg.norm(v1) * np.linalg.norm(v2))

v_query = np.array([0.1, 0.2, 0.9])
v_doc = np.array([0.11, 0.19, 0.88])
print("Match Score:", cosine_similarity(v_query, v_doc))

Advanced Usage

Integrate ChromaDB/Pinecone clients, slice texts using recursive chunking algorithms, and build reranking layers.

Key References

Dependencies

  • numpy>=1.20.0

04 同仓库更多 Skills

Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

zarr-python

Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.

★ 1
Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

what-if-oracle

Run structured What-If scenario analysis with multi-branch possibility exploration. Use this skill when the user asks speculative questions like "what if...", "what would happen if...", "what are the possibilities", "explore scenarios", "scenario analysis", "possibility space", "what could go wrong", "best case / worst case", "risk analysis", "contingency planning", "strategic options", or any question about uncertain futures. Also trigger when the user faces a fork-in-the-road decision, wants to stress-test an idea, or needs to think through consequences before committing.

★ 1
Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

websockets-network

Asynchronous bi-directional WebSocket client and server configuration in Python.

★ 1
Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

vite-frontend

Initializing, structuring, and bundling client-side Single-Page Applications (SPA) with Vite.

★ 1
Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

venue-templates

Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.

★ 1
Lord1Egypt
Lord1Egypt/gemini-agent-toolkit

vaex

Use this skill for processing and analyzing large tabular datasets (billions of rows) that exceed available RAM. Vaex excels at out-of-core DataFrame operations, lazy evaluation, fast aggregations, efficient visualization of big data, and machine learning on large datasets. Apply when users need to work with large CSV/HDF5/Arrow/Parquet files, perform fast statistics on massive datasets, create visualizations of big data, or build ML pipelines that do not fit in memory.

★ 1