yusufkaraaslan--skill_seekers
2cab53bc94
Test Vector Database Adaptors / Test MCP Vector DB Tools (push) Has been cancelled
Tests / Code Quality (Ruff & Mypy) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (macos-latest, 3.11) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (macos-latest, 3.12) (push) Has been cancelled
Tests / Tests (push) Has been cancelled
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers CLI - Convert documentation to AI skills dockerfile:Dockerfile name:skill-seekers]) (push) Has been cancelled
Docker Publish / Build and Push Docker Images (map[description:Skill Seekers MCP Server - 25 tools for AI assistants dockerfile:Dockerfile.mcp name:skill-seekers-mcp]) (push) Has been cancelled
Docker Publish / Test Docker Images (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.10) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / Fast Unit Tests (parallel) (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / Serial / Integration / E2E Tests (push) Has been cancelled
Tests / MCP Server Tests (push) Has been cancelled
Test Vector Database Adaptors / Test chroma Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test faiss Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test qdrant Adaptor (push) Has been cancelled
Test Vector Database Adaptors / Test weaviate Adaptor (push) Has been cancelled
LangChain RAG Pipeline Example
Complete example showing how to build a RAG (Retrieval-Augmented Generation) pipeline using Skill Seekers documents with LangChain.
What This Example Does
- Loads Skill Seekers-generated LangChain Documents
- Creates a persistent Chroma vector store
- Builds a RAG query engine with GPT-4
- Queries the documentation with natural language
Prerequisites
# Install dependencies
pip install langchain langchain-community langchain-openai chromadb openai
# Set API key
export OPENAI_API_KEY=sk-...
Generate Documents
First, generate LangChain documents using Skill Seekers:
# Option 1: Use preset config (e.g., React)
skill-seekers create --config configs/react.json
skill-seekers package output/react --target langchain
# Option 2: From GitHub repo
skill-seekers create --repo facebook/react --name react
skill-seekers package output/react --target langchain
# Output: output/react-langchain.json
Run the Example
cd examples/langchain-rag-pipeline
# Run the quickstart script
python quickstart.py
What You'll See
- Documents loaded from JSON file
- Vector store created with embeddings
- Example queries demonstrating RAG
- Interactive mode to ask your own questions
Example Output
============================================================
LANGCHAIN RAG PIPELINE QUICKSTART
============================================================
Step 1: Loading documents...
✅ Loaded 150 documents
Categories: {'overview', 'hooks', 'components', 'api'}
Step 2: Creating vector store...
✅ Vector store created at: ./chroma_db
Documents indexed: 150
Step 3: Creating QA chain...
✅ QA chain created
Step 4: Running example queries...
============================================================
QUERY: How do I use React hooks?
============================================================
ANSWER:
React hooks are functions that let you use state and lifecycle features
in functional components. The most common hooks are useState and useEffect...
SOURCES:
1. hooks (hooks.md)
Preview: # React Hooks\n\nHooks are a way to reuse stateful logic...
2. api (api_reference.md)
Preview: ## useState\n\nReturns a stateful value and a function...
Files in This Example
quickstart.py- Complete working exampleREADME.md- This filerequirements.txt- Python dependencies
Next Steps
- Customize - Modify the example for your use case
- Experiment - Try different vector stores (FAISS, Pinecone)
- Extend - Add conversational memory, filters, hybrid search
- Deploy - Build a production RAG application
Troubleshooting
"Documents not found"
- Make sure you've generated documents first
- Check the path in
quickstart.pymatches your output location
"OpenAI API key not found"
- Set environment variable:
export OPENAI_API_KEY=sk-...
"Module not found"
- Install dependencies:
pip install -r requirements.txt
Related Examples
Need help? GitHub Discussions