Multiple Vector Stores
The example below shows an agent operating with two vector stores built upon different data sources.
TextLoader loads a TXT file, while the
WebBaseLoader pulls text from webpages into a document format to accessed downstream. The
Chroma vector stores are created analogous to what we have demonstrated in our CSV Loader example. Finally, the
VectorStoreRouterAgent constructs an agent that routes between the vector stores.
Get the TXT file used here.
URL used by the
When you build the flow, request information about one of the sources. The agent should be able to use the correct source to generate a response.
Learn more about Multiple Vector Stores here.