Loading...
Loading...
Compare original and translation side by side
undefinedundefinedundefinedundefinedError: Index not found. Run 'grepai watch' first.undefinedError: Index not found. Run 'grepai watch' first.undefined
---
---Error: Cannot connect to Ollama at http://localhost:11434ollama serveembedder:
endpoint: http://localhost:11434 # Verify thiscurl http://localhost:11434/api/tagsError: Cannot connect to Ollama at http://localhost:11434ollama serveembedder:
endpoint: http://localhost:11434 # Verify thiscurl http://localhost:11434/api/tagsError: Model 'nomic-embed-text' not foundundefinedError: Model 'nomic-embed-text' not foundundefined
---
---grepai statusgrepai status
2. Verify files are being indexed:
```bash
2. 验证文件是否被索引:
```bash
3. Try broader query:
```bash
grepai search "function" # Very broad test
3. 尝试更宽泛的查询:
```bash
grepai search "function" # Very broad testgrepai-search-tipsundefinedgrepai-search-tipsundefined
2. Configure boosting to penalize tests:
```yaml
search:
boost:
enabled: true
penalties:
- pattern: /tests/
factor: 0.5grepai status
2. 配置权重调整以降低测试文件的优先级:
```yaml
search:
boost:
enabled: true
penalties:
- pattern: /tests/
factor: 0.5grepai statusgrepai watch --statusgrepai watch --stop
grepai watch --backgroundrm .grepai/index.gob
grepai watchgrepai watch --statusgrepai watch --stop
grepai watch --backgroundrm .grepai/index.gob
grepai watchError: Config file not found at .grepai/config.yamlgrepai initError: Config file not found at .grepai/config.yamlgrepai initignore:
- node_modules
- vendor
- dist
- build
- "*.min.js"embedder:
model: nomic-embed-text # Smaller, fasterembedder:
provider: openai
model: text-embedding-3-small
parallelism: 8ignore:
- node_modules
- vendor
- dist
- build
- "*.min.js"embedder:
model: nomic-embed-text # Smaller, fasterembedder:
provider: openai
model: text-embedding-3-small
parallelism: 8ls -lh .grepai/index.gobstore:
backend: qdrantgrepai search "query" --limit 5ls -lh .grepai/index.gobstore:
backend: qdrantgrepai search "query" --limit 5grepai trace callerstrace:
enabled_languages:
- .go
- .js
- .tsrm .grepai/symbols.gob
grepai watchgrepai trace callerstrace:
enabled_languages:
- .go
- .js
- .tsrm .grepai/symbols.gob
grepai watchgrepai mcp-servewhich grepaiundefinedgrepai mcp-servewhich grepaiundefined
---
---embedder:
model: nomic-embed-text # Smallerembedder:
parallelism: 2embedder:
model: nomic-embed-text # Smallerembedder:
parallelism: 2Error: 401 Unauthorized - Invalid API keyecho $OPENAI_API_KEYexport OPENAI_API_KEY="sk-..."embedder:
api_key: ${OPENAI_API_KEY} # Uses env varError: 401 Unauthorized - Invalid API keyecho $OPENAI_API_KEYexport OPENAI_API_KEY="sk-..."embedder:
api_key: ${OPENAI_API_KEY} # Uses env var#!/bin/bash
echo "=== GrepAI Diagnostics ==="
echo -e "\n1. Version:"
grepai version
echo -e "\n2. Status:"
grepai status
echo -e "\n3. Config:"
cat .grepai/config.yaml 2>/dev/null || echo "No config found"
echo -e "\n4. Index files:"
ls -la .grepai/ 2>/dev/null || echo "No .grepai directory"
echo -e "\n5. Ollama (if using):"
curl -s http://localhost:11434/api/tags | head -5 || echo "Ollama not responding"
echo -e "\n6. Daemon:"
grepai watch --status 2>/dev/null || echo "Daemon not running"#!/bin/bash
echo "=== GrepAI Diagnostics ==="
echo -e "\
1. Version:"
grepai version
echo -e "\
2. Status:"
grepai status
echo -e "\
3. Config:"
cat .grepai/config.yaml 2>/dev/null || echo "No config found"
echo -e "\
4. Index files:"
ls -la .grepai/ 2>/dev/null || echo "No .grepai directory"
echo -e "\
5. Ollama (if using):"
curl -s http://localhost:11434/api/tags | head -5 || echo "Ollama not responding"
echo -e "\
6. Daemon:"
grepai watch --status 2>/dev/null || echo "Daemon not running"undefinedundefinedundefinedundefinedgrepai versiongrepai version🔍 GrepAI Diagnostics
Version: 0.24.0
Project: /path/to/project
✅ Config: Found (.grepai/config.yaml)
✅ Index: 245 files, 1,234 chunks
✅ Embedder: Ollama (connected)
✅ Daemon: Running (PID 12345)
❌ Issue: [Description if any]
Recommended actions:
1. [Action item]
2. [Action item]🔍 GrepAI Diagnostics
Version: 0.24.0
Project: /path/to/project
✅ Config: Found (.grepai/config.yaml)
✅ Index: 245 files, 1,234 chunks
✅ Embedder: Ollama (connected)
✅ Daemon: Running (PID 12345)
❌ Issue: [Description if any]
Recommended actions:
1. [Action item]
2. [Action item]