Post

Choice of Vector Database significantly impacts the LLM application's performance.

Vector Database significantly impacts the LLM applicaition’s performance

 Vector Database

Image credit : https://neptune.ai/blog/building-llm-applications-with-vector-databases

Vector databases store and index high-dimensional vectors, which represent embeddings of text, images or other data in numerical format that captures their semantic meaning.

The choice of DB impacts ( Reference article ):

  1. Search speed
  2. Accuracy of similarity matching
  3. Scalability
  4. Memory usage

 Vector Database Use Case

 Overview that utilize Vector Database

For ex.

(1) Real-Time Product Recommendations

Scenario: An online retailer needs to recommend products to users in real-time based on their browsing history.

DB Choice: PINECONE, due to its high-speed query performance and scalability, allows the system to quickly retrieve and recommend products, enhancing user experience.

Scenario: A research organization needs to search through a large corpus of scientific papers to find relevant documents based on semantic similarity.

DB Choice: MILVUS, with its robust indexing and scalability, enables efficient and accurate semantic searches across billions of document embeddings.

(3) Voice Assistant

Scenario: A voice assistant needs to process and respond to user queries instantly.

DB Choice: FAISS, optimized for low latency and fast retrieval, ensures the assistant can quickly understand and respond to queries, providing a smooth user experience.


If you are building a Vector DB, optimize the chunk size and consider how you turn chunks into embeddings.

AND, there is NO BEST CHUNK SIZE. To find the appropriate chunk size for your system, embed your documents using different chunk sizes and evaluate which chunk size yields the best retrieval results.

Also, You are not forced to stick to the (chunk embedding, chunk) pairs. You can modify the embeddings you use as the index for retrieval.

You can summarize your chunks using an LLM before running it through the embedding model. These summaries will be much shorter and contain less meaningless filler text, which might “confuse” or “distract” your embedding model.


Choosing, optimizing, or building an efficient Vector DB is a multi-step process.

You can significantly enhance the speed, accuracy, and scalability of your LLM-based system, leading to better overall performance and user experience following the right approach.

😎 Text-to-SQL is one of the most prevalent enterprise applications of LLMs. If you’re in this space, this super comprehensive survey report is a must-read!

Next-Generation Database Interface 😎

⛳ Here’s everything the paper contains:

👉 Datasets and Benchmarks

Provides an overview of commonly used datasets and benchmarks for evaluating LLM-based Text-to-SQL systems.

It discusses the characteristics, complexity, and challenges these datasets pose for system development and evaluation.

👉 Evaluation Metrics

Presents the evaluation metrics used to assess the performance of LLM-based Text-to-SQL systems, including accuracy, exactness, and execution correctness.

The paper also discusses the advantages and limitations of each metric and their relevance to real-world applications.

👉 Methods and Models

Explores the different methods and models employed for LLM-based text-to-SQL, including in-context learning and fine-tuning-based paradigms.

It discusses their implementation details, strengths, and adaptations specific to the text-to-SQL task.

👉 Expectations and Future Directions

Discusses the current challenges and limitations of LLM-based Text-to-SQL, such as real-world robustness, computational efficiency, data privacy, and extensions.

It also outlines potential future research directions and opportunities for improvement.

 Next Generation Database Interface

Explain How to use Vector Embeeding

Let’s create VectorEmbeddings for free. [Hands-On Tutorial]

Vector embeddings carry the contextual meaning of the objects that machines can easily understand.

Using Cohere & Hugging Face, you can create vector embeddings for free.

Here is my complete tutorial on creating vector embeddings using different platforms

This post is licensed under CC BY 4.0 by the author.