Verified65% confidenceFactExact time
In the knowledge retrieval stage, the user's question is converted into a query vector via an embedding model, similarity is computed against the text chunk vectors in the knowledge base (typically using cosine similarity), and the top-K segments are returned by ranking.
3
Sources
65%
Confidence
Long-term
Relevance
7/6/2026
First Seen
Sources
Building a RAG Q&A Workflow with Dify: A 4-Step Guide to Enterprise Knowledge Base Chatbots
bilibiliAI大模型大课堂6/30/2026
Related Claims
UnverifiedAt retrieval time, the user's question is likewise encoded into a vector, and the system uses measures such as cosine similarity to find the top-K chunks closest to the question vector.80% similarUnverifiedSearch systems typically use an embedding model to encode queries and documents into vectors separately and then retrieve candidate results via vector similarity; this process is called semantic retrieval or vector retrieval.77% similarUnverifiedAfter enabling smart search, the model searches the web according to the question, and answers can include source citations; then with deep thinking enabled, searching and reading web pages can be interspersed in the multi-step reasoning process.75% similarUnverifiedAfter documents are imported, Dify's knowledge base module chunks and vectorizes them and stores them in a vector database, retrieving by semantic similarity during Q&A.75% similarUnverifiedMulti-query retrieval uses an LLM to automatically generate 3–5 semantically equivalent but differently phrased variant queries for the same question, retrieves results for each separately, and takes the union to improve recall.74% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/114912API
curl https://kongchang.com/api/v1/knowledge/claims/114912MCP
get_claim(id=114912)