Verified source references

Verification covers files and lines at the pinned commit; architectural claims still need review.

Explore architecture

Queries use authored relationships only; undirected edges appear in neighbors only.

Diagram ready

Dify · From documents to answers 1.17.0 · Three layers · Knowledge ingestion and basic Chat Dify · From documents to answers 1.17.0 · Three layers · Knowledge ingestion and basic Chat 01 Access · Requests 02 Execution · API and indexing 03 Data · Files, tasks and vectors Upload / create Ask / SSE API request / reply Store file Store metadata Tasks / query cache Consume index job Read source file Store chunks Write index Semantic search Embed documents Embedding / LLM Web console Browser client Upload · create Nginx Reverse proxy URL routing API client Chat requests Streamed replies API service Chat · RAG In-process thread Indexer Celery worker Extract · split Plugins Plugin Daemon Model boundary File store Original files Local by default Redis Task broker Query vector cache SQL store Metadata · chunks PostgreSQL here Vector DB Document vectors Weaviate here

Relation details (authored, not semantically certified)

Native-size scrollable diagram · Source references: verified · Semantic review: pending · Rendered readability: awaiting visual-check

IDDirection / endpointsFull labelKindConditionProtocol
web-nginxWeb console [web] → Nginx [nginx]Upload / createhttpConsole request succeeds
caller-nginxAPI client [caller] ↔ Nginx [nginx]Ask / SSEhttpBasic CHAT; streaming response mode
nginx-apiNginx [nginx] ↔ API service [api]API request / replyhttpConsole API or /v1 route
api-filesAPI service [api] → File store [files]Store filestorage-accessLocal uploaded text file; validation succeeds
api-sqlAPI service [api] → SQL store [sql]Store metadatadatabase-accessUpload and document creation succeed
api-redisAPI service [api] → Redis [redis]Tasks / query cachedependencyIndex dispatch after document commit; query embedding cache access on semantic retrieval
redis-workerRedis [redis] → Indexer [worker]Consume index jobtask-deliveryWorker consumes Celery broker; self-hosted priority_dataset queue
worker-filesIndexer [worker] → File store [files]Read source filestorage-accessFILE source in extraction
worker-sqlIndexer [worker] → SQL store [sql]Store chunksdatabase-accessSuccessful paragraph indexing
worker-vectorIndexer [worker] → Vector DB [vector]Write indexvector-accesshigh_quality paragraph indexing; embedding succeeds
api-vectorAPI service [api] → Vector DB [vector]Semantic searchvector-accessDataset configured and selected; internal high_quality semantic retrieval; filters permit results
worker-pluginIndexer [worker] → Plugins [plugin]Embed documentsmodel-invocationDocument embedding cache miss; model configured
api-pluginAPI service [api] → Plugins [plugin]Embedding / LLMmodel-invocationQuery embedding cache miss and/or LLM invocation; validated normal CHAT path