When semantic_similarity_match() doesn't return any context docs (eg. the db is empty), then RAG doesn't work (/rag/process) and a json string is displayed as chat answer in frontend.
Suggested fix
Instead, RAG should answer that no context docs have been found. Maybe also add a warning if db is empty.
Description
When semantic_similarity_match() doesn't return any context docs (eg. the db is empty), then RAG doesn't work (/rag/process) and a json string is displayed as chat answer in frontend.
Suggested fix
Instead, RAG should answer that no context docs have been found. Maybe also add a warning if db is empty.