Langchain
Index allows you to search by vectors, by providing a LangChain
plugin. This document will guide you through the steps to use this feature.
Search by Vector using IndexVectorStore
First install and import necessary libraries.
Then, create the IndexVectorStore
instance with your configuration. The sources are the IDs of the Indexes
that the search will operate on.
Perform operations using the VectorStore
IndexVectorStore
object provides the same Langchain methods. Here are a few examples:
Similarity Search
It should print as below. Remember that pageContent is the stringified item data JSON.
Conversational Retrieval
Response would be as following:
Last updated