Hybrid Search Node Documentation
The Hybrid Search node provides the ability to embed a vector search of a connected vector database within a Lamatic flow.
Features
Key Functionalities
-
Hybrid Search Capability: Combines text-based queries and vector database searches for precise and contextually relevant results.
-
Dynamic Query Integration: Supports dynamic input parameters (e.g.,
{{triggerNode_1.output.topic}}
) to tailor search queries. -
Vector Database Support: Integrates seamlessly with vector databases for advanced search and retrieval.
-
Embedding Model Integration: Leverages embedding models, such as Mistral API (
mistral-embed
), for enhanced semantic understanding. -
Customizable Boost Properties: Includes options to adjust parameters like
Alpha
for fine-tuning search results.
Benefits
-
Enhanced Precision: Delivers accurate results by combining traditional search with semantic vector-based techniques.
-
Flexibility: Supports dynamic query generation and multiple embedding models, catering to diverse use cases.
-
Scalability: Works effectively with large-scale vector databases for high-performance search applications.
-
Ease of Use: Provides an intuitive interface for configuring search parameters, boosting usability for non-technical users.
-
Optimized Results: Allows fine-tuning with boost properties like
Alpha
to balance relevance and diversity in outputs.
What can I build?
- Create a dynamic search interface within your application to query a vector database.
- Develop a personalized recommendation system using text and vector based search results.
- Integrate real-time search capabilities to enhance user experience in your app.
Setup
Select the Hybrid Search Node
- Fill in the required parameters.
- Build the desired flow
- Deploy the Project
- Click Setup on the workflow editor to get the automatically generated instruction and add it in your application.
Configuration Reference
Parameter | Description | Example Value |
---|---|---|
Search Query | Input the query to search the vector database. | Tell me something about Bali |
Vector DB | Select the vector database to be queried. | Database |
Embedding Model Name | This field allows the user to select the embedding model used to embed the query into vector space. It loads available embedding models through the listModels method. | Embedding Model Name |
Boost Properties | Specific properties can be boosted by a factor specified as a number | True/False |
Alpha | Hybrid search results can favor the keyword component or the vector component. To change the relative weights of the keyword and vector components, set the alpha value in your query.Hybrid search results can favor the keyword component or the vector component. To change the relative weights of the keyword and vector components, set the alpha value in your query. | 0.25 |
Certainty | Its the distance score into a value between 0 <= certainty <= 1 , where 1 would represent identical vectors and 0 would represent opposite vectors.Its the distance score into a value between 0 <= certainty <= 1 , where 1 would represent identical vectors and 0 would represent opposite vectors. | 0.7 |
Limit | Number of results to return | 3 |
Group Similar Distance upto N Jumps | Automatically groups and limits search results by detecting significant gaps in similarity scores. When N > 0, the function will include results until it finds N large differences in scores between consecutive results. This helps filter out less relevant results that are notably different from the top matches. | 0 |
Fusion Type | This field allows the user to select the fusion type used to combine the keyword and vector search results. | Relative/Ranked |
Filters | Apply JSON-based filters to refine search results. | [] |
Low-Code Example
nodes:
nodes:
- nodeId: hybridSearchNode_217
nodeType: hybridSearchNode
nodeName: Hybrid Search
values:
searchQuery: Tell me something about ${{triggerNode_1.output.topic}}
vectorDB: ''
alpha: '0.25'
certainty: '0.85'
limit: '3'
autocut: '0'
fusionType: relativeScoreFusion
boostProperties: false
filters: '[]'
embeddingModelName:
provider_name: mistral
type: embedder/text
credential_name: Mistral API
credentialId: 32bf5e3b-a8fc-4697-b95a-b1af3dcf7498
model_name: mistral/mistral-embed
needs:
- triggerNode_1
- nodeId: plus-node-addNode_378459
nodeType: addNode
nodeName: ''
values: {}
needs:
- hybridSearchNode_217
Troubleshooting
Common Issues
Problem | Solution |
---|---|
Invalid API Key | Ensure the API key is correct and has not expired. |
Dynamic Content Not Loaded | Increase the Wait for Page Load time in the configuration. |
Debugging
- Check Lamatic Flow logs for error details.
- Verify API Key.