Step-by-Step Guides

Multiple Vector Stores

Multiple Vector
Stores

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: https://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.

The ZeroShotAgent takes the LLMChain and the Search tool as inputs, using the tool to find information when necessary.

INFO

Learn more about Multiple Vector Stores here.

⛓️ Langflow Example

Getting Started

👋 Welcome to Langflow
📦 How to install?
🤗 HuggingFace Spaces
🎨 Creating Flows

Guidelines

Sign up and Sign in
API Keys
Assynchronous Processing
Component
Features
Collection
Prompt Customization
Chat Interface
Chat Widget
Custom Components

Step-by-Step Guides

Async API
Integrating documents with prompt variables
Building chatbots with System Message
Integrating Langfuse with Langflow

Examples

FlowRunner Component
Conversation Chain
Buffer Memory
MidJourney Prompt Chain
CSV Loader
Serp API Tool
Multiple Vector Stores
Python Function
📚 How to Upload Examples?

Deployment

Deploy on Google Cloud Platform

Contributing

How to contribute?
GitHub Issues
Community

Search Docs…

Search Docs…