Data storage with Postgres
RAG Me Up supports Postgres as hybrid retrieval database with both pgvector and pg_search installed using ParadeDB's Postgres image. You can use their image directly or run the one in RAGMeUp's Github in the postgres folder.
- In the postgres folder is a Dockerfile, build it using
docker build -t ragmeup-pgvector-pgsearch . - Run the container using
docker run --name ragmeup-pgvector-pgsearch -e POSTGRES_USER=langchain -e POSTGRES_PASSWORD=langchain -e POSTGRES_DB=langchain -p 6024:5432 -d ragmeup-pgvector-pgsearch - Once in use, our custom PostgresBM25Retriever will automatically create the right indexes for you.