Skip to main content
The Raily SDKs call your search endpoint from your own code — a backend service or an agent you build. Install, add your endpoint URL and API key, and get back ranked, structured results. (Third-party agents like Claude and ChatGPT connect to the same endpoint over MCP instead — see Connect.)

Python

pip install raily-ai

TypeScript / JavaScript

npm install @raily/sdk
Both SDKs share the same shape (Python shown):
New to it? Start with the SDK quickstart — get a key and run your first search in a couple of minutes.

What you get

  • One methodsearch(query, limit) returns ranked results; no setup beyond a key.
  • Typed results — each hit has a score, the source_collection it came from, and your data’s display fields (title, text, dates, …).
  • Sync and async (Python) and promise-based (TypeScript), safe to reuse across requests.
  • Clear errors — a dedicated RailyAuthError for key problems, RailyError for the rest.