examples/text_embedding_lancedb/README.md
This example embeds local markdown files, stores the chunks + embeddings in LanceDB, and provides a simple semantic-search query demo.
./lancedb_data/ directory - just copy to move itAll data is stored in the ./lancedb_data/ directory in your project folder. This directory is created automatically on first run.
To start fresh, simply delete the ./lancedb_data/ directory and re-run the indexing.
Install deps:
pip install -e .
Build/update the index (stores data in ./lancedb_data/). Either of the following works:
cocoindex update main
or
python main.py
Query:
python main.py query "what is self-attention?"