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.
URL used by the
ZeroShotAgent takes the
LLMChain and the
Search tool as inputs, using the tool to find information when necessary.