Semantic Knowledgebase Search

Easily search and retrieve information from private knowledgebase documents using semantic search powered by AI. The flow expands user queries, searches across multiple knowledge sources, and presents relevant results in a user-friendly chat interface.

How the AI Flow works - Semantic Knowledgebase Search

Flows

How the AI Flow works

User Enters Search Query.
User inputs a question or search query through a chat interface.
Query Expansion with AI.
The system expands and paraphrases the user's query using an AI language model to improve search accuracy.
Semantic Search in Knowledgebase.
Expanded queries are used to search across all scheduled domains, documents, and Q&A sections in the private knowledgebase.
Presenting Relevant Documents.
The most relevant documents or information are retrieved and displayed to the user in the chat interface.
User-Friendly Chat Experience.
Results are presented in a conversational and accessible format, making knowledge discovery seamless.

Prompts used in this flow

Below is a complete list of all prompts used in this flow to achieve its functionality. Prompts are the instructions given to the AI model to generate responses or perform actions. They guide the AI in understanding user intent and generating relevant outputs.

Components used in this flow

Below is a complete list of all components used in this flow to achieve its functionality. Components are the building blocks of every AI Flow. They allow you to create complex interactions and automate tasks by connecting various functionalities. Each component serves a specific purpose, such as handling user input, processing data, or integrating with external services.

ChatInput

The Chat Input component in FlowHunt initiates user interactions by capturing messages from the Playground. It serves as the starting point for flows, enabling the workflow to process both text and file-based inputs.

Chat Output

Discover the Chat Output component in FlowHunt—finalize chatbot responses with flexible, multi-part outputs. Essential for seamless flow completion and creating advanced, interactive AI chatbots.

Message Widget

The Message Widget component displays custom messages within your workflow. Ideal for welcoming users, providing instructions, or showing any important information, it supports Markdown formatting and can be set to appear only once per session.

Chat Opened Trigger

The Chat Opened Trigger component detects when a chat session starts, enabling workflows to respond instantly as soon as a user opens the chat. It initiates flows with the initial chat message, making it essential for building responsive, interactive chatbots.

Query Expansion

Query Expansion in FlowHunt enhances chatbot understanding by finding synonyms, fixing spelling errors, and ensuring consistent, accurate responses for user queries.

Document Retriever

FlowHunt's Document Retriever enhances AI accuracy by connecting generative models to your own up-to-date documents and URLs, ensuring reliable and relevant answers using Retrieval-Augmented Generation (RAG).

Knowledge Source Widget

Showcase relevant documents directly within your chatbot responses using the Knowledge Source Widget. This component displays selected knowledge documents as visually distinct widgets, making it easy for users to access and review supporting information during a conversation.

LLM OpenAI

FlowHunt supports dozens of text generation models, including models by OpenAI. Here's how to use ChatGPT in your AI tools and chatbots.

Flow description

Purpose and benefits

This workflow, titled “Semantic Search”, enables users to search for information within their private knowledgebase by leveraging advanced language models and semantic search techniques. It is designed to scan across all scheduled domains, documents, and Q&A sections, automating the retrieval of the most relevant information in response to user queries.

User Interaction and Welcome Message

When a user opens the chat interface, the workflow triggers a welcome message:

  • Message Widget displays:

    👋 Welcome to the Private Knowledgebase Search Tool!
    I’m here to help you search through documents in your private knowledgebase 📚. I’ll scan all scheduled domains, private documents, and Q&A sections to find the information you need.
    Simply enter your query, and let’s get started on finding the answers! ✨🔍

This friendly message helps orient users and guides them to enter their search query.

Query Processing and Expansion

  1. User Input:
    The user submits a query via the chat input field.

  2. Query Expansion:

    • The query is sent to a Query Expansion component.
    • Powered by an OpenAI language model (specifically, gpt-4o-mini), this component generates up to three paraphrased or semantically similar queries.
    • The purpose is to increase the chances of retrieving all relevant documents, even when the initial query wording is ambiguous or limited.
ComponentPurpose
Chat InputCollects the user’s search question
OpenAI LLM (gpt-4o-mini)Generates alternative phrasings of the query
Query ExpansionProduces up to 3 query variants for search

Document Retrieval

  • The expanded queries are passed to a Document Retriever.
  • This component searches the user’s private knowledgebase, including scheduled domains, documents, and Q&A sections.
  • It pulls up to 10 of the most relevant documents, focusing on content within <H1> headers to maximize context relevance.

Results Presentation

  • The retrieved documents are fed into a Document Widget, which formats and presents them in a chat-friendly way.
  • The final compiled results are displayed back to the user in the chat interface.
StepComponentOutput Type
Retrieve DocumentsDocument RetrieverRaw Documents
Format ResultsDocument WidgetMessage
Display to UserChat OutputChat Message

Workflow Diagram

flowchart LR
    A[Chat Opened] --> B[Welcome Message]
    B --> C[User Query Input]
    C --> D[Query Expansion\n(OpenAI LLM)]
    D --> E[Document Retriever]
    E --> F[Document Widget]
    F --> G[Chat Output]

Benefits and Use Cases

  • Automation: The workflow automates semantic search, saving manual effort and ensuring users always receive a friendly, guided experience.
  • Scalability: By expanding queries and searching across all relevant sources, the workflow provides robust coverage, making it suitable for large or complex knowledgebases.
  • Accuracy: Leveraging LLMs for paraphrasing reduces the risk of missing information due to how a query is worded.
  • User Experience: Immediate feedback and clear instructions make the tool user-friendly, even for non-technical audiences.

Typical use cases:

  • Internal knowledge management for support teams
  • Company-wide FAQ and document search portals
  • Automated assistants for private or proprietary datasets

By integrating semantic search with LLM-powered query expansion, this workflow ensures users can efficiently access relevant knowledge, boosting productivity and information discovery.

Let us build your own AI Team

We help companies like yours to develop smart chatbots, MCP Servers, AI tools or other types of AI automation to replace human in repetitive tasks in your organization.

Learn more

AI Content Idea Generator
AI Content Idea Generator

AI Content Idea Generator

Generate unique content ideas and summaries using AI by researching top Google results for any keyword. Ideal for content marketers and creators to quickly disc...

4 min read
Google SERP Analyzer for SEO
Google SERP Analyzer for SEO

Google SERP Analyzer for SEO

This workflow analyzes Google's search results for a given keyword, extracting insights about search intent, competitor strategies, and content opportunities to...

4 min read
Top Ranking Content Generator
Top Ranking Content Generator

Top Ranking Content Generator

Generate well-structured web page content based on the analysis of top-ranking Google pages for any keyword. This flow automates keyword research, extracts comp...

3 min read