Archon Version
0.1.0
Bug Severity
🟠 High - Blocks important features
Bug Description
🐛 [Bug]: Hybrid Search Functions Reference Non-Existent Column cp.embedding
Bug Description
The hybrid search functions in complete_setup.sql and add_hybrid_search_tsvector.sql reference a column cp.embedding that doesn't exist in the actual table schema, causing all RAG queries to return empty results.
Severity
Critical - RAG functionality completely broken
Error Message
Hybrid document search failed: {'message': 'column cp.embedding does not exist', 'code': '42703', 'hint': None, 'details': None}
Root Cause
The table schema uses dimension-specific embedding columns:
embedding_384
embedding_768
embedding_1024
embedding_1536 (for OpenAI text-embedding-3-small)
embedding_3072
But the hybrid search functions query cp.embedding which doesn't exist.
Affected Files
migration/complete_setup.sql
migration/add_hybrid_search_tsvector.sql
Code Issues
In both functions hybrid_search_archon_crawled_pages and hybrid_search_archon_code_examples:
❌ Current (Broken):
1 - (cp.embedding <=> query_embedding) AS vector_sim
FROM archon_crawled_pages cp
WHERE cp.embedding IS NOT NULL
ORDER BY cp.embedding <=> query_embedding
Impact
- RAG search returns 0 results despite having crawled documents
- MCP tools return empty responses
- Knowledge base functionality completely broken
- Fresh installations fail immediately
Environment
- Archon version: Latest (as of 2025-09-16)
- Database: Supabase/PostgreSQL with pgvector
- Embedding model: OpenAI text-embedding-3-small (1536 dimensions)
Fix Required
Update both hybrid search functions to use embedding_1536 instead of embedding column references.
Priority
This should be fixed immediately as it breaks core functionality for all new installations.
Steps to Reproduce
Reproduction Steps
- Run
complete_setup.sql on fresh Supabase database
- Start Archon services
- Crawl any documentation
- Try RAG search - returns 0 results
- Check logs: see "column cp.embedding does not exist" errors
Expected Behavior
should see rag
Actual Behavior
Can see there is docs, but the mcp returns nothing.
Error Details (if any)
Affected Component
🔍 Knowledge Base / RAG
Browser & OS
chrome
Additional Context
No response
Service Status (check all that are working)
Archon Version
0.1.0
Bug Severity
🟠 High - Blocks important features
Bug Description
🐛 [Bug]: Hybrid Search Functions Reference Non-Existent Column
cp.embeddingBug Description
The hybrid search functions in
complete_setup.sqlandadd_hybrid_search_tsvector.sqlreference a columncp.embeddingthat doesn't exist in the actual table schema, causing all RAG queries to return empty results.Severity
Critical - RAG functionality completely broken
Error Message
Root Cause
The table schema uses dimension-specific embedding columns:
embedding_384embedding_768embedding_1024embedding_1536(for OpenAI text-embedding-3-small)embedding_3072But the hybrid search functions query
cp.embeddingwhich doesn't exist.Affected Files
migration/complete_setup.sqlmigration/add_hybrid_search_tsvector.sqlCode Issues
In both functions
hybrid_search_archon_crawled_pagesandhybrid_search_archon_code_examples:❌ Current (Broken):
Impact
Environment
Fix Required
Update both hybrid search functions to use
embedding_1536instead ofembeddingcolumn references.Priority
This should be fixed immediately as it breaks core functionality for all new installations.
Steps to Reproduce
Reproduction Steps
complete_setup.sqlon fresh Supabase databaseExpected Behavior
should see rag
Actual Behavior
Can see there is docs, but the mcp returns nothing.
Error Details (if any)
Affected Component
🔍 Knowledge Base / RAG
Browser & OS
chrome
Additional Context
No response
Service Status (check all that are working)