#similarity-search #llm #python-bindings

zetacore

A simple in-memory vector store library with Python bindings

1 unstable release

0.1.0 Aug 28, 2024

#716 in Data structures

Apache-2.0

11KB
227 lines

zetacore

zetacore is a Rust library with Python bindings for efficient vector storage and similarity search.

Features

  • Store and manage vector records with associated metadata
  • Perform cosine similarity search on stored vectors
  • Efficient add, get, and delete operations
  • Python bindings for easy integration with Python projects

Installation

Python

pip install zetacore

Usage

Python

import zetacore

store = zetacore.VectorStore([])
store.add([
    { "id": "vector_1", "values": [1.0, 2.0] },
    { "id": "vector_2", "values": [5.3, 3.9] },
])

result = store.query([1.5, 2.5], 1)
print(f"Nearest vector: {result[0]}")

Contributing

Contributions are welcome!

License

This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.

Dependencies

~3MB
~65K SLoC