Skip to content
Browse all functions

RAG – Semantic Search in Knowledge Base

rag/search

search (RAG – Semantic Search in Knowledge Base) is a 1001fx API function in the group Knowledge bases (RAG): POST https://api.1001fx.com/rag/search, 1 credit per call. It works as a ready-made module in Make or as a plain HTTP call.

1 credit per callHTTP APIMake

Finds the passages that answer a query – by meaning and by exact words and codes (hybrid search) – optionally only in documents whose metadata match the filter. Returns the passages with document, title, source URL, metadata and score, e.g. for your own AI step. 1 credit per call.

Endpoint

POSThttps://api.1001fx.com/rag/search
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • knowledgeBasestringrequired

    Name or ID of the knowledge base, e.g. "Support FAQ" or support-faq (same knowledge base). rag/adddocument creates it if it does not exist.

    Example:
    Support FAQ
  • querystringrequired

    Question or search words.

    Example:
    How do I cancel my subscription?
  • topKnumberoptional

    Number of passages, 1-50 (default 5).

    Default:
    5
    Min:
    1
    Max:
    50
  • minScorenumberoptional

    Leave out passages below this similarity (0-1); exact word and code matches always count.

    Min:
    0
    Max:
    1
  • filteranyoptional

    Only documents whose metadata match. Object {"department": "billing", "lastModified": {"$gte": "2026-01-01"}} (operators $eq $ne $in $nin $gt $gte $lt $lte $exists $contains, $and $or $not) or array [{"key", "operator", "value", "type"}] (all must match).

  • filterJsonstringoptional

    The filter as JSON text, e.g. for OR conditions from Make: {"$or": [{"department": "billing"}, {"department": "sales"}]}.

Examples

RAG – Semantic Search in Knowledge Base

Needs an API key of an account (not a test key).

Input

Expects a json body
{
  "knowledgeBase": "Support FAQ",
  "query": "How do I cancel my subscription?",
  "topK": 5
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/rag/search' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"knowledgeBase":"Support FAQ","query":"How do I cancel my subscription?","topK":5}'

Try search now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.002.11.2026created