Skip to main content

cover-v5-optimized

API Documentation · API 文檔 · API 文档 · API ドキュメント

README in English Traditional Chinese README Simplified Chinese README Japanese README

RaySearch

RaySearch is an async-first search orchestration engine for AI-overview style workflows. It can be used as:

  • a Python package with Engine
  • a personal HTTP API service
  • a Docker or Docker Compose deployment

Core Capabilities

  • search: multi-provider retrieval with optional fetch and rerank stages
  • fetch: page crawling, extraction, abstracts, overview generation, and related links
  • answer: grounded answer generation with citations
  • research: multi-round research reports with synthesis and structured output

Start With Docker Compose

git clone https://github.com/radiata-labs/raysearch.git
cd raysearch/docker
cp .env.example .env

Then edit .env with your own values. At minimum:

  • set RAYSEARCH_API_KEY
  • set OPENAI_API_KEY if you want answer, research, or LLM-powered overview features

Start the service:

docker compose up -d

For development with hot reload:

docker compose -f docker-compose.yml -f docker-compose.override.yml up

The compose setup reads:

  • environment from docker/.env
  • service config from docker/raysearch.example.yaml

If you want a separate config file, copy docker/raysearch.example.yaml and point RAYSEARCH_CONFIG_FILE to it in .env.

Start With uv

From the repository root:

uv run --extra service --env-file docker/.env raysearch-api --config docker/raysearch.example.yaml

Or from inside the docker directory:

uv run --project .. --extra service --env-file .env raysearch-api --config raysearch.example.yaml

Python Package Usage

from raysearch import Engine, SearchRequest

async def main() -> None:
    async with Engine.from_settings("docker/raysearch.example.yaml") as engine:
        response = await engine.search(
            SearchRequest(
                query="latest multimodal model papers",
                user_location="US",
                mode="deep",
                max_results=8,
                fetchs={"content": True},
            )
        )
        print(response.results)

Personal API

The personal API exposes:

  • GET /healthz
  • POST /v1/search
  • POST /v1/fetch
  • POST /v1/answer
  • POST /v1/research

It uses one shared static bearer token from api.bearer_token or RAYSEARCH_API_KEY. This service is intended for a single user or a private trusted environment.

Metadata

Release files for raysearch 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raysearch 0.1.2
File Size Uploaded
raysearch-0.1.2.tar.gz 281.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for raysearch 0.1.2
File Interpreter ABI Platform
raysearch-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 643.5 kB

Release files / raysearch-0.1.2.tar.gz

Download URL raysearch-0.1.2.tar.gz
Size 281.0 kB
Tags Source
SHA-256 checksum
How to use checksums
676da671a10b63af54c21bfdbb41677408536ac0116f9bf452793d5922496096
BLAKE2b-256 checksum
How to use checksums
d4a3f2036d15a72aff696d41e4e80e69f6241f98e851fb388095ccbf923c99cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release files / raysearch-0.1.2-py3-none-any.whl

Download URL raysearch-0.1.2-py3-none-any.whl
Size 362.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1d5f8d02109adfb077e4b8304e48649ce3ce968e413ba687e4a10e966c6dd21
BLAKE2b-256 checksum
How to use checksums
ddc88a52f2ab6aa2d720e73ff2097719f819587e0d82c0cb6ff9248de825da41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.12

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page