NeonN
Neon14mo ago
10 replies
verbal-lime

PGRag example does not work?

I'm trying the end-to-end RAG example: https://neon.tech/docs/extensions/pgrag#end-to-end-rag-example however i keep getting stuck at the part that uses rag_bge_small_en_v15.embedding_for_passage, a basic example that shows the error:

neondb=> SELECT rag_bge_small_en_v15.embedding_for_passage('This is just a test');                                                                                                                                                          ERROR:  [rag_bge_small_en_v15] Couldn't connect worker stream /tmp/.s.pgrag.rag_bge_small_en_v15.31673: No such file or directory (os error 2)
CONTEXT:  SQL function "embedding_for_passage" statement 1


I have confirmed that all of the initialization steps worked:

SET neon.allow_unstable_extensions='true';
create extension if not exists rag cascade;
create extension if not exists rag_bge_small_en_v15 cascade;
create extension if not exists rag_jina_reranker_v1_tiny_en cascade;


Even so, both embedding_for_query and embedding_for_passage fail with this same error.
Neon
What is RAG? What's included in a RAG pipeline? pgrag functions How to use pgrag The pgvector extension YouTube pgrag video demonstration pgrag GitHub repository The pgrag extension and its accompanyi...
The pgrag extension - Neon Docs
Was this page helpful?