Git Product home page Git Product logo

ffvec's Introduction

FFVec

A blazing fast (currently) in memory vector database.

Features

  • Advanced querying using the logistic classifier method described here.
  • Binary embeddings
  • Metadata filtering (for now only support equality matching)
  • Written in less than 1000 lines of pure C
  • Built in Python bindings
  • Much faster writes than FAISS with HNSW
  • Hackable and extendable if you so desire

Benchmarks

run these yourself with bench.py

Here the FFVec queries are the advanced version that trains a logistic classifier in the process of doing the query.

Benchmarking with 100,000 documents

FFVec Query Average Time: 1.64ms
FAISS Flat Query Average Time: 10.56ms
FAISS HNSW Query Average Time: 1.55ms
FAISS IVFPQ Query Average Time: 0.18ms


Benchmarking with 500,000 documents

FFVec Query Average Time: 2.98ms
FAISS Flat Query Average Time: 52.11ms
FAISS HNSW Query Average Time: 2.28ms
FAISS IVFPQ Query Average Time: 0.73ms


Benchmarking with 1,000,000 documents

FFVec Query Average Time: 4.96ms
FAISS Flat Query Average Time: 104.27ms
FAISS HNSW Query Average Time: 0.93ms
FAISS IVFPQ Query Average Time: 1.33ms

Roadmap

  • [] On disk indexing
  • [] More efficient non-vector querying
  • [] More non-vector querying options (ne, range, etc)

ffvec's People

Contributors

carsonpo avatar

Stargazers

 avatar Ben Friesen avatar Charles Foster avatar 0xSJ avatar Sofian Mejjoute avatar Philpax avatar Christopher Fleetwood avatar  avatar Surya Dantuluri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.