Skip to content

haolamnm/jneurite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

J-Neurite

A simple vector database indexer with Ollama written in Java.

Features

  • Index and search text documents using vector embeddings.
  • Use nomic-embed-text model from Ollama for generating embeddings.
  • Use only Java standard libraries and HTTP client.

Requirements

  • Java 21 or higher.
  • Ollama server running locally.
  • Internet connection to download the model.

Setup

  1. Ensure you have Java 21 or higher installed.

  2. Install Ollama by following the instructions at Ollama Installation Guide.

  3. Basics stuff with Ollama:

# Can change the model to other ones if you want
# Currently the source code is hardcoded to use nomic-embed-text
ollama pull nomic-embed-text

# Make sure you have GPU acceleration enabled
ollama serve

Read more about Ollama Embeddings Documentation.

  1. Build the project using Maven.

Usage

Put your text documents in the notes directory and run the Main class. The program will index the documents and allow you to search them using vector similarity.

About

A simple vector database indexer with Ollama written in Java

Topics

Resources

License

Stars

Watchers

Forks

Contributors