All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

AI Search - Custom metadata filtering for AI Search

3mo ago

Source

CloudflareAI Search - Custom metadata filtering for AI Searchcloudflare.com
Snippet from the RSS feed
AI Search now supports custom metadata filtering, allowing you to define your own metadata fields and filter search results based on attributes like category, version, or any custom field you define. Define a custom metadata schema You can define up to 5 custom metadata fields per AI Search instance. Each field has a name and data type ( text , number , or boolean ): curl -X POST \ -H "Content-Type: application/json" \ -H "Authorization: Bearer {API_TOKEN}" \ -d '{ "id": "my-instance", "type": "r2", "source": "my-bucket", "custom_metadata": [ { "field_name": "category", "data_type": "text" }, { "field_name": "version", "data_type": "number" }, { "field_name": "is_public", "data_type": "boolean" } ] }' Add metadata to your documents How you attach metadata depends on your data source: R2 bucket : Set metadata using S3-compatible custom headers ( x-amz-meta-* ) when uploading objects. Refer to R2 custom metadata for examples. Website : Add tags to your HTML pages. Refer to Website custom metadata for details. Filter search results Use custom metadata fields in your search queries alongside built-in attributes like folder and timestamp : curl \ -H "Content-Type: application/json" \ -H "Authorization: Bearer {API_TOKEN}" \ -d '{ "messages": [ { "content": "How do I configure authentication?", "role": "user" } ], "ai_search_options": { "retrieval": { "filters": { "category": "documentation", "version": { "$gte": 2.0 } } } } }' Learn more in the metadata filtering documentation .

You might also wanna read

Search-Augmented Agents Cut Token Usage by 36% and Outperform Raw File Processing

This article explores the inefficiency of giving AI agents raw files (like research papers) to process, comparing it to a raccoon rummaging

lighton.ai·9d ago

Meta Superintelligence Labs' First Paper Focuses on Retrieval-Augmented Generation (RAG)

Meta Superintelligence Labs' first published paper focuses on Retrieval-Augmented Generation (RAG) rather than expected model layer innovati

paddedinputs.substack.com·8mo ago

How AI agents are evolving RAG systems from keyword search to iterative, reasoning-based search experiences

The article discusses how AI agents are transforming traditional RAG (Retrieval-Augmented Generation) systems by moving beyond simple keywor

softwaredoug.com·9mo ago

Meta launches AI Mode on Facebook that searches public posts for AI-generated results

Meta is rolling out a new AI Mode for Facebook search that generates results based on publicly posted content across its platforms, rather t

The Verge·19d ago

Rethinking Search: From Query-Answer Services to Programmable Primitives for AI Agents

The article argues that traditional search pipelines are becoming outdated for AI agent systems. It proposes rethinking search as a programm

research.perplexity.ai·1mo ago

The Challenge of Tracking AI-Generated Search Leads from Personalized Conversations

The article discusses the growing phenomenon of AI-driven search leads that are invisible to traditional tracking tools. Customers are findi

tinyurl.com·1mo ago

Comments

Sign in to join the conversation.

No comments yet. Be the first.