Quickstart demo following the Cocoindex Quickstart guide. Super easy to get your RAG data pipeline running in ~50 lines of python 🚀.
⭐ Please give Cocoindex on Github a star to support us if you like our work. Thank you so much with a warm coconut hug 🥥🤗.
Video tutorial with detailed explanation: Cocoindex Quickstart Video Guide
-
Install Postgres if you don't have one.
-
Install CocoIndex and other dependencies:
pip install -U "cocoindex[embeddings]" "psycopg[binary,pool]" pgvector
- Make sure you have specify the database URL by environment variable:
export COCOINDEX_DATABASE_URL="postgresql://cocoindex:cocoindex@localhost:5432/cocoindex"
Update index:
cocoindex update --setup quickstart.py
Run query:
python quickstart.py