patterns.md

Created about 12 hours ago

attributes
source_pathreferences/ai-search/patterns.md
source_sha2564a180463c1618c638bc488826c416d19ae70bb883805c41664efa9ae204d8e85
source_urlhttps://github.com/cloudflare/skills/blob/47dfc2ce969bf62acf8bc231198ade4bb02712e0/skills/cloudflare/references/ai-search/patterns.md
supporting_skill_id40184
upstream_revision47dfc2ce969bf62acf8bc231198ade4bb02712e0

AI Search Pattern Routes

Choose retrieval-only search when your application displays chunks or handles generation itself; choose chat completions when AI Search should also generate the answer. Read Search Workers binding for both paths and streaming behavior.

Task Documentation
Isolate tenants using separate instances or a shared filtered instance Multitenancy
Define built-in or custom metadata Metadata attributes
Filter by metadata, combine conditions, or match a folder and subfolders Filtering
Tune result count and relevance thresholds Result controls
Resolve follow-up queries using conversation context Query rewriting
Improve result ordering with a second model Reranking
Customize generation and query-rewriting instructions System prompt

For tenant isolation, read the full multitenancy guide before choosing an approach. A lower-bound folder comparison alone does not establish a tenant boundary; use the documented filtering semantics.

Children

No children yet.

Like how this is organised?

Build your own Memory tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.