Created complete working examples for all 4 vector databases with RAG adaptors: Weaviate Example: - Comprehensive README with hybrid search guide - 3 Python scripts (generate, upload, query) - Sample outputs and query results - Covers hybrid search, filtering, schema design Chroma Example: - Simple, local-first approach - In-memory and persistent storage options - Semantic search and metadata filtering - Comparison with Weaviate FAISS Example: - Facebook AI Similarity Search integration - OpenAI embeddings generation - Index building and persistence - Performance-focused for scale Qdrant Example: - Advanced filtering capabilities - Production-ready features - Complex query patterns - Rust-based performance Each example includes: - Detailed README with setup and troubleshooting - requirements.txt with dependencies - 3 working Python scripts - Sample outputs directory Total files: 20 (4 examples × 5 files each) Documentation: 4 comprehensive READMEs (~800 lines total) Phase 2 of optional enhancements complete. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
27 lines
641 B
Python
27 lines
641 B
Python
#!/usr/bin/env python3
|
|
"""Generate skill for FAISS (same as other examples)"""
|
|
import subprocess, sys
|
|
from pathlib import Path
|
|
|
|
print("=" * 60)
|
|
print("Step 1: Generating Skill for FAISS")
|
|
print("=" * 60)
|
|
|
|
# Scrape
|
|
subprocess.run([
|
|
"skill-seekers", "scrape",
|
|
"--config", "configs/flask.json",
|
|
"--max-pages", "20"
|
|
], check=True)
|
|
|
|
# Package
|
|
subprocess.run([
|
|
"skill-seekers", "package",
|
|
"output/flask",
|
|
"--target", "faiss"
|
|
], check=True)
|
|
|
|
output = Path("output/flask-faiss.json")
|
|
print(f"\n✅ Ready: {output} ({output.stat().st_size/1024:.1f} KB)")
|
|
print("Next: python 2_build_faiss_index.py (requires OPENAI_API_KEY)")
|