Weaviate (vector search)
Weaviate (vector search)
Use Weaviate as a vector provider for the Semantic Search built-in tool. Add
Semantic Search to an Agent or Flow to retrieve content from a Weaviate
collection. Weaviate is a provider option, not a separate search tool. The tool
also supports the built-in pgvector store and Cloudflare Vectorize.
What is Weaviate?
Weaviate is an external vector database that supports semantic search. Use a Weaviate collection to retrieve content for retrieval-augmented generation (RAG).
Choose a vector provider
Choose a provider based on where you store the vectors:
- Choose
pgvectorwhen you store searchable data in Runtype Records. - Choose Weaviate when you store searchable data in a Weaviate collection.
- Choose Cloudflare Vectorize when you store searchable data in a Vectorize index.
Before you begin
Create a Weaviate cluster and collection, and collect the cluster URL and API key. Configure an OpenAI API key in Settings > Models. Semantic Search uses OpenAI to generate query embeddings.
Set up Weaviate
To connect a Weaviate instance to Runtype, follow these steps:
- Create a cluster in Weaviate Cloud Console.
- Copy the cluster URL and API key from Weaviate.
- In Runtype, open Settings > Integrations.
- In Vector Databases, click Add Configuration for Weaviate.
- Enter a configuration name, a Weaviate Instance URL, and an API Key.
- If you have more than one Weaviate configuration, select Set as default Weaviate configuration. The Semantic Search tool uses the default configuration.
- On the Test Connection tab, click Test Connection and confirm that the connection succeeds.
- Click Save Configuration.
Configure Semantic Search
After you connect Weaviate, add Semantic Search to an Agent or Flow. Configure the Weaviate-backed search instance with these settings:
- Add the Semantic Search tool to an Agent or Flow.
- Select Weaviate as the vector provider.
- Enter the name of the Weaviate collection that contains the documents that you want to search.
- Enter a Display name for the search instance.
- Set Similarity threshold between
0and1. Lower values return more results. Higher values return only closer matches.
You can add multiple Semantic Search instances to the same Agent or Flow. Point each instance to a different Weaviate collection.
RAG with Weaviate
Build retrieval-augmented generation (RAG) by adding Semantic Search with Weaviate as the provider to an Agent. In a Flow, add a Vector Search step and select Weaviate as the provider. Pass the search results to the step that generates the answer.
Next steps
Use these pages to continue:
- Built-in tools: configure Semantic Search and other built-in tools
- Flow step types overview: add a Vector Search step to a Flow
- What’s in Settings?: manage integration and model settings