Knowledge Base showing no Documents or Code Examples #734
Replies: 5 comments 1 reply
-
I am having the same issue after installing the stable branch as a first time user 4 days ago. Is there any update on this issue? Should I try main? |
Beta Was this translation helpful? Give feedback.
-
Hi @Magowntown, @j105rob I had the same issue and noticed in my archon server docker logs that there was a missing column in the database schema that I had deployed in Supabase. I was able to fix it by running the RESET_DB.sql and did a fresh complete_setup.sql to make it work. You also need to set up the openai key. |
Beta Was this translation helpful? Give feedback.
-
I am running into a similar issue. Seems like the system desperately needs some sort of configuration health check to test itself against known good outcomes to determine if there are configuration issues, otherwise it just repeatedly fails silently. I've had incorrect embedding keys, missing columns after upgrades and it is something you purposefully have to make an effort to double check. |
Beta Was this translation helpful? Give feedback.
-
I am not technically proficient enough to submit this for a pull request but I was able to get my issue resolved this morning and had Claude outline what the problem was and how it was addressed. Hopefully a better programmer can review this for broader use. Knowledge Base Search Fix - Multi-Dimensional EmbeddingsProblem: Knowledge Base Search Returning No ResultsDespite successfully crawling and embedding data with Google Gemini embeddings, RAG searches were returning empty results. The UI showed data existed (10,947 crawled pages), but queries returned 0 matches. Root CauseThe issue had three components:
Error Observed
Solution (Without Data Loss)1. Database MigrationRun export PGPASSWORD=postgres
psql -h 127.0.0.1 -p 54322 -U postgres -d postgres -f migration/complete_setup.sql Note: This is idempotent and preserves all existing data. Ignore "already exists" errors - they're expected. 2. Python Code UpdatesFile:
|
Approach | Data Preserved | Downtime | Re-crawl Required |
---|---|---|---|
Our Fix | ✅ Yes | Minimal (~30s) | ❌ No |
RESET_DB.sql | ❌ No | Significant | ✅ Yes |
Why This Happened
The Archon database schema supports multi-dimensional embeddings (added in commits 85bd6bc
and ee3af43
), but the Python service layer code wasn't updated to use the new multi-dimensional RPC functions. This fix bridges that gap.
Architecture Context
Archon's multi-dimensional embedding support works as follows:
- Database Storage: Data is stored in dimension-specific columns (
embedding_384
,embedding_768
,embedding_1536
, etc.) - RPC Functions: Multi-dimensional functions (
*_multi
) dynamically select the correct column based on theembedding_dimension
parameter - Legacy Functions: Single-dimension functions still exist for backward compatibility but default to 1536D only
The Python code was still calling the legacy functions, which caused dimension mismatches when using non-1536D embeddings.
Supported Embedding Models
This fix enables proper support for:
- OpenAI:
text-embedding-3-small
(1536D),text-embedding-3-large
(3072D) - Google Gemini:
gemini-embedding-001
(768D default, or 1536D/3072D withoutput_dimensionality
) - Ollama:
nomic-embed-text
(768D),mxbai-embed-large
(1024D) - Custom models: Any dimension in [384, 768, 1024, 1536, 3072]
Configuration
Set your embedding dimension in .env
:
# Match your model's output dimension
EMBEDDING_DIMENSIONS=1536 # For Gemini with output_dimensionality=1536
# OR
EMBEDDING_DIMENSIONS=768 # For Gemini default or nomic-embed-text
Files Modified
python/src/server/services/search/base_search_strategy.py
python/src/server/services/search/hybrid_search_strategy.py
Related Issues
- GitHub Discussion: "Knowledge base search returning no results"
- Related to commits:
85bd6bc
(Fix multi-dimensional vector hybrid search functions),ee3af43
(Ollama Integration)
Credits
Solution developed through analysis of Archon's multi-dimensional embedding architecture and database schema inspection.
Beta Was this translation helpful? Give feedback.
-
Had the same problem and the above solutions didn't work for me. What worked was to simply clone the "main" branch rather than the "stable" branch which is the default in the readme file (or you could just switch to the main branch) and it worked. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Lately I have been trying out Archon more and it's knowledge base crawler/scraper.
However any time I use this, including the default Pydantic one that came with it, or even a PDF, no Documents or Code Examples ever show up.
I am also getting the warning error when on the Projects page and trying to choose the "Docs" tab:
Project Documents Under Migration
Editing and uploading project documents is currently disabled while we migrate to a new storage system. Please backup your existing project documents elsewhere as they will be lost when the migration is complete.
Note: This only affects project-specific documents. Your knowledge base documents are safe and unaffected.
Do i need to re-download the repo or something?
Beta Was this translation helpful? Give feedback.
All reactions