2.7 KiB
Knowledge Base Troubleshooting
Empty Search Results
Problem: roboco_kb_search() returns nothing
Causes:
- Content not indexed yet
- Query too specific
- Wrong index type filter
Solutions:
- Check what's indexed:
roboco_kb_stats() - Broaden query terms
- Remove index_types filter
- Trigger reindex:
roboco_reindex_all()
Empty RAG Response
Problem: roboco_rag_query() returns empty answer
Causes:
- No relevant context found
- LLM returned thinking tags only
- Query too vague
Solutions:
- Check KB has relevant content
- Rephrase query to be more specific
- Use
roboco_kb_search()first to verify content exists
Mentor Not Responding
Problem: roboco_ask_mentor() fails or empty
Causes:
- LLM timeout
- No relevant KB content
- Service temporarily unavailable
Solutions:
- Retry the query
- Check KB stats
- Use
roboco_kb_search()as fallback
Index Failed
Problem: roboco_kb_index_code() or roboco_kb_index_docs() fails
Causes:
- Invalid file patterns
- Files not accessible
- Embedding service down
Solutions:
- Verify file patterns match files
- Check file permissions
- Verify Ollama is running
Documentation Write Failed
Problem: roboco_docs_write() fails
Causes:
- Invalid doc_type (must be: api, qa, guide, readme, changelog, architecture, design)
- Missing required fields (task_id, filename, title, content)
- Agent not authorized (only documenter and cell_pm roles)
- Task not found
Solutions:
- Verify doc_type is valid
- Ensure all required fields provided
- Check your role has write permission
- Verify task_id exists
Duplicate Documentation Created
Problem: Created duplicate docs instead of updating existing
Causes:
- Content too different from existing doc (RAG similarity < 0.75)
- Doc in different team folder
- RAG search failed (but write still succeeded)
Solutions:
- Ensure content covers same topic as existing doc
- Check existing docs first:
roboco_docs_list(task_id) - Search KB:
roboco_kb_search("topic keywords") - Delete duplicate if needed:
roboco_docs_delete(path)
Note: roboco_docs_write() uses RAG to auto-deduplicate by content similarity (not just title). If content is semantically similar (>75% similarity), it updates instead of creating new.
Cannot Clear Index
Problem: "Not authorized to clear index"
Cause: Only PM/CEO can clear indexes
Solution: Ask PM or CEO to clear if needed
Proactive Context Empty
Problem: roboco_get_proactive_context() returns empty
Cause: No relevant context found for task
Solution: Manual search with roboco_kb_search() using task keywords