Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 587 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 587 Bytes

Ollama + Vector Search Example

This example demonstrates how to use libSQL vector search with a local database and Ollama.

Install Dependencies

npm i

Install Ollama

Download Ollama and install it.

Running

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.