This example demonstrates how to use libSQL vector search with a local database and Ollama.
npm i
Download Ollama and install it.
Make sure Ollama is running with the model mistral
:
ollama run mistral
Execute the example:
node index.mjs
This will setup a local SQLite database, generate embeddings using Ollama, and insert the data with embeddings, and then query the results using the vector similarity search function.