mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
ae528aea7e
## Wave 1: Database Foundation - Add SQL schema for code_chunks, code_entities, entity_relationships - Use RuVector 768-dim embeddings (not pgvector) - Implement hybrid_code_search function (BM25 + vector) - Add pg_trgm extension for full-text search - Create setup scripts for Ollama/nomic-embed-text ## Wave 2: Multi-Language Parser - Implement TreeSitterParser with 5 language support - Add language-specific extractors (TS, Python, Go, Rust, JS) - Implement incremental parsing with tree caching - Create comprehensive test suite with fixtures ## Architecture Decision - Defer Apache AGE to v2 (see ADR-002) - Use SQL tables for graph relationships - Rationale: Lower complexity, team familiarity, sufficient for v1 Closes #159, Closes #160 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
59 lines
1.5 KiB
Bash
Executable File
59 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Setup script for nomic-embed-text embeddings via Ollama
|
|
|
|
set -e
|
|
|
|
echo "🔧 Setting up Ollama for Code Intelligence System"
|
|
echo ""
|
|
|
|
# Check if Ollama is installed
|
|
if ! command -v ollama &> /dev/null; then
|
|
echo "❌ Ollama not found."
|
|
echo ""
|
|
echo "Install Ollama from: https://ollama.ai"
|
|
echo " curl -fsSL https://ollama.ai/install.sh | sh"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Ollama is installed"
|
|
echo ""
|
|
|
|
# Check if Ollama is running
|
|
echo "Checking if Ollama service is running..."
|
|
if ! curl -s http://localhost:11434/api/tags > /dev/null 2>&1; then
|
|
echo "⚠️ Ollama service not detected. Starting Ollama..."
|
|
echo ""
|
|
echo "Run this in a separate terminal:"
|
|
echo " ollama serve"
|
|
echo ""
|
|
echo "Then run this script again."
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Ollama service is running"
|
|
echo ""
|
|
|
|
# Pull nomic-embed-text model
|
|
echo "📥 Pulling nomic-embed-text model..."
|
|
echo " This may take a few minutes..."
|
|
ollama pull nomic-embed-text
|
|
|
|
echo ""
|
|
|
|
# Verify model is available
|
|
if ollama list | grep -q "nomic-embed-text"; then
|
|
echo "✅ nomic-embed-text model ready!"
|
|
echo ""
|
|
echo "Model details:"
|
|
ollama show nomic-embed-text
|
|
echo ""
|
|
echo "Test embedding generation:"
|
|
echo ' curl http://localhost:11434/api/embeddings -d '"'"'{"model": "nomic-embed-text", "prompt": "Hello world"}'"'"''
|
|
echo ""
|
|
echo "🎉 Setup complete! Code Intelligence System is ready to use."
|
|
else
|
|
echo "❌ Failed to pull nomic-embed-text model"
|
|
exit 1
|
|
fi
|