examples/text_embedding_qdrant/README.md
This example embeds local markdown files, stores the chunks + embeddings in Qdrant, and provides a simple semantic-search query demo.
docker run -d -p 6334:6334 -p 6333:6333 qdrant/qdrant
Install deps:
pip install -e .
Build/update the index (writes points into Qdrant). Pick one of the two modes:
Catch-up run — scan sources, sync changes, exit:
cocoindex update main
Live run — catch up, then keep watching for file changes (the source declares live=True in main.py):
cocoindex update -L main
Query:
python main.py "what is self-attention?"
You can also open the Qdrant dashboard at http://localhost:6333/dashboard.
Copy .env.example to .env and fill in the blanks — it is loaded automatically when you run the example:
cp .env.example .env
Stores vectors in Qdrant (defaults to a local container at http://localhost:6334/), so no required secrets — the file documents the optional QDRANT_URL override.