Docs
Hybrid Search Node

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.

hybrid.png

Features

Key Functionalities
  1. Hybrid Search Capability: Combines text-based queries and vector database searches for precise and contextually relevant results.

  2. Dynamic Query Integration: Supports dynamic input parameters (e.g., {{triggerNode_1.output.topic}}) to tailor search queries.

  3. Vector Database Support: Integrates seamlessly with vector databases for advanced search and retrieval.

  4. Embedding Model Integration: Leverages embedding models, such as Mistral API (mistral-embed), for enhanced semantic understanding.

  5. Customizable Boost Properties: Includes options to adjust parameters like Alpha for fine-tuning search results.

Benefits
  1. Enhanced Precision: Delivers accurate results by combining traditional search with semantic vector-based techniques.

  2. Flexibility: Supports dynamic query generation and multiple embedding models, catering to diverse use cases.

  3. Scalability: Works effectively with large-scale vector databases for high-performance search applications.

  4. Ease of Use: Provides an intuitive interface for configuring search parameters, boosting usability for non-technical users.

  5. Optimized Results: Allows fine-tuning with boost properties like Alpha to balance relevance and diversity in outputs.

What can I build?

  1. Create a dynamic search interface within your application to query a vector database.
  2. Develop a personalized recommendation system using text and vector based search results.
  3. Integrate real-time search capabilities to enhance user experience in your app.

Setup

Select the Hybrid Search Node

  1. Fill in the required parameters.
  2. Build the desired flow
  3. Deploy the Project
  4. Click Setup on the workflow editor to get the automatically generated instruction and add it in your application.

Configuration Reference

ParameterDescriptionExample Value
Search QueryInput the query to search the vector database.Tell me something about Bali
Vector DBSelect the vector database to be queried.Database
Embedding Model NameThis 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 PropertiesSpecific properties can be boosted by a factor specified as a numberTrue/False
AlphaHybrid 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
CertaintyIts 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
LimitNumber of results to return3
Group Similar Distance upto N JumpsAutomatically 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 TypeThis field allows the user to select the fusion type used to combine the keyword and vector search results.Relative/Ranked
FiltersApply 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

ProblemSolution
Invalid API KeyEnsure the API key is correct and has not expired.
Dynamic Content Not LoadedIncrease the Wait for Page Load time in the configuration.

Debugging

  1. Check Lamatic Flow logs for error details.
  2. Verify API Key.

Was this page useful?

Questions? We're here to help

Subscribe to updates