Skip to content

Latest commit

 

History

History

ollama

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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.