Skip to content
File

Blob: src/cloudflare/internal/test/autorag/autorag-api-test.py

python9 lines
1# Copyright (c) 2025 Cloudflare, Inc.
2# Licensed under the Apache 2.0 license found in the LICENSE file or at:
3# https://opensource.org/licenses/Apache-2.0
4 
5 
6async def test(context, env):
7 resp = await env.ai.autorag("my-rag").aiSearch({"query": "example query"})
8 assert resp.response == "this is an example result"