Features: - Fixed Ollama configuration for native (localhost) instead of Docker - Increased LLM timeout from 30s to 120s for quality answers - Implemented KB slug system for clean MCP endpoint URLs - Added multiple knowledge base support with type metadata - Integrated MCP server with FastAPI (port 8051) - React frontend with KB management UI - PostgreSQL + pgvector for vector embeddings Performance: - 33-56% faster than Docker setup with native Ollama - Direct Metal GPU acceleration on Apple Silicon - Optimized RAG engine with caching - ~40s response time for comprehensive answers Documentation: - Complete native setup guide (README_NATIVE_SETUP.md) - Performance benchmarking and comparison - MCP endpoint documentation - Slug implementation details - Decision rationale for native vs Docker Cleanup: - Removed old Streamlit setup files - Consolidated setup scripts to single setup_native.sh - Consolidated service management scripts - Removed test artifacts and old analysis docs - Ready for sharing with team 🚀 Production-ready for local team deployment 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
1 KiB
Bash
Executable file
39 lines
1 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${BLUE}=================================================="
|
|
echo "🛑 Stopping Code-Forge Services"
|
|
echo "=================================================${NC}"
|
|
echo ""
|
|
|
|
# Function to kill processes on a port
|
|
kill_port() {
|
|
local port=$1
|
|
local name=$2
|
|
|
|
if lsof -i :$port > /dev/null 2>&1; then
|
|
echo -e "${YELLOW}Stopping $name (port $port)...${NC}"
|
|
lsof -i :$port | grep -v COMMAND | awk '{print $2}' | xargs kill -9 2>/dev/null || true
|
|
echo -e " ${GREEN}✓ $name stopped${NC}"
|
|
else
|
|
echo -e " ${GREEN}✓ $name not running${NC}"
|
|
fi
|
|
}
|
|
|
|
# Kill services
|
|
kill_port 8051 "MCP Server"
|
|
kill_port 5173 "Frontend"
|
|
|
|
echo ""
|
|
echo -e "${GREEN}✅ All services stopped${NC}"
|
|
echo ""
|
|
echo -e "${YELLOW}Note:${NC} PostgreSQL and Ollama are not stopped"
|
|
echo " (they may be used by other applications)"
|
|
echo ""
|
|
echo -e "${YELLOW}To restart:${NC} ./start_all_services.sh"
|