There are so many options for vector databases that it's so confusing. But those are just a piece of the puzzle when you create applications using large language models. As mentioned in the comments, you have to choose an embeddings model, the LLM, and manage all the interaction in between. With Vectara (full disclosure: I work there; https://vectara.com ) we provide a simple API to implement applications with Ground…
Which vector database should I use? A comparison cheatsheet
81–90 of 91 posts
Re: Which vector database should I use? A comparison cheatsheet
#82I would suggest that anyone trying a real comparison of vector DB's consider the following - necessary functions / use cases (eg prefiltering, dense search) - embeddings version management - anticipated embedding size (the article only considers glove-100 on ANN-benchmarks, which is quite different from openai-ada-002 1536 - both in terms of their output distribution and the vector size) - required precision / recall…
Wouldn't "ease of putting into production" also factor in? For many use cases, being able to put a proof of concept out of the door in hours vs days vs weeks is the top selection criterion if everything else is "good enough".
Re: Which vector database should I use? A comparison cheatsheet
#83Earlier quoted context omitted.
Wondering why you didn’t include Elasticsearch [0] in your comparison. Also having some benchmark to compare performance would help. [0] https://www.elastic.co/guide/en/elasticsearch/reference/curr...
+1, I've been using OpenSearch (basically Elasticsearch 7.0), and have been pretty happy with the setup so far. OpenSearch specifically has an edge over Elasticsearch because it supports vectors up to 10k dimensions, whereas ES maxes out at indexing 1024 dimensions, which isn't enough to support OpenAI's 1536 dimension vectors. And then there's the benefit of it being well documented / Q&A'd, and able to support regu…
You need to do dimensionality reduction before indexing. Basically it's fine to just pick n first components if you don't want anything fancy.
Re: Which vector database should I use? A comparison cheatsheet
#84I would suggest that anyone trying a real comparison of vector DB's consider the following - necessary functions / use cases (eg prefiltering, dense search) - embeddings version management - anticipated embedding size (the article only considers glove-100 on ANN-benchmarks, which is quite different from openai-ada-002 1536 - both in terms of their output distribution and the vector size) - required precision / recall…
Re: Which vector database should I use? A comparison cheatsheet
#85Pure vector databases are a dead end. Almost every search engine (Vespa, Elastic, etc) and every database (Postgres, SQLite, Redis, etc) already has a solution for searching vectors in addition to everything else you need to query or search. If any of these vector databases become anything they will have to also implement either a full search engine or a full database.
MS desperately needs to get on this train with SQL. Maintaining and keeping a second system in sync to do vector search is painful. I've never been more jealous of people using Postgres.
https://devblogs.microsoft.com/azure-sql/vector-similarity-s...
Re: Which vector database should I use? A comparison cheatsheet
#86I would suggest that anyone trying a real comparison of vector DB's consider the following - necessary functions / use cases (eg prefiltering, dense search) - embeddings version management - anticipated embedding size (the article only considers glove-100 on ANN-benchmarks, which is quite different from openai-ada-002 1536 - both in terms of their output distribution and the vector size) - required precision / recall…
also filtering and benchmarks including filtering
Re: Which vector database should I use? A comparison cheatsheet
#87Earlier quoted context omitted.
Where you gonna put that embedding?
You put the vector in a vector database that gives you the ability to search based on the vectors. So when you create a new vector based on some input (question/etc...) you can use the vector search to find semantically similar topics in your vector database.
Re: Which vector database should I use? A comparison cheatsheet
#88As much as I like pg_vector, I think right now what we need the most is a pre-packaged version of sqlite-vss and a Pythonic wrapper for bootstrapping projects. This would lower barriers to entry even more for those using LLMs solely via APIs, and save people the trouble of setting up a database server or risking getting locked in to yet another prickly SaaS while iterating on a concept. Scaling can come later, after…
Re: Which vector database should I use? A comparison cheatsheet
#89On OP's page, Milvus is a lot faster than Qdrant, the complete opposite of Qdrant's benchmark. What gives? [1] https://qdrant.tech/benchmarks/
Re: Which vector database should I use? A comparison cheatsheet
#90However, for large dataset deployment, cost becomes more critical since vector search is computation intensive. Anything like es, mongodb and redis can not even share their results in the benchmark.
Also, if you are looking for more fancy features rather simply ANN, purpose built vector database has faster iterations than traditional databases