Weaviate Plugin for Dify
A comprehensive Dify plugin that provides seamless integration with Weaviate vector database, enabling powerful vector search, data management, and text embedding capabilities.
Features
🔍 Search & Query Tools
- Vector Search: Perform similarity search using vector embeddings
- Hybrid Search: Combine vector similarity and keyword search for comprehensive results
- Keyword Search: BM25-based keyword search for exact text matching
- Generative Search: RAG-powered search with LLM-generated responses
- Query Agent: Natural language query interface for intelligent operations
- Data Management: Full CRUD operations for Weaviate objects
- Schema Management: Create, delete, and manage collection schemas
🤖 Text Embedding Model
- Multiple Vectorizers: Support for OpenAI, Cohere, Hugging Face, and more
- Configurable Dimensions: Customize embedding vector dimensions
- Flexible Models: Use different embedding models based on your needs
Installation
- Install dependencies:
- Configure your Weaviate instance credentials in Dify
Configuration
Provider Credentials
- Weaviate URL: Your Weaviate instance URL (required)
- API Key: Authentication key (optional for open instances)
Text Embedding Model Parameters
- Dimensions: Number of vector dimensions (default: 1536)
- Vectorizer: Choose from text2vec-openai, text2vec-cohere, text2vec-huggingface, etc.
- Model Name: Specific model name for the selected vectorizer
Usage
Vector Search
Search for similar vectors in your collections:
Hybrid Search
Combine vector and keyword search:
Keyword Search
Perform BM25 keyword search:
Generative Search
RAG-powered search with LLM responses:
Query Agent
Natural language query interface:
Data Management
Insert, update, delete, or retrieve objects:
Schema Management
Create and manage collection schemas:
File Structure
Supported Operations
Vector Search
- Similarity search using vector embeddings
- Configurable result limits and filters
- Metadata and property selection
Hybrid Search
- Combines vector similarity and keyword search
- Adjustable alpha parameter for weighting
- Advanced filtering capabilities
Keyword Search
- BM25-based keyword matching
- Configurable search properties
- Exact text matching capabilities
Generative Search
- RAG-powered search with LLM integration
- Context-aware response generation
- Support for multiple LLM providers
Query Agent
- Natural language query interpretation
- Intelligent operation selection
- Conversational response generation
Data Management
- Insert single or multiple objects
- Update existing objects by UUID
- Delete objects by UUID
- Retrieve objects with property selection
- List all collections
Schema Management
- Create collections with custom properties
- Delete collections
- Retrieve collection schemas
- Get collection statistics
- List all collections
Error Handling
The plugin includes comprehensive error handling for:
- Invalid credentials
- Network connectivity issues
- Malformed input data
- Weaviate API errors
- Validation failures
Development
To extend the plugin:
- Add new tools in the directory
- Create corresponding YAML configurations
- Register tools in
- Update the provider YAML to include new tools
License
This plugin is provided by Weaviate for integration with Dify.
Author: weaviate
Version: 0.0.1
Type: tool
Repository
Source code: https://github.com/DhruvGorasiya/weaviate-plugin