A simple tool for semantic code search using gpt-oss and embeddings.
- Python (core logic)
- Go (optional CLI)
- Ollama (local LLM inference)
- FAISS (vector search)
- LangChain (embeddings)
- all-minilm:33b
- gpt-oss:20b
git clone https://github.com/harryfrzz/semantic-codebase-search.git
cd semantic-codebase-search# On Ubuntu/Debian
sudo apt update
sudo apt install -y golang-go
# Check Go version
go version# Make sure you have Python 3.11+
# Install all Python dependencies
pip install -r core_main/requirements.txt# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Start Ollama (in background)
ollama serve &
# Pull required models
ollama pull all-minilm:33m
ollama pull gpt-oss:20bpython3 core_main/entry_point.py "your search query here"# Build the CLI
go build -o semantic-search main_cli.go
# Run the CLI
./semantic-search
# Or
go run main_cli.go