Using a Vector Database with OpenAI
Introduction
In the previous examples, we attempted to make AI more aware of the dialogue context. However, we utilized text files for context storage, which is not the most efficient method. Therefore, we will use a database for context storage, specifically a vector database.
There are numerous popular vector databases, including Faiss, Annoy, Milvus, Weaviate, etc. In this example, we will use Weaviate. Before we begin, let’s understand what a vector database is.
What is a Vector Database?
A vector database is a type of database designed for storing, indexing, and querying vectors (arrays of numbers representing data in a high-dimensional space). Vectors often come from the transformation of unstructured ...
Get OpenAI GPT For Python Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.