Multiple Vector Stores
The example below shows an agent operating with two vector stores built upon different data sources.
The 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.
info
Get the TXT file used here.
URL used by the WebBaseLoader
:
_10https://pt.wikipedia.org/wiki/Harry_Potter
tip
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.
info
Learn more about Multiple Vector Stores here.
⛓️ Langflow Example
