# Raily Agentic Layer Source: https://docs.raily.ai/concepts/agentic-layer Configure how the agent navigates and retrieves content from your data sources ## Overview The Raily Agentic Layer controls how the **intent analyzer** navigates and retrieves content from your data sources. Raily's search isn't a plain keyword match - it's an **agentic search**. Before each query runs, the intent analyzer reads it, figures out what's actually being asked, and adapts the search to fit. For end users, that means fewer irrelevant results and answers that match the question they actually asked. Every feature is **configurable per endpoint**. You edit these settings in the Raily app, on the endpoint's **Search config** page and on each Source's **Data description** page. See [Where you change these settings](#where-you-change-these-settings). ## Search Behavior Controls how Raily searches your indexed content when an AI agent issues a query. ### Intent understanding The intent analyzer classifies what you're trying to do: looking up a known piece, asking a factual question, exploring a topic, comparing things, or following a step-by-step guide. The search adapts to that intent. ### Freshness awareness Recognizes time-sensitive queries (*"latest"*, *"this week"*, *"yesterday's update"*) and prioritizes recent material. For fast-moving topics, it tightens the time window even when unspecified. ### Multi-angle retrieval For comparisons or multi-faceted questions (*"compare A and B"*), the intent analyzer runs **several searches in parallel**, one per angle, and merges the results, giving balanced evidence from each side. ### Vocabulary bridging The intent analyzer knows the vocabulary of your content and quietly rewrites queries into the terms the source actually uses, so casual phrasing still finds the right passages. ## Filters Filters narrow the retrieval scope before search runs. Raily handles them two ways: automatically inferred from the query, or explicitly configured per request. ### Inferred from natural language Phrases like *"articles from last week"* or *"only in the opinion section"* are recognized and turned into precise filters automatically. The search is **schema-aware**, applying the right filter for the right value, including: * **Dates and time ranges** - *"this week"*, *"in 2024"*, *"before the election"* * **Authors and contributors** - by name, with fuzzy matching * **Sections, categories, or topics** - opinion, sports, business * **Content type** - articles, reviews, interviews, recipes * **Tags, entities, and other metadata** your content provides * **Several values that must all match** - *"the piece Dana Levi and Amir Cohen wrote together"* finds pieces that list both people, not pieces by either one Available filters adapt to whatever fields exist in your collection. You choose which fields the agent may filter on, per Source. Open the Source's **Data description** page and, in the field table, set **Filterable** to **Yes** or **No** for each field. Turn it on for fields readers narrow by, such as dates, authors, topics, or content type. Leave it off for free text like the title or body. **Always Applied** matters when a filtered search finds nothing and Raily retries with looser filters. A field set to **Yes** keeps its filter in that retry. Turn it on for filters that repeat the reader's own words, such as an author name or a date, and leave it off for values the agent infers, such as sections or categories. ![The Data description field table with Type, Semantic, Filterable, Always Applied, Allowed Values and Search columns](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/filterable-fields.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=ed7d30b124954deacaa96ba605f98208) Filterable and Always Applied on a Source's Data description page ### Explicit configuration Filters can be set explicitly by the calling application on any metadata field, useful when the UI already knows the scope (a section page, a saved view, or a permission boundary). ## Retrieval Granularity ### What it is Each document can be split into smaller, focused passages (**chunks**), and the search returns the chunks that best match your query. ### Why we do it * **More precise answers.** Returning the exact passage that answers your question beats returning the whole piece. * **Better ranking.** Short, focused passages let the search score relevance more accurately. * **Faster reading.** You see the relevant part first, with a link back to the full document. ### What a chunk looks like A chunk is a short, self-contained section of a document (typically a few paragraphs) and carries the source's metadata (title, author, date, link). Multiple chunks from the same document can appear when more than one passage is relevant. ### Chunks or full document? The intent analyzer decides automatically: * **Chunks** - focused passages, used for factual lookups, topic exploration, and comparisons. * **Full document** - the complete piece, used when order or context matters (known articles, in-depth analysis, recipes and guides). The intent analyzer can override the default when the query clearly calls for the other format. The defaults are part of each endpoint's search config. ## When nothing closely matches Some queries have no strong match in your content. Raily uses two bars to decide what to return: * a **retrieval bar**, the minimum match quality for a passage to be considered at all, and * a **confidence bar**, the higher quality a passage needs to count as a strong match. Passages that clear the retrieval bar but fall short of the confidence bar are weaker, related results. You choose what happens to them per endpoint, with **Exploratory Mode** in the **Exploratory** section of **Search Behavior**: * **`present_both`** (default): show them as suggestions. Strong matches come first. Weaker ones follow under a header you set, such as *"We didn't find an exact match, but you might find these useful."* The reader gets something related instead of an empty page. * **`drop`**: hide them. Return only strong matches. If nothing clears the confidence bar, the search returns no results. Use this when a plausible-but-wrong answer is worse than none. * **`off`**: show everything together. Return every result above the retrieval bar in score order, with no suggestion header and no split between strong and weak. You also set the wording of the suggestion header (**Match Quality Title**) and the per-result label (**Card Relevance Text**), so the message fits your product's voice and language. **No Results Text** replaces the default *"No results found"* when a search returns nothing at all. The two bars are **Similarity Threshold** and **Confidence Threshold**. ![The Exploratory section of Search Behavior with Exploratory Mode, Match Quality Title, Card Relevance Text, No Results Text and the two thresholds](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/exploratory.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=48e85aa5569e7d7abf08153eb53833ed) Exploratory section of Search Behavior ### Publications your archive doesn't include Readers sometimes ask for a publication your archive doesn't hold, or ask for help with their subscription or login. Raily can recognize these requests and answer with a line you write instead of serving unrelated results. Raily sets up the list of publications your archive doesn't include; you write the replies in the **Replies About Publications And Accounts** section of **Search Behavior**: * **Excluded Source Ask Back**: a reply when the reader asks only for a publication you don't hold, offering to search your own content instead. * **Excluded Source Notice**: a line shown above your results when the reader pairs that publication with a subject you do cover. * **Service Request Reply**: a reply pointing readers to customer service when they ask about a subscription, billing, login, the app, or newsletters. ![The Replies About Publications And Accounts section with three reply fields](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/publication-replies.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=fce496201e63dee1f6b50bc7823586d1) Replies About Publications And Accounts Leave a reply empty and Raily searches as usual. To set up the publication list, [contact us](https://www.raily.ai/contact). ## Reranking Search finds candidates by meaning. A reranker takes the top candidates and scores each one again, more carefully, against what the reader asked, then reorders them. The best answer moves to the top, and results that only look related can be dropped. The reranker scores results against a one-sentence restatement of the request that the intent analyzer writes. So when a reader follows up with *"yes, find it for me"*, the results are still judged against the article they asked about, not against those four words. ### Choose a reranker type Open the endpoint's **Search config** and go to **Search Behavior**. In the **Reranker** section, turn on **Enabled**, then pick a **Reranker type**: ![The Reranker section with Enabled, Reranker type, Provider, Model and the threshold fields](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/reranker.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=8e9474268addd825be6ad2c37f2bdc6b) Reranker section of Search Behavior * **`cross_encoder`**: a dedicated ranking service. Fast, and a good default for most content. * **`llm`**: a language model reads each result and grades how well it answers the request: off-topic, related, partly answers, or answers. Choose a **Model** from the list. Use `llm` when results match the right words but miss the point of the question, for example when readers ask nuanced questions, compare positions, or ask for one specific piece among many similar ones. It costs more and adds some time to each search, because the model reads every result it grades. Two thresholds decide what survives: * **Ignore Threshold**: results scoring below it are removed. For `llm` the default removes off-topic results. * **Confidence Threshold**: results below it are shown as weaker suggestions (see [When nothing closely matches](#when-nothing-closely-matches)). For `llm` the default counts a result as a strong match when it answers the request at least partly. ### Rerank passages or whole articles The reranker in **Search Behavior** works on the endpoint's merged results. To rerank individual passages, or whole articles after chunking, set the **Reranker** on the Source's **Data description** page instead. It needs an enabled **Chunker** first. ### Run LLM reranking on your own key LLM reranking with a Gemini model can run on your Account's own Google AI key. Assign **Reranking** to your key on the [Model keys](/integrations/model-keys) page. Cross-encoder reranking always runs on Raily. ## Result cards When a result has no value for a field shown on its card, such as no author or no date, the card shows a default. You can change it per field on the endpoint's **Display** tab: open a slot on the card and use **When the field is empty** to keep the default, choose **Show nothing**, or choose **Show custom text** (for example *"Editorial team"*). Apps that use an API key receive the same text in the result's fields. ![The Display tab with the card fields on the left and a live card preview on the right](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/display.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=8ac0d5a995298fadbc170bf5d9c71dd3) Display tab: select any part of the card preview to configure it ## Rules Rules tell the agentic layer how your business wants certain requests handled. You write each rule in plain language, and Raily applies it when it reads a request. Typical uses: * Keep a topic or content type in front for certain questions ("For analysis questions, prefer investigative pieces"). * Map your readers' wording to how your content is labeled. * Set a default the reader doesn't state ("When no date is given, prefer the last two years"). To add rules, open the endpoint's **Search config** and go to **Search Rules**: **1. Add a group** Click **Add group** and name it, for example `freshness`. Groups keep related rules together. **2. Write the rule** Click **Add rule** and type it in the box that says **State the rule in plain language…**. On an endpoint with several sources, use **Applies to** to limit the rule to some of them, or leave **All sources**. **3. Add an example** Each rule needs an example: a request a reader might send and the filter values you expect. The example shows Raily what the rule means in practice. **4. Save** Click **Save rules**. Agents use the new rules on their next search. ![The Search Rules tab with a rule group open, showing Applies to, the rule text and its required example](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/search-rules.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=488cf5e3248c227f60537b40bebe6175) A rule with its example on the Search Rules tab ## Where you change these settings Search settings are edited in the Raily app. Raily writes a first version for you when you connect a Source, and every save is kept in **History**, so you can see what changed and restore an earlier version. **On the endpoint**, open the endpoint and select **Search config**. The page has these tabs: ![The Search config page with its tabs and the top of Search Behavior](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/tabs-search-behavior.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=827f80d6691207bace67ad99f2115043) The endpoint's Search config page * **Per source** - only on endpoints that search several Sources. Settings for each Source on this endpoint. * **Search Rules** - rules written in plain language that shape how searches run. * **Search Behavior** - result limits, the relevance and confidence bars, weaker-match handling, the zero-result fallback, query analysis, and the reranker. * **Display** - how result cards look. * **Tool description** - how agents see this endpoint's search tool. * **History** - every saved version. A save on the endpoint changes only that endpoint. Saving on **Search Behavior** applies immediately. A message confirms that agents use the change on their next search. If the endpoint doesn't confirm in time, a warning says searches pick it up within 5 minutes, with a **Retry now** button. To start over from your sources, click **Regenerate with AI** on the **Search Behavior** tab. AI rewrites the result limit, suggested questions, weak-match and no-results text, coverage replies, topic labels, search rules, and reranker. Settings you changed on the endpoint are replaced, and the current version stays in **History**. > [!NOTE] > > Card display is shared by every endpoint that searches a source. If saving on **Display** would change cards on other endpoints too, Raily names them and asks you to confirm with **Save for all**. ### Tune each source on a multi-source endpoint The **Per source** tab lists the endpoint's sources on the left (a dropdown on narrow screens). Under each name you see **Follows its source**, a count such as **2 set on this endpoint**, or **Not searched**. Select a source to see its settings: search strategy, similarity threshold, query analysis type, filter relaxation, and zero-result fallback. A label next to each one tells you where the value comes from: * **From source**: the endpoint uses the source's own value. Click **Keep this value on the endpoint** to pin it, so later changes to the source don't reach this endpoint. * **Set on this endpoint**: you changed it here. The label also shows the value it would fall back to. Click **Reset to source** to follow the source again (or **Reset to endpoint default** when the source has no value of its own). * **Endpoint default** or **Default**: neither the source nor the endpoint sets it, so the **Search Behavior** value or Raily's default applies. Change a value and click **Save**. Values you haven't saved show **Not saved yet**; **Discard changes** throws them away. If a source's setting overrides the **Search Behavior** default, the **Search Behavior** tab tells you which settings don't apply to it. Each source card also has a **Data description** link to the source's own page. ![The Per source tab with the endpoint's sources on the left and one source's settings labeled From source](https://mintcdn.com/railyai/0r2mubUDyIeBCoJI/images/search-config/per-source.png?fit=max\&auto=format\&n=0r2mubUDyIeBCoJI\&q=85\&s=9d373634475e0a724aeafe3d704803b7) Per source tab on a multi-source endpoint **On the Source**, open its **Data description** page to describe your data: which fields exist and how each can be filtered, plus chunking, result grouping, nearby-passage expansion, time decay, and passage-level reranking. These settings apply to every endpoint that uses the Source. ## Next Steps > [card] [AI Endpoints](/concepts/ai-endpoints) > > Expose your data to AI agents via authenticated endpoints # Create and configure AI endpoints Source: https://docs.raily.ai/concepts/ai-endpoints Create an endpoint, choose the sources it searches, tune its search settings and description, and restore earlier versions. An endpoint is the authenticated address your audience connects to. One endpoint serves AI agents (Claude, ChatGPT, Cursor) over MCP and your own apps through the SDK with an API key. It searches one or more of your sources and answers every request through a single search tool. Each endpoint has: * **A sign-in provider.** Your users sign in before they can search. There is no open, no-auth option. * **One or more sources.** When an endpoint searches several sources, Raily merges the results into one list and balances them across the sources. * **Its own search config.** Search behavior, rules, card display, the tool description, and version history all live on the endpoint. Changing them never changes your sources or your other endpoints. * **Analytics.** Raily records every call, so you can see who searched what and how fast the endpoint answered. ![New endpoint form with name, collections, who can connect, and Search results with UI](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/add_server/AI_endpoint.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=35da26f23b77e9d9c19e55ac001c4c18) Create a new endpoint ## Create an endpoint Your endpoints live in the **Your audience** panel on the right of **Search Rail**. Each one shows the sources it searches and whether it's active. Click **New endpoint** to add one. You can also start from a source: in its **Searched by** row, click **add endpoint**, then pick an existing endpoint or choose **Create a new endpoint for** that collection. In trial mode, Raily has already created one endpoint for you. You can't add a second, but you can point it at any collection you connect. Before you begin, connect a source and let Raily finish setting it up, and make sure the Organization has a [sign-in provider](/concepts/identities-and-auth). The form tells you if either is missing. **1. Name the endpoint** Type a **Name** your audience recognizes (for example `partner-api`). Raily assigns the endpoint URL when you click **Create endpoint**. **2. Choose the collections** Under **Collections**, click **Choose** (or **Change** if you started from a source) and pick one collection or several. Each one appears as a chip; click its **×** to drop it. With more than one selected, the form confirms that the endpoint searches them all through one search tool. Searching several sources from one endpoint is available on paid plans. **3. Choose who can connect** Pick a sign-in provider under **Who can connect**. Your users sign in with it before searching. **4. Set how results render (optional)** Leave **Search results with UI** on and your users get a rich, interactive results page inside Claude or ChatGPT, branded with your data. Turn it off for plain text. More in [Search with UI](#search-with-ui) below. **5. Add internal notes (optional)** Open **Advanced** for a **Description** (an internal note for your team, never shown to agents), **Agent instructions** (sent to agents when they connect, to tell them how to use this endpoint), and rate limits. **6. Create the endpoint** Click **Create endpoint**. Nothing is saved before this. The new endpoint starts from the search config Raily already generated for each source, so it answers right away. From then on the settings belong to the endpoint: edits you make on it stay on it. ## Add or remove sources Open the endpoint and find **What this endpoint serves**. **1. Open the source picker** Click **Manage sources**. Every source the endpoint searches today is already selected. **2. Pick the sources** Select the sources to add and clear the ones to drop, then apply. An endpoint always keeps at least one source. **3. Wait for the live test** Raily updates the endpoint, runs a live test search, and rolls the change back if the search returns nothing. A message confirms which sources were added or removed. To drop one source quickly, click the **×** on its chip. The × appears only when the endpoint searches more than one source. You can also add a source from its own page. In the **Searched by** row, click **add endpoint** and pick the endpoint. Raily asks you to confirm (**Add it here**). Nothing the endpoint already searches is removed. On a trial plan the button reads **Change** instead, and picking a collection switches the endpoint to it. When an endpoint's sources change, Raily regenerates its search settings with AI to fit the new set. The **Search Behavior** tab shows **Regenerating with AI…** while it runs, then a note that names the sources added or removed and how many settings changed. Click **Review changes** to see them in **History**, or **Restore previous** to undo the regeneration. ## Search settings Open the endpoint and click **Search config** to change how its searches run: rules, search behavior, the reranker, and how result cards look. Each tab is described in [Agentic Layer](/concepts/agentic-layer#where-you-change-these-settings). The tool description and version history are covered below. ## Write the tool description Agents like Claude and ChatGPT read the tool description to decide when to search this endpoint. Edit it on the **Tool description** tab. The limit is 8,000 characters. **One source.** Agents read the description Raily generated for the endpoint's source. Edit the text and click **Save** to use your own, or click **Regenerate with AI** to have AI write a new one from the source's description. **Several sources.** Agents read one description combined from each source's description. Raily combines it again whenever a source is added or removed, or a source's description changes. Choose how it's combined: * **Combine with AI** writes one description from all the parts. It takes about a minute, and agents keep reading the current description until it's ready. * **Combine using code** joins the parts without AI. If a part has to be shortened to fit the limit, the tab tells you which source's description is cut. To use your own text for the whole endpoint, edit it and click **Save**, then confirm **Save my description**. Your text no longer updates when sources change. To go back to a combined description, click **Regenerate with AI**; your text stays in the endpoint's history. Regenerating or combining with AI uses your AI generation budget. ## Restore an earlier version Raily saves a version each time the endpoint's search config or its sources change. Open the endpoint and click **Config history**, or open the **History** tab on its search config page. Each version shows how it was made (**Generated**, **Manual edit**, or **Sources changed**) and when. **1. Compare a version** Click **Diff vs live** to see what differs from the current config. **2. Restore it** Click **Restore** and confirm. The version becomes this endpoint's live search config right away. Its sources and your other endpoints don't change, and the current config stays in history so you can switch back. A version saved when the endpoint searched a different set of sources can be compared but not restored. ## Search with UI **Search results with UI** controls how this endpoint presents results in the connected AI client. Turn it on and the endpoint returns an interactive results page that the client renders in the chat: the MCP UI in clients like Claude, or the app UI in ChatGPT. Turn it off and the same results come back as plain text, which every client can read. ![The Search with UI toggle on an AI Endpoint](https://mintcdn.com/railyai/-DsVB9Gn8aLgjqgb/images/search_with_ai.png?fit=max\&auto=format\&n=-DsVB9Gn8aLgjqgb\&q=85\&s=4657a4ad90e4155da9e7ef7136ae9a13) Search with UI With it on, a reader can scan, filter, and open results visually without leaving the chat. The fields shown on the cards come from your [Data Catalog](/integrations/data-catalog) and the endpoint's **Display** tab. ## Analytics Raily records every call to every endpoint: * **Total Calls**: the number of requests to the endpoint * **Average Response Time**: how long the endpoint took to answer * **Total Input Tokens** and **Total Output Tokens**: tokens sent in requests and returned in responses * **Average Input/Output Tokens**: per-request averages * **Access patterns over time**: a timeline of usage See them in the Raily dashboard at [app.raily.ai/dashboard](https://app.raily.ai/dashboard). ## Next steps > [card] [Providers](/concepts/identities-and-auth) > > Add a sign-in provider for your endpoints > [card] [Analytics](/features/analytics) > > View endpoint analytics and metrics # Discoverability Source: https://docs.raily.ai/concepts/discoverability Making your content discoverable and accessible to AI systems ## Overview Discoverability in Raily refers to how AI systems can find, understand, and access your content. Raily helps you measure and optimize how LLMs discover and select your data and AI Endpoints. ## Why Discoverability Matters AI systems need to discover the right content at the right time. Effective discoverability ensures: * **Relevance** - AI finds the most appropriate content for each query * **Efficiency** - Reduced time and cost in content retrieval * **Context** - AI understands the purpose and structure of your content * **Selection** - Your content is chosen by LLMs when relevant ## Discoverability Metrics Track how your data and AI Endpoints are being selected by LLMs through the Raily dashboard at [app.raily.ai/dashboard/discoverability](https://app.raily.ai/dashboard/discoverability). ### Total Tests The total number of discoverability tests performed to measure how LLMs find and select your content. ### Discovery Rate The rate at which your data and AI Endpoints are successfully discovered by LLMs. ### Passed Tests The number of tests where your data/AI Endpoints were successfully discovered and selected by LLMs. ### Failed Tests The number of tests where your data/AI Endpoints were not discovered or selected by LLMs. ### Discoverability by Prompt Complexity A breakdown showing how discoverability varies across different levels of prompt complexity, helping you understand which types of queries surface your content. ### Confusion Matrix A confusion matrix visualization showing the accuracy of discovery predictions versus actual selections by LLMs. ## Key Elements of Discoverability ### Metadata Comprehensive metadata helps AI systems understand your content: * Titles and descriptions * Categories and tags * Authors and publication dates * Topics and keywords * Language and format ### Content Organization Structured organization improves AI comprehension: * Content hierarchies * Collections and groupings * Taxonomies and categories * Related content relationships ### Access Information Clear information about content availability: * Access levels and requirements * License types and terms * Usage restrictions and permissions * Pricing and contact information ## Best Practices > [card] Rich Metadata > > Provide comprehensive, accurate metadata for all content > [card] Consistent Structure > > Use consistent organization and categorization > [card] Monitor Metrics > > Track discoverability metrics to optimize selection rates > [card] Clear Access Terms > > Make licensing and access terms transparent ## Next Steps > [card] [Discoverability Analytics](/features/discoverability) > > View detailed discoverability metrics and analytics > [card] [AI Endpoints](/concepts/ai-endpoints) > > Expose your data to AI agents via authenticated endpoints # Configure sign-in providers for MCP endpoints Source: https://docs.raily.ai/concepts/identities-and-auth Configure Raily-hosted sign-in or an OIDC provider, test the connection, and attach it to a Raily MCP endpoint. Every MCP endpoint needs a sign-in provider. Use Raily-hosted sign-in to grant access by email and choose each person's endpoints in Raily. Connect your own OpenID Connect provider when your organization manages access in Google, Microsoft Entra ID, Auth0, Okta, Keycloak, or another OIDC provider. Manage providers under **Security → Access → Sign-in providers**. ## Before you begin You need a paid plan and permission to manage sign-in providers in the selected Organization. Account Owners and Administrators have this permission. A role assigned in a parent Organization also applies in its descendants. For an external provider, you also need permission to create or edit an OIDC web application. Raily shows provider-specific setup instructions. The redirect URI is generated after you attach the provider to an endpoint. > [!NOTE] > > Raily-hosted sign-in does not need external credentials. You manage its users and endpoint grants in Raily. ## Choose a provider | Provider | Use it when | Configuration you need | | - | - | - | | **Raily-hosted** | You want to add people by email and grant endpoints in Raily. | No external credentials. Each Organization can have one Raily-hosted sign-in. | | **Google** | Your organization admits users through Google. | A Google OAuth client. You can enter its client ID and secret or upload its credentials JSON file. | | **Microsoft Entra ID (Azure AD)** | Your organization uses a Microsoft Entra directory. | The tenant ID, client ID, and client secret. Use a single-tenant issuer. | | **Auth0** | Your organization uses an Auth0 tenant. | The tenant issuer URL, client ID, and client secret. Keep the trailing slash in the issuer URL. | | **Okta** | Your organization uses an Okta organization or custom authorization server. | The issuer URL, client ID, and client secret. Include the authorization server path when you use one. | | **Keycloak** | Your organization uses a Keycloak realm. | The realm issuer URL, client ID, and client secret. Use the realm URL, not the admin console URL. | | **Custom** | Your organization uses another OpenID Connect provider. | The issuer URL, client ID, and client secret. The provider must support the authorization code flow with client secret authentication. | ## Set up Raily-hosted sign-in Raily creates a hosted sign-in when it creates a new Organization. If the selected Organization does not have one, the provider list shows **Set up Raily sign-in**. **1. Open Sign-in providers** Go to **Security → Access → Sign-in providers**. If the selected Organization does not have a hosted provider, the setup banner appears above the provider list. ![The Sign-in providers page with the Set up Raily sign-in banner](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-09-setup-raily-signin.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=562bbc731322f827f02793cb8e3c0cf7) **2. Set up Raily sign-in** Select **Set up Raily sign-in** and wait for **Raily sign-in** to appear as **Verified** and **Active**. ![The provider list after Raily sign-in has been set up, showing Verified and Active status](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-10-raily-signin-created.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=360eb5303d482cdd8a03629bb54d5a43) You can now attach this sign-in to an endpoint and [grant people access by email](/features/users). ## Configure an external OIDC provider Keep Raily and your identity provider open while you work. The wizard shows how to create the OIDC application and where to find its client ID and client secret. You will add the endpoint-specific redirect URI after you attach the provider in Raily. **1. Open the provider wizard** Go to **Security → Access → Sign-in providers**, then select **Configure OAuth Provider**. ![The Sign-in providers page with the Configure OAuth Provider button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/01-sign-in-providers-configure-oauth.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=65ff9bbb6573610d436cf3bafd1202c0) **2. Name the configuration** Open **Provider** and choose your identity provider. If yours is not listed, choose **Custom**, the last option, to connect any other OpenID Connect provider. ![The provider picker with Raily, Google, Azure AD, Auth0, Okta, and Keycloak](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/02-provider-picker-all-types.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=7bd0bd6995610e6d45f6614cb1bdec00) Enter an **OAuth Client Name**, then select **Continue**. The name only identifies this configuration in Raily. ![Basic Information with Google selected, an OAuth client name, and the Continue button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/03-google-basic-information.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=47038be6cc57d89005d2f5fcea8056b9) **3. Enter the provider credentials** Follow the setup instructions shown for your provider. They list the application type and the values to enter in your provider. ![Google OAuth setup instructions with the consent screen and OAuth client application settings](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/04-google-provider-setup-instructions.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=2d1e2b934655518c8f6a8e466a7dddd5) Enter the **Issuer URL**, **Client ID**, and **Client Secret**. For Google, you can upload the credentials JSON file from Google Cloud Console instead. For Microsoft Entra ID, enter your directory's **Tenant ID**. Do not use `common`, `organizations`, or `consumers` because Raily cannot verify their placeholder issuer. For **Custom**, the issuer is the URL your provider serves `/.well-known/openid-configuration` from. **Discover Config** fills in the value the provider declares. Raily does not save the client secret in your browser while you work through the wizard. If you leave the wizard and come back, enter the **Client Secret** again. ![Google provider credentials with the issuer URL, client ID, client secret, and Discover Config button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/05-google-credentials-example.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=965ff7e85c678f3296e0d0c940f5df0d) **4. Discover the OpenID configuration** Select **Discover Config**. Raily reads the provider's OpenID configuration and fills in its authorization and token endpoints. Review the issuer if Raily updates its spelling, then select **Continue**. ![Verify and Save showing the issuer, authorization endpoint, token endpoint, and a successful configuration discovery](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/06-discovered-openid-configuration.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=32ca1fe136ae664e9960b8f762b8ea07) **5. Review the connection test and save** Raily tests the client credentials automatically when you continue. Confirm that **Verify & Save** says **Connected** and that the issuer and endpoints are correct. ![Verify and Save showing a successful Connected test for a Google provider](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/07-verify-save-connected.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=beae26a25160ae4ed04b802bddd67fa4) Select **Save**. The provider now appears as **Verified** and **Active**. Open its row menu and select **Test Connection** whenever you need to test it again. ![A verified and active Google provider with its row menu open, showing Test Connection](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/08-google-provider-verified-active.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=b11861ec9b6040a8080107d370e79b07) ## Attach the provider to an endpoint Adding a provider does not change any endpoint until you attach it. 1. When you create an endpoint, choose the provider under **Who can connect**. To change an existing endpoint, open it and choose the provider under **Security → Sign-in provider**. 2. Select **Create Server** or **Save Changes**. > [!NOTE] > > For an external provider, the endpoint page shows **1 step to go live** with the endpoint's redirect URL. Copy it, add it to the allowed callback URLs of the OIDC application in your provider, then select **I've added it** to mark the step done. Each endpoint has its own redirect URL. Raily-hosted sign-in does not need this step. On an endpoint that uses Raily-hosted sign-in, you can also choose who may start using it: only people you invite, or anyone who signs up. See [Open sign-up](/features/access#open-sign-up). ![An endpoint page with Google Provider selected and the Redirect URI to register](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/09-endpoint-settings-who-can-connect-redirect-uri.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=e85d621da429170bd3f648f8524bd571) People must sign in through the attached provider before they can search. Every endpoint needs a provider. Raily does not offer an open endpoint without authentication. ## Next steps > [card] [Access control](/features/access) > > Choose between user grants, external sign-in, and API keys > [card] [Add and manage users](/features/users) > > Grant endpoints through Raily-hosted sign-in # Connect an agent over A2A Source: https://docs.raily.ai/connect/a2a Let Copilot Studio, ServiceNow, Foundry, Gemini, or your own agent search your endpoint over the Agent-to-Agent protocol. Every Raily endpoint also speaks the Agent-to-Agent (A2A) protocol. An agent built on another platform, such as Microsoft Copilot Studio or ServiceNow, can send your endpoint a question and get back the same results your MCP clients and SDK apps get. It uses the same sources, the same search config, and the same API key. Raily supports A2A v1.0 and v0.3. > [!NOTE] > > A2A is available on request. [Contact us](https://www.raily.ai/contact) to turn it on for your Account. Until it is on, the A2A addresses below return `404` and the endpoint page does not show the A2A card. ## Before you begin * A2A is on for your Account. * You have an endpoint that serves search. See [AI Endpoints](/concepts/ai-endpoints). * You have an API key that covers the endpoint. Create one under **API access** on the endpoint page, or on the **API keys** tab in [Access](/features/access). ## Get the agent URL **1. Open the endpoint** In **Search Rail**, select the endpoint under **Your audience** to open its **Endpoint settings** page. **2. Find the A2A card** The **Connect an agent (A2A)** card shows the agent URL with a copy button. Under it, **Agent card:** shows the agent card URL. Both are built from the endpoint's address: | | Address | | - | - | | Agent URL | `{endpoint address}/a2a` | | Agent card | `{endpoint address}/.well-known/agent-card.json` | The endpoint address is the endpoint URL without the trailing `/mcp`, for example `https://endpoints.app.raily.ai/t/your-workspace/123`. **3. Paste it into your agent platform** Click **Where to paste it** on the card for steps in Microsoft Copilot Studio, Microsoft Foundry, ServiceNow AI Agent Fabric, Google Gemini Enterprise and ADK, and frameworks like LangGraph and CrewAI. Some platforms ask for the agent URL, others for the agent card URL. For the key, send it as `Authorization: Bearer `, or in an `X-API-Key` header when the platform asks for a named header. If the endpoint has an active [custom domain](/features/custom-domains), the card shows the agent URL on that domain, plus a **Default agent URL (always works)** line. Both reach the same endpoint. ## Sign-in A2A uses the same credentials as the rest of the endpoint: * An API key (`rly_...`) that covers this endpoint, sent as `Authorization: Bearer` or in `X-API-Key`. * An OAuth access token from the endpoint's sign-in, sent as `Authorization: Bearer`. Most A2A platforms take an API key. A request with no valid credentials gets `401`. The agent card itself is public, so platforms can read it before they authenticate. ## Skills The agent card lists the skills your endpoint offers: * **Search** is always the default skill. Every message without a skill selection runs it, which covers all chat platforms. * **Summary** appears when the endpoint also has a summary tool. It returns a written overview of what your content covers, plus the same overview as typed data. The message still needs some text, but the summary ignores it. A client that can attach metadata selects a skill by its id from the agent card, with `"skill": ""` in the message or request metadata. An unknown id is rejected. ## Try it with curl Fetch the agent card: ```bash theme={null} curl https://endpoints.app.raily.ai/t/your-workspace/123/.well-known/agent-card.json ``` The card names the endpoint, lists `supportedInterfaces` (the agent URL for versions `1.0` and `0.3`), the `skills`, and the accepted credentials. Send a message with A2A v1.0 (`SendMessage`): ```bash theme={null} curl https://endpoints.app.raily.ai/t/your-workspace/123/a2a \ -H "Authorization: Bearer $RAILY_API_KEY" \ -H "Content-Type: application/json" \ -H "A2A-Version: 1.0" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "SendMessage", "params": { "message": { "messageId": "m1", "role": "ROLE_USER", "parts": [{ "text": "What changed in the 2025 policy?" }] } } }' ``` A v0.3 client sends the same request with `"method": "message/send"`, `"role": "user"`, and parts in the form `{ "kind": "text", "text": "..." }`. You can send the key in `X-API-Key` instead: ```bash theme={null} curl https://endpoints.app.raily.ai/t/your-workspace/123/a2a \ -H "X-API-Key: $RAILY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 2, "method": "message/send", "params": { "message": { "kind": "message", "messageId": "m2", "role": "user", "parts": [{ "kind": "text", "text": "What changed in the 2025 policy?" }] } } }' ``` To run a different skill, add metadata to the message: ```json theme={null} "message": { "messageId": "m3", "role": "ROLE_USER", "parts": [{ "text": "What does this archive cover?" }], "metadata": { "skill": "" } } ``` ## What comes back The reply is one message with two parts: * A **text** part with the readable answer, the same text an AI agent would see. * A **data** part (`application/json`) with typed results under `results`. Each result has the same shape as an SDK search result: `id`, `score`, `text`, `fields`, and links where your content has them. Both parts arrive whether you sign in with an API key or OAuth. To get only one, set `acceptedOutputModes` in the request's `configuration` to `["text/plain"]` or `["application/json"]`. Every reply is a direct message. Raily does not create long-running tasks or send push notifications. Calls over A2A appear in the endpoint's activity like any other call. On **Access Overview**, the **Protocols** card counts them under **A2A**. ## Next steps > [card] [Search from your app](/connect/sdk) > > Call an endpoint with an API key > [card] [Deep research](/features/deep-research) > > Give agents multi-step research # Connect a Raily MCP endpoint to ChatGPT Source: https://docs.raily.ai/connect/chatgpt Connect a Raily MCP endpoint to ChatGPT as a custom plugin with OAuth. Turn on developer mode, sign in, select the plugin, and verify search inside a chat. Add Raily as a custom plugin so ChatGPT can search your endpoint inside a normal chat. These steps cover self-service custom plugins on ChatGPT web. Availability depends on your plan, role, workspace settings, and rollout. If your workspace uses **Apps**, ask an administrator or authorized developer to add the same MCP server URL there. ## What you need Before you start, get two things from your Raily administrator: * **Your connect link.** This is the MCP server address for the endpoint you should reach. For Raily-hosted sign-in, the administrator can copy it after [granting access](/features/users). An external provider does not use a Raily user grant. * **Confirmation of how you sign in.** For a Raily-hosted sign-in, use the email address your administrator granted. For a bring-your-own sign-in, use your normal account with that identity provider. A different account may be refused. You also need access to developer mode, where ChatGPT lets you add custom plugins. ## Turn on developer mode 1. Open **Settings**, then **Security and login**. 2. Switch **Developer mode** on. 3. Leave **Enforce CSP in developer mode** on. ![Settings, Security and login, with Developer mode and Enforce CSP in developer mode both on](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-01-developer-mode.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=5af2472c3a91def24ba07045ffa70692) ChatGPT labels developer mode **ELEVATED RISK** because custom plugins have not been reviewed. Add only servers that you or your organization control. Keep **Enforce CSP in developer mode** on so the plugin uses the same restrictions it would have in production. If there is no **Developer mode** setting, self-service custom plugins may be unavailable for your plan, role, workspace settings, or rollout. On a managed workspace, ask an administrator whether they can enable it or add the endpoint through **Apps**. ## Add the plugin **1. Open Plugins** Select **Plugins** in the sidebar, then the **+** at the top right of the page. **2. Name it** Enter a **Name** and a short **Description** you will recognize later. The icon is optional. **3. Paste your connect link** Leave **Connection** on **Server URL**, and paste your connect link into the field below it. **4. Keep Authentication set to OAuth** Raily identifies you through your sign-in. **OAuth** is already selected, so do not change it. **5. Confirm the warning** ChatGPT warns that custom MCP servers introduce risk. Read it, then tick **I understand and want to continue**. **Create** stays greyed out until you do. ![The New Plugin form with the Raily endpoint URL, OAuth authentication, risk confirmation, and Create button](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-02-new-plugin-form.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=645eafbb506c4d47b5f839f1076f06e8) **6. Select Create** ChatGPT connects to the server and hands you over to Raily to sign in. > [!WARNING] > > The address field suggests an example ending in `/sse`. Your Raily connect link ends in `/mcp`. Paste it as you were given it, and do not change the ending to match the example. > [!NOTE] > > You can check the link before you create anything. Once you paste a working address, the text under **Advanced OAuth settings** stops asking for a valid MCP server URL and offers to review the settings it found. If it does not change, the link is wrong or the server cannot be reached. This self-service setup does not roll the plugin out to your workspace. On a managed workspace the Plugins page also has tabs for public plugins and for your workspace, but a workspace-wide rollout is an administrator's job and is not covered here. ## Sign in to Raily After you select **Create**, ChatGPT starts the connection. What appears after the first Raily screen depends on the endpoint's sign-in provider. **1. Start the sign-in** ChatGPT shows **Add** your plugin name **to ChatGPT**, with its own notes on permissions and data. Select **Sign in with** your plugin name. ![The ChatGPT sign-in prompt for a Raily plugin, with a Sign in with Raily button](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-03-sign-in-prompt.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=076cdb0178a9be0170e97c7e9ff775b1) **2. Confirm the connection** The first Raily screen is headed **Connect ChatGPT to** the Organization name shown to users. It lists what ChatGPT will be able to do: view your email address, view your basic profile, and remember the connection. Check the client and Organization, then select **Continue**. **Cancel** stops the connection. ![The first Raily screen, asking to connect ChatGPT to an Organization, with Continue](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-04-consent-connect.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=0cca4884dedcac9e92aedfd223be15fa) **3. Continue with the sign-in provider** For a **Raily-hosted** sign-in, use the granted email address. A different account may be refused. For a **bring-your-own** sign-in, Raily sends you to the identity provider configured for the endpoint. Use your normal account there and complete any prompt that provider shows. Your provider controls who may continue. **4. Finish a Raily-hosted sign-in** This step appears only for a Raily-hosted sign-in. The second Raily screen shows **Signed in as** your address and what the plugin will be able to do, including searching your endpoint. If the address is wrong, use **Not you? Switch account** rather than continuing. Otherwise select **Allow access**. ![The second Raily screen, showing the signed-in address and Allow access](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-05-consent-allow.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=70acbace7c0624cfa27c4551775212fa) > [!NOTE] > > The consent flow lets ChatGPT use the endpoint as your signed-in identity. It does not create or widen a Raily-hosted endpoint grant. Check the Organization name and signed-in account before you continue. ## Check the connector ChatGPT confirms that the plugin is installed and opens its card. ![The installed connector card, showing the connection, an empty Actions block and the connection information](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-06-installed.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=a52a5a4811d32f9fe6d36e8b6e8e70e2) **Actions** says no app actions are available yet. That is normal right after connecting. Select **Refresh** to scan the server and load its tools. **Information** shows the address you entered, the authorization used, and the date. Check the address here if you manage more than one endpoint. ## Use Raily in a chat A connected plugin is not automatically active. You choose it for the message you are sending. In the composer, select **Plugins** in the row under the box, then your Raily plugin. Its name appears in front of your message. Type your question and send it. ![The composer with the Raily plugin selected and a question typed, before sending](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-08-select-in-composer.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=d329c6a291e0cab8dcc7057cb186178c) Choosing the plugin applies to that message. Select it again for your next question. ## Check that it works An installed status confirms that ChatGPT completed setup. It does not confirm that search returns results. Ask a question that your source content answers. Confirm that ChatGPT uses your content rather than general knowledge. ![An answer in ChatGPT showing article cards returned by the connected endpoint](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/chatgpt/chatgpt-09-result.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=5941a6c9e7f52ec60491caa75b28d583) ## Verify your domain for the ChatGPT app directory This section is for Raily administrators who want to publish an endpoint as an app in OpenAI's ChatGPT app directory. OpenAI asks you to prove you own the app's domain by serving a verification token from it. Raily can serve that token for you. OpenAI checks the root of the domain, so the endpoint needs its own address first: a custom domain or a Raily-hosted address. See [Give an endpoint its own address](/features/custom-domains). The default Raily address can't be used for a directory submission. **1. Use the endpoint's own address in your submission** When you submit the app to OpenAI, enter the endpoint's custom domain or Raily-hosted address as the app's MCP server URL. OpenAI gives you a verification token. **2. Paste the token in Raily** Open the endpoint in **Search Rail**. In the **Submit to ChatGPT App Directory** card, paste the token into **Verification token** and click **Save**. The card appears once the endpoint has a custom domain or Raily-hosted address. **3. Check that Raily is serving it** The message under the field changes to say Raily is serving the token. Raily now answers at `/.well-known/openai-apps-challenge` on the endpoint's address, for example `https://mcp.yourcompany.com/.well-known/openai-apps-challenge`. If the card says the endpoint is still updating, wait a moment before you continue. **4. Finish verification with OpenAI** Go back to your submission and run OpenAI's domain check. Each endpoint holds one token. If the endpoint has several addresses, they all serve the same token, so submit one of them at a time. To stop serving the token, clear the field and click **Save**. If Raily refuses the token, check that you copied only the token, with no spaces or line breaks. ## Next steps > [card] [Connect to Claude](/connect/claude) > > Follow the Claude setup > [card] [Add and manage users](/features/users) > > Grant Raily-hosted user access # Connect a Raily MCP endpoint to Claude Source: https://docs.raily.ai/connect/claude Connect a Raily MCP endpoint to Claude with OAuth. Follow setup for personal or managed workspaces, sign in, set tool permissions, and verify search. Add Raily as a custom connector so Claude can search your endpoint inside a normal conversation. ## What you need Before you start, get the following information from your Raily administrator: * **Your connect link.** A personal user or workspace Owner needs this MCP server URL to add one endpoint. For Raily-hosted sign-in, the administrator can copy it after [granting access](/features/users). An external provider does not use a Raily user grant. * **How to sign in.** For Raily-hosted sign-in, use the email address your administrator granted. For your Organization's identity provider, use your normal account there. A different account may be refused. ## Choose your setup Who adds the connector depends on your Claude plan. | Your plan | Who adds the connector | | - | - | | Free, Pro, Max | You do, in your own settings. Free accounts are limited to one custom connector. | | Team, Enterprise | An Owner adds it once for the whole workspace. You then connect to it. | If you are not sure which setup you have, open Claude settings. If you see **Organization settings**, use the managed workspace instructions. ## Personal account Use this path on Free, Pro, or Max. **1. Open your connectors** Go to **Customize**, then **Connectors**. **2. Add a custom connector** Select **Add**, then **Add custom connector**. ![The Connectors page under Customize, with the Add menu open](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-personal-01-connectors.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=ac8297c873e97c02cb33a4f939ed8d57) **3. Enter the connector details** Give it a name you will recognize, for example `My MCP Search`, then paste your connect link into the address field. Claude expects the full HTTPS address the server answers on, ending in `/mcp`. ![The Add custom connector form with a name and an MCP server URL](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-personal-02-add-custom-connector.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=c4691abe03e3d36d3bd038c6407b35ab) **4. Leave the OAuth credentials empty** Do not enter an **OAuth Client ID** or **OAuth Client Secret**. Raily handles the sign-in. **5. Select Add** The connector opens on its own page, showing its address and the line **You are not connected** yet. ![The connector page before authorizing, showing its address and a Connect button](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-personal-02b-not-connected.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=4503ccf0ee8bd5e984979d10b5a14252) **6. Select Connect** This starts the sign-in. Now go to [Sign in to Raily](#sign-in-to-raily). ## Managed workspace Use this path on Team or Enterprise. Two people are involved: an Owner sets the connector up once, then each member connects to it. ### Owner setup Only an Owner can add a custom connector on Team and Enterprise. An admin who is not an Owner cannot, and neither can a member. **1. Open organization connectors** Go to **Organization settings**, then **Connectors**. **2. Add a custom web connector** Select **Add**, hover over **Custom**, then select **Web**. **3. Paste the connect link** Enter it as the remote MCP server URL. OAuth credentials under **Advanced settings** are not needed. Raily handles the sign-in itself. **4. Select Add** The connector becomes available to members. It does not grant anyone access to your content on its own. Each member still signs in to Raily with their own account: the granted email address for a Raily-hosted sign-in, or their own account with your identity provider for a bring-your-own sign-in. > [!NOTE] > > One connector serves the whole workspace, but access is still per person. If the sign-in rejects a member, Claude shows an authorization error. ### Member connection **1. Open your connectors** Go to **Customize**, then **Connectors**. **2. Find the Raily connector** An Owner already added it. If it is not there, ask an Owner to complete the setup above. **3. Select Connect** This starts the sign-in. Now go to [Sign in to Raily](#sign-in-to-raily). ## Sign in to Raily After you add or connect the endpoint, Claude opens the Raily sign-in flow. What appears after the first Raily screen depends on the endpoint's sign-in provider. **1. Confirm the connection** The first screen is headed **Connect Claude to** the Organization name shown to users. It lists what Claude will be able to do: view your email address, view your basic profile, and remember the connection. Check the client and Organization, then select **Continue**. **Cancel** stops the connection. ![The first Raily screen, asking to connect Claude to an Organization, with Continue](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-consent-01-connect.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=42702768ce7581afda433fcf9c362ff7) **2. Continue with the sign-in provider** For a **Raily-hosted** sign-in, use the granted email address. A different account may be refused. For a **bring-your-own** sign-in, Raily sends you to the identity provider configured for the endpoint. Use your normal account there and complete any prompt that provider shows. Your provider controls who may continue. **3. Finish a Raily-hosted sign-in** This step appears only for a Raily-hosted sign-in. The second Raily screen shows **Signed in as** your address and what the app will be able to do, including searching your endpoint. If the address is wrong, use **Not you? Switch account** rather than continuing. Otherwise select **Allow access**. ![The second Raily screen, showing the signed-in address and Allow access](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-consent-03-allow-access.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=adabaec675f83655627b8240ae0e8413) > [!NOTE] > > The consent flow lets Claude use the endpoint as your signed-in identity. It does not create or widen a Raily-hosted endpoint grant. Check the Organization name and signed-in account before you continue. Claude takes you back, and the connector now shows as connected. ![The connectors list showing the custom connector as connected](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-personal-03-connected.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=e699b296284a304e630fccd38b536d3d) ## Set tool permissions Open the connector from **Customize**, then **Connectors**, and look at **Tool permissions**. A new connector starts at **Needs approval**, which means Claude checks with you before it uses the search tool. Keep **Needs approval** if you want to approve each search. Choose **Always allow** to let Claude search without asking first. **Blocked** turns the tool off without disconnecting it. ![Tool permissions for a connector, with the search tool set to Needs approval and the other choices open](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-personal-04-tool-permissions.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=9fb38bf4f01734b76c3d3e3a3b3f9cf1) ## Turn the connector on A connected connector is not automatically active. You switch it on from the composer. In a conversation, select **+**, open **Connectors**, and switch Raily on. ![The plus menu in the composer, with Connectors open and the connector switched on](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-shared-03-enable-in-chat.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=0e663a684bcfbdf4ef502eb9b5791668) ## Check that it works A connected status confirms that Claude completed authorization. It does not confirm that search returns results. Ask a question that your source content answers. Confirm that Claude uses your content rather than general knowledge. ![An answer in Claude showing article cards returned by the connected endpoint](https://mintcdn.com/railyai/SMGXYipKzkq9y5iz/images/claude/claude-shared-04-result.png?fit=max\&auto=format\&n=SMGXYipKzkq9y5iz\&q=85\&s=c1be1ca9d5152cf2ed4d0058cfc163cd) ## Troubleshooting **There is no option to add a custom connector.** On a Team or Enterprise workspace only an Owner can add one. Being an admin is not enough. Ask an Owner to do the setup above. **The connector is missing from your list on a managed workspace.** An Owner has not added it yet, or added it to a different workspace. **You already have a custom connector on a Free account.** Free accounts are limited to one. Remove the other connector or move to a paid plan. **Authorization fails.** For a Raily-hosted sign-in, confirm that the account matches the granted email and that the grant covers this endpoint. For a bring-your-own sign-in, check that your identity provider admits the account and that its provider configuration is valid in Raily. **You connect successfully, but every search is empty.** Ask a question you know the endpoint's source can answer. If the result is still empty, check the source data, indexing status, saved search configuration, and query. **You reach one endpoint but not another.** Each endpoint has its own connect link. With a Raily-hosted sign-in, confirm that the grant scope includes the other endpoint, then ask for that endpoint's link. With a bring-your-own sign-in, confirm that the endpoint uses your provider and that the provider admits your account, then ask for its link. **You had access and lost it.** With a Raily-hosted sign-in, an administrator may have changed or removed your endpoint grant; that change applies on your next request. With a bring-your-own sign-in, check your account in your identity provider, then ask the administrator to check the provider's status and configuration in Raily. **The connect link does not work at all.** Check that you pasted the whole URL. A truncated link fails at the first request. **The connector is connected, but Claude answers from general knowledge.** Connected does not mean enabled for the current conversation. Open **+**, then **Connectors**, and check that Raily is on before you ask again. ## Next steps > [card] [Connect to ChatGPT](/connect/chatgpt) > > Follow the ChatGPT setup > [card] [Add and manage users](/features/users) > > Grant Raily-hosted user access # Search with the SDK Source: https://docs.raily.ai/connect/sdk Call your search endpoint from your code with the Python or TypeScript SDK. Call your Raily endpoint from your own code — a backend service or an agent you build — with a typed client. Install it, add your key, and run a search. > [card] [Python](/sdks/python) > > `pip install raily-ai` > [card] [TypeScript / JavaScript](/sdks/javascript) > > `npm install @raily/sdk` ## Get your endpoint URL and key An endpoint is your authenticated search URL — create one in the Raily app. It needs two things to call: the endpoint URL and an API key. **1. Open an endpoint** In the Raily app, open an endpoint (or create one). Its page shows the **endpoint URL**. **2. Create an API key** Under **API access**, click **Create key**. The full key is shown **once** — copy it now. **3. Set them in your environment** Keep the key out of source control — load it from an environment variable. ```bash theme={null} export RAILY_ENDPOINT="https://endpoints.app.raily.ai/t/your-workspace/123/mcp" export RAILY_API_KEY="rly_..." ``` ## Run your first search ```python Python theme={null} import os from raily import Raily client = Raily( api_key=os.environ["RAILY_API_KEY"], endpoint=os.environ["RAILY_ENDPOINT"], ) results = client.search("your search query", limit=5) print(f"{len(results)} results\n") for hit in results: # `fields` is a flat {name: value} map of your source's display fields title = hit.fields.get("title", "(untitled)") print(f"- {title} (score {hit.score:.2f})") ``` ```typescript TypeScript theme={null} import { Raily } from "@raily/sdk"; const client = new Raily({ apiKey: process.env.RAILY_API_KEY!, endpoint: process.env.RAILY_ENDPOINT!, }); const results = await client.search("your search query", { limit: 5 }); console.log(`${results.length} results\n`); for (const hit of results) { // `fields` is a flat { name: value } map of your source's display fields const title = hit.fields.title ?? "(untitled)"; console.log(`- ${title} (score ${hit.score?.toFixed(2)})`); } ``` ```text Output theme={null} 5 results - Tech Giants Report Record Q1 Earnings Amid AI Investment Surge (score 0.66) - Researchers Achieve Breakthrough in Solid-State Battery Technology (score 0.65) - Scientists Discover New Deep-Sea Species Off the Coast of New Zealand (score 0.63) - Inside the Global Race to Map the Ocean Floor (score 0.63) - Global Leaders Convene for Emergency Climate Summit (score 0.62) ``` > [!NOTE] > > Each result's content lives in **`fields`** — a flat `{name: value}` map of the display > fields configured on your source (e.g. `title`, `text`, `author`, `published_date`). See > [Reading results](#reading-results). ## Reading results `search()` returns a list of results. Each has a `score`, the `source_collection` it came from, and **`fields`** — a flat map of your source's display fields. Read a value by name, or walk the whole map to see what your source exposes: ```python Python theme={null} for hit in client.search("your search query", limit=5): print(f"score {hit.score:.2f} from {hit.source_collection}") for name, value in hit.fields.items(): print(f" {name}: {value}") ``` ```typescript TypeScript theme={null} for (const hit of await client.search("your search query", { limit: 5 })) { console.log(`score ${hit.score?.toFixed(2)} from ${hit.source_collection}`); for (const [name, value] of Object.entries(hit.fields)) { console.log(` ${name}: ${value}`); } } ``` ## Next steps > [card] [Python SDK](/sdks/python) > > Reference, async, errors, recipes > [card] [TypeScript SDK](/sdks/javascript) > > Reference, errors, recipes # Access control for MCP endpoints Source: https://docs.raily.ai/features/access Control access to Raily MCP endpoints with Raily-hosted sign-in, external OIDC providers, Organization grants, and scoped API keys. Every MCP endpoint requires authentication. Use a sign-in provider for user access and an API key for software. Raily does not offer open endpoints without authentication. Even with [open sign-up](#open-sign-up), people must sign in before they can search. Manage both under **Security → Access**. Use **Sign-in providers** for user authentication and **API keys** for apps, scripts, and backend services. ![The Access page, with the Sign-in providers and API keys tabs and a list of providers showing each one's type](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-01-landing.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=91db55dfb8aa25a0f7fa620e6d825628) ## Choose an access method | Who connects | Access method | Who controls access | | - | - | - | | An endpoint user managed in Raily | Raily-hosted sign-in | You manage the user's endpoint grants in Raily. | | An endpoint user managed by your identity provider | External OIDC provider | Your identity provider decides who may sign in. | | An app, script, or backend service | API key | You scope the key to endpoints in Raily. | ## Plans and permissions | Task | Plan | Required role | | - | - | - | | Add, edit, or test a sign-in provider | Paid | Account Owner or Administrator | | Add or change a Raily-hosted user grant | Paid | Account Owner, Administrator, or Editor | | Remove a Raily-hosted user | Any plan | Account Owner, Administrator, or Editor | | Create or manage an API key | Paid | Account Owner, Administrator, or Editor | | Turn on open sign-up for an endpoint | Paid | Permission to edit the endpoint | Roles assigned in a parent Organization also apply in its descendants. ## User access An endpoint user needs three things to reach an endpoint: 1. The endpoint uses a sign-in provider. 2. The provider admits the user. Raily checks an endpoint grant for Raily-hosted sign-in. An external provider applies its own access rules. 3. The AI client has the endpoint's connect link. The user adds it in a personal setup, or a workspace owner or administrator adds it for members. ### Two kinds of sign-in Raily supports two sign-in models. Choose one before you add users to an endpoint because each model handles access differently. | Sign-in | Who controls access | How access is granted | | - | - | - | | **Raily-hosted** | You, inside Raily | You add each user by email and choose their endpoints, or turn on open sign-up for an endpoint. | | **Bring your own** | Your own identity provider | Users admitted by your provider appear in Raily after their first sign-in. | Use **Raily-hosted** sign-in when you want to grant access by email and choose each user's endpoints in Raily. The next section explains these grants. **Bring your own** connects an identity provider you already run: Google, Microsoft Entra ID (Azure AD), Auth0, Okta, Keycloak, or any other OpenID Connect provider through the **Custom** option. You add one from **Configure OAuth Provider** on the Access page. Raily trusts your provider to decide who is allowed. Users admitted by your provider can reach the endpoint and appear in Raily after their first successful sign-in. ![The OAuth client form with the provider list open, showing Raily, Google, Azure AD, Auth0, Okta, and Keycloak](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-02-add-sign-in.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=fd681ac7d447f43b511d2ac12f5e0763) > [!WARNING] > > Raily does not add a second per-user layer for a bring-your-own provider. Your identity provider decides which accounts may sign in; Raily validates the token it returns and the endpoint's provider configuration. To remove a user's access, revoke it for the Raily application in your identity provider, not in Raily. > [card] [Add and manage users](/features/users) > > Grant a user access through Raily-hosted sign-in. ## Raily-hosted user grants This section is about a **Raily-hosted** sign-in, where you control access from inside Raily. To open a Raily-hosted sign-in's user list, go to the **Sign-in providers** tab, open the row menu at the end of the provider, and select **Manage users**. For a bring-your-own provider, select **View synchronized users** instead. Your identity provider manages that list. ![A sign-in provider row with its menu open, showing Manage users](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-01-sign-in-provider.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=95748bb5a7d0edb276b52afb064f4489) Each Raily-hosted user is scoped to endpoints. **All endpoints** covers every endpoint that uses this sign-in in the selected Organization and its descendants, including future endpoints. A named-endpoint grant stays limited to the endpoints you select. Clearing every endpoint blocks the direct grant in the selected Organization. The user stays in your list as **Blocked** and can be granted access again later. It does not override access they inherit from a parent Organization. Removing the user deletes the direct grant on this sign-in and Organization. It does not delete their identity or any access they hold elsewhere. ![A sign-in's user list filtered to a person whose direct grant has No access](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-05-suspend-no-access.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=e8f62d0e4ee8b0614180d426ab630da4) ## Open sign-up By default, an endpoint on a Raily-hosted sign-in admits only the people you add on the Users page. Turn on open sign-up when you want anyone with the endpoint's connect link to create an account and start searching without an invitation. With open sign-up on: * Anyone who signs in with a verified email address gets access to that one endpoint on their first call. It does not give them access to any other endpoint, even one that uses the same sign-in. * New users appear on the sign-in's Users page as **Self sign-up**. * Their searches count toward your usage. The endpoint's rate limit applies to each user, but there is no limit on how many people can sign up. ### Before you begin * A paid plan. On other plans, the option is locked and says **Open sign-up is available on paid plans.** * An existing endpoint that uses a Raily-hosted sign-in. You choose open sign-up when you edit the endpoint, not when you create it. For an endpoint on your own identity provider, your provider already decides who can connect, so the option does not appear. ### Turn on open sign-up **1. Open the endpoint** Open the endpoint and scroll to the **Security** card. **Who can connect** appears under **Sign-in provider**. **2. Choose Anyone (sign-up required)** Select **Anyone (sign-up required)**. Raily asks **Open this endpoint to anyone who signs up?** Select **Open sign-up** to confirm. **3. Save the endpoint** Select **Save Changes**. Open sign-up takes effect when you save. To check it worked, open the sign-in's Users page. A notice at the top says **Open sign-up is on for** and names the endpoint. After someone signs up, they appear in the list with **Self sign-up** in the **Source** column. ### Stop someone who signed up On an open endpoint, block a person instead of removing them. Open their row menu, select **Manage access**, clear every endpoint, and select **Save**. They show as **Blocked** and cannot get back in, even while sign-up stays open. **Remove user** does not keep someone out of an open endpoint. It deletes their grant, and they join again on their next call. ### Turn off open sign-up Edit the endpoint, select **Invited users only** under **Who can connect**, and select **Save Changes**. New people can no longer join on their own. People who already signed up keep their access until you block them. > [!NOTE] > > If you change the endpoint's sign-in provider, the endpoint goes back to **Invited users only**. Turn open sign-up on again if you still want it on the new sign-in. ## API keys for software An app, a script, or a backend service authenticates with an **API key** instead of using a user sign-in. The endpoint keeps its sign-in provider for user access; the key is separate, for software. One key works against any endpoint you scope it to. Create keys in the endpoint form, or manage them on the **API keys** tab under **Access**. **1. Create the key and choose its scope** On the **API keys** tab, select **Create key**. Enter a name, then choose one endpoint, several endpoints, or **All endpoints** in the selected Organization. ![The Create API key dialog, with the All endpoints option and a list of endpoints to scope the key to](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-03-create-api-key.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=74562c84ebb6f4e5440583ad58fa9d35) Select **Create**. **2. Copy the secret** Raily shows the generated secret once. Copy it into your secret manager before you close the dialog. Raily cannot show the same secret again. ![The one-time API key dialog with the full example secret and Copy button](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-08-api-key-secret.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=f38d2191a2000efc3e4e511d0e185432) Select **Done** after you have stored the secret. **3. Manage the key** Open the row menu to edit the key's scope, rename it, rotate its secret, or revoke it. ![The API keys list, with a row menu showing Edit scope, Rename, Rotate secret, and Revoke](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/access/access-04-api-keys-page.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=5dbadcf0e78a6a1151b750926382da27) Rotate the key if its secret may have been exposed. Rotation issues a new secret and keeps the key's name and endpoint scope. Raily shows the replacement secret once. The old secret can still work for up to about 30 seconds because successful checks are cached briefly. Revocation is permanent, and a key must be revoked before you can delete it. A request can still succeed for up to about 30 seconds after revocation because of the same cache. API keys and user sign-ins call the same endpoint search. API key requests return structured JSON. AI clients show a readable answer. A key's access is at the endpoint level: a valid key can use every tool the endpoint publishes. Send it as a bearer token. ```http theme={null} Authorization: Bearer rly_... ``` > [!NOTE] > > Removing an endpoint from a key's scope can take up to about 30 seconds to apply, because a successful check is cached briefly. Widening a scope applies on the next call, since a refusal is not cached. A change to a Raily-hosted user's endpoints applies on their next request. Neither needs you to reissue a link or a key. ## Organizations An Organization is a scope inside your Account. Organizations nest: a parent Organization can hold child Organizations beneath it. Every endpoint, sign-in provider, user grant, and API key belongs to one Organization. ![The Organization hierarchy, a parent Organization with child Organizations nested beneath it](https://mintcdn.com/railyai/QkX95jVa3wtkjF8N/images/access/access-06-organizations.png?fit=max\&auto=format\&n=QkX95jVa3wtkjF8N\&q=85\&s=fb0d531cc2b41958ae1df41c6969f541) ### Access flows down A parent Organization's sign-in provider can serve endpoints in its descendants. An **All endpoints** grant covers endpoints that use that sign-in in the parent and its descendants. A named grant covers only the endpoints you selected. Endpoints and API keys do not inherit. Each belongs to one Organization, and an API key can reach only endpoints in that same Organization, never a child or a sibling. Inheritance only works downward. A grant made in a child Organization does not reach the parent, and it never reaches a sibling. If a user signs in successfully but still cannot reach an endpoint, check which Organization holds their access first. When you view a child Organization, access that came from a parent shows in the list labeled with the Organization it came from. You change that access where it was granted, in the parent, not in the child. ![A child Organization's Access page, its Inherited section listing sign-ins available from the parent Organization](https://mintcdn.com/railyai/QkX95jVa3wtkjF8N/images/access/access-07-inherited-grant.png?fit=max\&auto=format\&n=QkX95jVa3wtkjF8N\&q=85\&s=26b61a830dad42893bdfc7086b55fa85) > [!NOTE] > > Raily creates a hosted sign-in with each new Organization, so you may see one you did not add. If an older Organization does not have one, [set up Raily-hosted sign-in](/concepts/identities-and-auth#set-up-raily-hosted-sign-in). Each endpoint user has one identity across Raily. Each grant belongs to an Account, an Organization, and a sign-in, and then covers either named endpoints or **All endpoints**. A grant in one Account never affects another Account, and a grant in one Organization never reaches a parent or a sibling. ## Next steps > [card] [Add and manage users](/features/users) > > Grant Raily-hosted access and send a connect link > [card] [Providers](/concepts/identities-and-auth) > > Configure Raily-hosted or external OIDC sign-in > [card] [Connect to Claude](/connect/claude) > > Add an endpoint to Claude and sign in > [card] [Analytics](/features/analytics) > > Review endpoint usage # Read your analytics Source: https://docs.raily.ai/features/analytics See who uses your endpoints, from which AI apps, what they ask about, and how fast Raily answers Analytics shows how people and AI apps use your endpoints: how many requests came in, who sent them, which apps they used, what topics they asked about, and how well searches and answers performed. To open it, click **Overview** under **Analytics** in the sidebar, or go to [app.raily.ai/dashboard/access-overview](https://app.raily.ai/dashboard/access-overview). The page has three tabs: | Tab | Use it to answer | | - | - | | **Usage** | How much traffic did my endpoints get, from whom, and how fast was it? | | **Content** | What are people asking about, and is that changing? | | **Quality** | Are searches and answers finding the right content? | Every number covers the Organization you have selected in the sidebar. Activity from other Organizations in your Account, including child Organizations, is not included. Switch Organizations to see theirs. ## Choose the time range and filters The controls at the top right apply to every card on the page. * **Time range.** Pick **Today**, **7 days**, **30 days**, **90 days**, or **1 year**, or click **Custom** to choose your own dates. The default is 7 days. Raily remembers your last choice when you come back. * **Latest request · 7d.** Shows the 7 days ending at your most recent request, instead of the 7 days ending today. Use it when an endpoint has been quiet for a while and the regular ranges come up empty. Hover the button to see the dates it covers. * **Filter.** Narrows the **Usage** and **Content** tabs to: * **Endpoint**: one endpoint, or **All endpoints**. * **Request status**: **Success (200)**, **Client error (400)**, or **Server error (500)**. * **User**: one user or API key. Start typing to search the users who were active in the selected range. Click **Apply**. The **Filter** button shows how many filters are on. * **Refresh** reloads the numbers. Your time range and filters carry over when you switch between **Usage** and **Content**, so you can look at one endpoint or one user on both tabs. **Quality** keeps the time range only. Most cards compare the selected range with the period right before it, for example "vs prev 7 days". > [!TIP] > > Hover any card title or label with a dotted underline to see what it counts. ## Usage Usage is the traffic view. Use it to check adoption, see which AI apps your audience prefers, and spot slow or failing requests. | Card | What it shows | | - | - | | **Requests** | Total requests to your endpoints from AI apps, API keys, website chat, and internal chat, with the change against the previous period. Below the total, the split between **Retrieval** (searches) and **Answers** (chat requests). **Other tools** appears when your endpoints offer extra tools, such as the Knowledge Base summary. | | **Users/Agents** | Unique users with recorded activity, including your team. Each API key counts as one user. **Active** users sent at least one request in the range; **Not active** users have recorded activity but no request. | | **Authentication method** | How requests signed in, as a share of requests: **IdP** (your sign-in), **API key** (apps), **Internal users** (your team in internal chat), or **Not recorded**. | | **Active endpoints** | Endpoints that received at least one request, and each one's share of the total. | | **Over time** | Requests (left axis) and active users (right axis) over the range. Hover a point to see queries per user. Turn on **WAU** to add weekly active users. Longer ranges group by week or month. | | **New users** | Users whose first activity in this Organization falls inside the range, based on all past activity. Use it to see whether new people are starting to use your endpoints. | | **AI clients** | Requests by the app they came from: **Claude**, **ChatGPT**, **Chat** (your website chat), **Internal chat**, and **Other** (other apps, SDKs, browsers, or no recorded app name). Hover an app to see its request count and identified users. | | **Retrieval** | Search performance: **Avg. latency** (average search time), **Chunks returned** (pieces of your content sent back), **Avg. chunks / request**, and **Zero-result rate** (searches that found nothing). | | **Answers** | Chat performance: **Avg. latency**, **Sources given** (sources passed to the model to write answers), **Avg. tokens / answer** (with the split between input and output), and **No-answer rate** (errors or empty replies). Includes failed and pending requests. | | **Protocols** | External requests by connection type: **MCP** (AI apps and SDK calls), **A2A** (agent-to-agent), **REST API** (website chat and direct API chat calls), and **Unknown**. Internal chat is not counted here. | A rising **Zero-result rate** usually means people are asking about things your Sources don't cover, or that a search setting is too strict. The **Content** tab shows which topics those questions are about. Some requests don't record timing or token counts. When that happens, the card says how many requests its numbers are based on. ## Content Content shows what people ask about. Raily groups similar questions into topics automatically. Use it to learn what your audience wants, see which topics are growing or fading, and find gaps in your content. | Card | What it shows | | - | - | | **Requests** | All questions to your endpoints in the range, with the change against the previous period. | | **Topics** | How many different topics people asked about. | | **Concentration** | The share of requests that went to your top 3 topics. A higher number means interest is focused on a few topics; a lower one means it is spread out. | | **Sources** | Where results came from, as a share of results with a known Source. Use it to see which of your Sources does the most work. | | **Topics** | Every topic with its **Share** of all requests, its **Change** in points against the previous period, and a small trend line. Click a topic to see the top questions in it. A **NEW** badge marks a topic that first appeared in this range; a **FADED** topic was asked before but not now. Click **All** to see the full list. | | **Topic trends** | Interest in topics over time, where 100 is the peak among the topics you compare. Click **Compare** to add up to 5 topics. | The **Topics** table also has a row for requests that didn't fit any topic. This usually means topics haven't been set up for that kind of question yet, so lower is better. ## Quality Quality shows how well searches and answers are doing, based on automatic scoring of real requests. * **Retrieval success rate**: how often searches found relevant content. * **Answer success rate**: how often chat answers passed their checks. Shown when your endpoints have chat answers to score. * **Output policies**: the share of compliant images in results. Shown only for Accounts with image output policies. * **Quality over time**: the same rates across the range. For what each score means and how to dig into a weak one, see [Evals](/features/evals). ## Next steps > [card] [Evals](/features/evals) > > Look into individual scores and the searches behind them > [card] [Access](/features/access) > > Manage who can sign in to your endpoints > [card] [Users](/features/users) > > See and manage the users of your endpoints > [card] [AI Endpoints](/concepts/ai-endpoints) > > Expose your data to AI agents through authenticated endpoints # Add chat to an endpoint and your website Source: https://docs.raily.ai/features/chat Turn on Chat for an endpoint, put Raily Chat on your website, and call the chat API from your app. Chat answers questions in plain language from the sources an endpoint already serves. Every answer cites the results it used, with links back to them. It runs on the same search as the endpoint, so a change to the endpoint's sources or search settings shows up in chat too. You can use Chat in two ways: * **Raily Chat on your website.** Add a short script to your site and visitors get a chat button that opens a branded chat panel. * **The chat API.** Your app sends a conversation to the endpoint with an API key and gets back an answer with its sources. Agents in Claude or ChatGPT are not affected. They keep seeing search only. > [!NOTE] > > Chat is available on request. [Contact us](https://www.raily.ai/contact) to turn it on for your Account. Turning Chat on for an endpoint is available on paid plans. ## Turn on Chat for an endpoint **1. Open the endpoint** In the Rail, open the endpoint you want to chat with. Chat needs an endpoint with a search source. **2. Turn on Chat** In the card with **Search results with UI**, turn on **Chat**. You can also turn it on when you create an endpoint: the **New endpoint** form has the same **Chat** switch. **3. Save** Click **Save Changes**. **4. Try it** Click **Preview** next to the **Chat** switch. A preview of Raily Chat opens, answering from this endpoint. Click **Hide preview** to close it. The endpoint now answers the chat API. To show chat on your website, add the website next. If your plan doesn't include Chat, the switch is turned off and the form shows **Upgrade your plan** to turn Chat on. Turning Chat off always works, on any plan. ## Put Raily Chat on your website Raily Chat only loads on the websites you list. A site that isn't on the list can't show it, even with your script. **1. Turn on and save Chat** Follow the steps above. The **Websites** list appears under the **Chat** switch. You can add websites once Chat is saved. **2. Add your website** In **Website address**, type the address of your site, such as `https://your-site.com`, and click **Add website**. Add each address your visitors use. `https://example.com` and `https://www.example.com` are different websites, so add both if both serve your pages. You can add up to 20 websites. **3. Copy the snippet** Under **Paste it into your website's HTML**, click the copy button next to the script. It looks like this: ```html theme={null} ``` **4. Add the snippet to your site** Paste it once, before the closing `` tag on every page where you want chat. You don't need to change it when you add or remove websites later. When it works, the **Chat** row shows a **Live on 1 website** badge (or the number of websites), and a chat button appears on your site. On a trial plan you can see the website list but can't change it. ## Customize the chat Open **Customize the chat** under the website list to match Raily Chat to your brand. Click **Preview** next to the **Chat** switch to see your changes before you save. The preview follows the language you're editing. The settings have three tabs. ### Button * **Style**: **Round**, **Button with label** (an icon with optional text), or **Your own SVG** (a complete SVG of your own). * **Icon**, **Show label** and **Label** for the button, plus **Button background** and **Icon colour**. * **Side** (**Left** or **Right**), **Location** (**Bottom** or **Center**), **Distance from side** and **Distance from bottom**. * Size and shape: **Height**, **Width**, **Rotation** and **Corner radius**, depending on the style. * **Chat opens**: **Above button**, **Beside button**, or **From bottom**. On smaller screens the chat moves to fit. **From bottom** hides the button until the visitor closes the chat. ### Chat * **Chat logo**: click **Add logo** to use an image link (it must be a direct `https://` image that doesn't need a sign-in) or an icon from the library. * **Chat text**, per language: **Chat title**, **Chat subtitle**, **Welcome heading**, **Welcome text** and **Message placeholder**. Pick the language to edit from the menu next to **Chat text**. * **Suggested questions**: up to 4 per language. Visitors click one to ask it. Use **Show icons** and **Show arrows** to change how they look. * **Disclaimer**: **Show disclaimer**, an optional icon, and the **Disclaimer text** shown under the chat. * **Appearance**: the **Accent**, **Background**, **Text** and **Prompt background** colours, and **Chat corner radius**. * **Source tags**: up to 8 short labels on the welcome screen that tell visitors what they can ask about. Tags are one text for every language, so write them in a way that works for all your visitors. ### Languages * **Languages**: add the languages Raily Chat should speak. 13 languages are available, including English, Hebrew, German, French, Spanish and Arabic. * **Choose language by**: * **Page language**: the language your page declares. * **Visitor language**: the visitor's browser language. * **Per website**: a fixed language for each website in your list. ### Icons Wherever you pick an icon, the **Choose icon** panel has two tabs. **Raily** has the built-in icons. **Custom** holds SVG icons your Organization uploaded: click **Upload SVG** to add one (SVG only, up to 50 KB). Uploaded icons are shared by every endpoint in the Organization. ### Save your changes Click **Save** at the bottom of the settings. Your website picks up the new look; you don't need to change the snippet. **Discard** goes back to your last saved settings. **Restore defaults** replaces every setting, including uploaded SVGs, text, prompts, colours, languages and source tags, with Raily's defaults. Nothing changes on your website until you click **Save**. ## What visitors see A visitor clicks the chat button and asks a question. Raily Chat answers from your endpoint's sources and shows the sources it used as cards that open in a new tab. Visitors can ask follow-up questions, including about a source from an earlier answer. The footer reads **Powered by Raily**, with a link to raily.ai. Raily protects the chat from bots. Before the first message, the visitor briefly sees **Checking your browser…** while Raily checks the browser. Chat needs cookies, so a visitor who blocks cookies for your site is asked to allow them and reload. Each visitor can ask up to 30 questions a day. When a visitor reaches the limit, the chat tells them when they can ask again. The count resets at midnight UTC. [Contact us](https://www.raily.ai/contact) if your site needs a different limit. ## Remove websites or turn chat off * **Remove one website**: click the trash icon on its row. Raily Chat stops loading there. * **Remove every website**: click **Remove all** above the list. Raily Chat comes off your website right away. This always works, even if Chat is no longer available for your Account. If you add a website again later, the snippet you already pasted keeps working. * **Pause chat**: turn off **Chat** and click **Save Changes**. The website chat pauses and your website list and settings are kept. Turn Chat back on to resume. When Chat is off, the endpoint also stops answering the chat API. ## Use the chat API Your app can chat with an endpoint over HTTP with an API key. Only API keys work here: a token from a user's sign-in is refused. ### Before you start * Chat is on and saved for the endpoint (see [Turn on Chat](#turn-on-chat-for-an-endpoint)). * You have the endpoint URL and an API key for the endpoint. See [Get your endpoint URL and key](/connect/sdk#get-your-endpoint-url-and-key). ### Send a question The chat address is your endpoint URL with `/v1/chat` in place of `/mcp`. For example, `https://endpoints.app.raily.ai/t/your-workspace/123/mcp` becomes `https://endpoints.app.raily.ai/t/your-workspace/123/v1/chat`. ```bash curl theme={null} curl https://endpoints.app.raily.ai/t/your-workspace/123/v1/chat \ -H "Authorization: Bearer $RAILY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"messages": [{"role": "user", "content": "What changed in the 2026 rules?"}]}' ``` ```typescript TypeScript theme={null} const response = await fetch( "https://endpoints.app.raily.ai/t/your-workspace/123/v1/chat", { method: "POST", headers: { Authorization: `Bearer ${process.env.RAILY_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ messages: [{ role: "user", content: "What changed in the 2026 rules?" }], }), }, ); const { answer, citations, sources, request_id } = await response.json(); ``` ### The request Send the whole conversation in `messages` on every call. Raily keeps no conversation on its side. | Field | Type | Description | | - | - | - | | `messages` | array | The conversation so far, oldest first. 1 to 50 messages. The last one must be a non-empty `user` message: that's the question. | | `messages[].role` | `"user"` or `"assistant"` | Who wrote the message. | | `messages[].content` | string | The message text, up to 32,000 characters. | | `messages[].sources` | array, optional | On an `assistant` message only: the sources that answer cited, up to 8. Send them back so a follow-up like "tell me more about the second one" can still reach them. | | `messages[].sources[].collection` | string | The source's `source_collection` from the earlier response. | | `messages[].sources[].id` | string | The source's `id` from the earlier response. | | `messages[].sources[].n` | integer, optional | The number your reader saw on that source, if your app shows numbers. | A follow-up turn looks like this: ```json theme={null} { "messages": [ { "role": "user", "content": "What changed in the 2026 rules?" }, { "role": "assistant", "content": "Two things changed [1][3]...", "sources": [ { "collection": "articles", "id": "8812", "n": 1 }, { "collection": "articles", "id": "9034", "n": 3 } ] }, { "role": "user", "content": "Who wrote the second one?" } ] } ``` ### The response ```json theme={null} { "answer": "Two things changed [1][3]...", "citations": [1, 3], "sources": [ { "id": "8812", "source_collection": "articles", "fields": [...], "text": "..." } ], "request_id": "..." } ``` | Field | Description | | - | - | | `answer` | The answer, with numbered markers such as `[1]` where it cites a source. | | `citations` | The marker numbers, in the same order as `sources`. | | `sources` | The cited results, in the same shape the search API returns. `sources[i]` is the result the answer cites as `[citations[i]]`. | | `request_id` | An ID for this turn. Include it when you contact support. | The numbers in `citations` can skip (for example `[1, 3]` with two sources), so find a marker's source by its position in `citations`, not by counting. When the endpoint has nothing relevant, `answer` holds your endpoint's no-results message and `sources` is empty. ### Errors An error response has an `error` code, and usually a `request_id`: | Status | `error` | What it means | | - | - | - | | 400 | `invalid_request` | The body isn't valid, or the last message isn't a non-empty user message. | | 401 | `unauthorized` | No API key, or the key isn't valid for this endpoint. | | 403 | `api_key_required` | The request used a sign-in token. Use an API key. | | 409 | `chat_disabled` | Chat is off for this endpoint, or isn't available for your Account. | | 413 | `body_too_large` | The conversation is over 2 MB. Send fewer messages. | | 422 | `unsupported_query` | The endpoint can't answer this kind of question. | | 502 | `upstream_error` | Something failed while answering. Try again. | | 503 | `endpoint_unavailable` | The endpoint can't serve chat right now. | | 504 | `deadline_exceeded` | No answer within 55 seconds. Try again, or ask a narrower question. | Each call has 55 seconds to answer. Set your client's timeout a little above that, for example 65 seconds. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Search from your app](/connect/sdk) > > Call an endpoint with an API key # Give an endpoint its own address Source: https://docs.raily.ai/features/custom-domains Serve a Raily endpoint on your own domain, such as mcp.yourcompany.com, or on a Raily-hosted address with no DNS setup. Every endpoint has a default address on Raily. You can add a second, branded address that agents use instead: either a subdomain you own, such as `mcp.yourcompany.com`, or a Raily-hosted address where you only pick the name. A new address is an addition, not a replacement. The default address keeps working, and agents that already connected keep working without signing in again. Both addresses use the same sign-in, so an agent that connected on one is not asked to approve access again on the other. > [!NOTE] > > Custom domains are available on paid plans and are turned on per Account. [Contact us](https://www.raily.ai/contact) to enable them. ## Before you start * Open the endpoint: in **Search Rail**, select it in the **Your audience** panel. The **Custom domain** card is on the endpoint page. * You need permission to manage resources in the endpoint's Organization. Without it, you can see the card's addresses but can't change them. * The endpoint must be active. * Each Account can have a limited number of custom domains (20 unless your plan says otherwise). Raily-hosted addresses count toward the same limit. ## Option 1: Use your own domain Use a subdomain, such as `mcp.yourcompany.com`. Raily can't serve a root domain such as `yourcompany.com`. You'll need access to your domain's DNS settings. If your domain has CAA records, add `amazon.com`, `amazontrust.com`, `awstrust.com` and `amazonaws.com` to them first. Otherwise the certificate can't be issued or renewed. **1. Add the domain** In the **Custom domain** card, type your subdomain in the field (for example `mcp.yourcompany.com`) and click **Add domain**. The domain appears with the status **Waiting for DNS** and the heading **Add these two records to your DNS**. **2. Create the ownership record** In your DNS provider, create the **TXT** record the card shows (labelled "proves you own the domain"): * **Name**: `_raily-challenge.` followed by your domain, for example `_raily-challenge.mcp.yourcompany.com` * **Value**: starts with `raily-verify=` followed by a code unique to this domain Use the copy buttons next to each value so nothing gets mistyped. **3. Create the routing record** Create the **CNAME** record the card shows (labelled "points your domain to the endpoint"): * **Name**: your domain, for example `mcp.yourcompany.com` * **Value**: the target address shown in the card Use a plain CNAME. If your provider proxies or flattens it (on Cloudflare, an orange cloud; elsewhere, ALIAS or ANAME), Raily can't see it. On Cloudflare, set the record to **DNS only** (grey cloud). **4. Wait for Raily to finish** You don't need to click anything else. While the page is open, the card checks your records every 20 seconds, and Raily keeps checking in the background after you close it. Each record gets a green check once Raily finds it. Then Raily issues a certificate for your domain and the status changes to **Active**. This usually takes a few minutes after your DNS changes are visible. Click **Check now** to check right away. > [!TIP] > > The card shows **Name** as the full record name. Some providers, such as Cloudflare and GoDaddy, want only the part before your domain. For `mcp.yourcompany.com`, enter `_raily-challenge.mcp` for the TXT record and `mcp` for the CNAME, and the provider adds the rest. Keep both records in place for as long as you use the domain. Raily renews the certificate automatically, and renewal needs them. If you remove the CNAME later, the card warns that your DNS no longer points at Raily. Put the CNAME back to clear it. A domain that never proves ownership is removed automatically after 7 days, which frees the name. You can add it again at any time. ## Option 2: Use a Raily-hosted address If you don't have a domain, or don't want to touch DNS, Raily can host the address for you. **1. Switch to a hosted address** In the **Custom domain** card, under the domain field, click **Use a Raily-hosted address**. **2. Pick a name** Type a name in the field. The card shows the rest of the address next to it. Use 3 to 40 characters: lowercase letters, digits and hyphens, with no hyphen at the start or end. A few common names, such as `www`, `api` and `support`, are reserved. **3. Add it** Click **Add address**. The status shows **Setting up** while Raily creates the DNS records and certificate. It changes to **Active** within a few minutes. Raily looks after the DNS and the certificate of a hosted address. There is nothing for you to maintain. ## Use the new address Once the status is **Active**, the endpoint's connect card shows your new address as the connect link, with the original listed as **Default URL (always works)**. Give the new address to anyone connecting an agent from now on. People who already connected with the default address can keep using it. An endpoint can have more than one custom domain or hosted address. Each one appears in the card with its own status. ## What each status means | Status | What's happening | | - | - | | **Waiting for DNS** | Raily is waiting for one or both of your DNS records, or for the certificate. | | **Setting up** | A Raily-hosted address is being created. | | **Active** | The address is live and agents can connect to it. | | **Failed** | Setup stopped. The card says why. Fix the cause and click **Retry**. | | **Removing…** | The address has already stopped serving. Cleanup finishes on its own in a few minutes. | ## Remove an address Click **Remove** on the address, then **Remove domain** to confirm. Agents connected through that address lose access immediately. The default address keeps working. For your own domain, delete its two DNS records once the address is removed. For a Raily-hosted address, Raily removes its DNS records for you. ## Next steps > [card] [Connect to ChatGPT](/connect/chatgpt) > > Add an endpoint to ChatGPT > [card] [Access](/features/access) > > Choose who can use an endpoint # Turn on deep research for an endpoint Source: https://docs.raily.ai/features/deep-research Give AI agents a second tool that runs several searches across your sources and returns one answer with numbered, linked citations. Search answers a question with one retrieval. Some questions need more: comparing coverage over time, building a list or timeline, counting something, or answering a question with several parts. Deep research handles those. It plans a set of searches over the endpoint's sources, checks whether the evidence covers the question, searches again where it falls short, and writes one answer with numbered citations that link back to your content. Deep research is slower than search. A run takes up to about three minutes. > [!NOTE] > > Deep research is available on request. [Contact us](https://www.raily.ai/contact) to turn it on for your Account. Until it is on, the **Deep research** switch does not appear on your endpoints. ## Before you begin * Deep research is on for your Account. * The endpoint serves search over at least one collection. The switch only appears on endpoints that have a search tool. * You have permission to edit endpoints in the Organization that owns the endpoint. ## Turn it on **1. Open the endpoint** In **Search Rail**, select the endpoint under **Your audience**. Its **Endpoint settings** page opens. **2. Switch on Deep research** Find the **Deep research** card and turn the switch on. **3. Save** Click **Save Changes**. You can also turn on **Deep research** when you create an endpoint. The switch sits under **Search results with UI** on the **New endpoint** form. Agents pick up the new tool the next time they load the endpoint's tool list. In Claude or ChatGPT, that usually means reconnecting or starting a new chat. To turn it off, switch **Deep research** off and click **Save Changes**. The tool disappears from the endpoint. An agent that still has the old tool list cached can try to call it until it reconnects, and that call fails. ## What agents see With deep research on, the endpoint offers two tools: your search tool and `deep_research`. Both read the same sources with the same search config. The agent decides which one to call from the tool descriptions. Raily writes those for you: * The `deep_research` description tells the agent to choose it for comparisons across time or sources, how something evolved, lists and timelines, multi-part questions, counting, and anything that needs more than 8 results. It then includes your search tool's description, so the agent knows what the content covers. * The search description gains one sentence that points to `deep_research` for those questions. * Both tell the agent to use search for a single fact, a specific item, or the latest news, and to use search when unsure. ## What an answer looks like The answer depends on how the caller signs in. **AI agents signed in through the endpoint's sign-in (Claude, ChatGPT).** The agent gets a written answer with inline markers like `[1]` and `[2]`, followed by a **Sources** list. Each source line shows its number and title, linked to the original item when your content has a link for it: ```text theme={null} ...the policy changed twice in 2025 [1], and coverage shifted after the March ruling [2]. Sources: - [1] [Article title](https://example.com/article-1) - [2] [Another title](https://example.com/article-2) ``` **Apps that call with an API key.** The app gets typed data instead of prose formatting, with a short status line (`1 answer`): | Field | What it holds | | - | - | | `content` | The written answer, with `[n]` markers. | | `sources` | One entry per cited source: `number`, `title`, `url` (or `null` when the item has no link), and `collection`. | | `coverage_score` | A number from 0 to 1: how well the gathered evidence covers the question. | | `provisional` | `true` when the research stopped before the evidence was judged sufficient, for example at the time limit. | Links come from the link field in your collection's display settings. Titles come from its title field. ## Time limit and provisional answers A run has about three minutes. If time runs out while the answer is being written, deep research returns what it found instead of failing: > I ran out of time before I could write the answer. These are the most relevant sources I found. That reply lists the top five sources. If the research stopped early but an answer was written, API-key apps see `provisional: true`. When no supporting sources turn up at all, the reply says so plainly and suggests a narrower question or search. Deep research never writes an answer without evidence. ## Hourly limit Each Account can run 30 deep research calls per hour by default. The limit is shared across every endpoint in the Account and with the **Deep research this** button in **Test your endpoint**. [Contact us](https://www.raily.ai/contact) if you need a different limit. When the limit is reached, the agent gets this message instead of an answer: > You've reached the deep research limit for now. Try again later, or use search. The count is approximate. Calls that run at the same moment can briefly go over it. ## Try it in Test your endpoint On an endpoint with deep research on, **Test your endpoint** shows a **Deep research this** button under each answer that ran a search. Click it to run deep research on the same question. The panel shows the answer and its numbered, linked sources, headed **Deep research · N sources cited**. These runs count toward the hourly limit. ## See deep research in Evals Deep research calls are graded in [Evals](/features/evals) like searches, using the sources the answer cited. Each one carries a **Deep research** badge. To see only these calls, set the question filter at the top of the list to **Deep research**. ## Next steps > [card] [Connect to Claude](/connect/claude) > > Add an endpoint to Claude and sign in > [card] [Evaluations](/features/evals) > > Check how well searches find the right content # Discoverability Source: https://docs.raily.ai/features/discoverability Measure how your data and AI Endpoints are being selected by LLMs ## Overview Raily's discoverability feature helps you understand how LLMs are selecting and using your data and AI Endpoints. Access your discoverability metrics through the Raily dashboard at [app.raily.ai/dashboard/discoverability](https://app.raily.ai/dashboard/discoverability). ## Available Metrics ### Total Tests The total number of discoverability tests performed. ### Discovery Rate The rate at which your data/AI Endpoints are successfully discovered by LLMs. ### Passed Tests The number of tests where your data/AI Endpoints were successfully discovered and selected. ### Failed Tests The number of tests where your data/AI Endpoints were not discovered or selected. ### Discoverability by Prompt Complexity A breakdown showing how discoverability varies across different levels of prompt complexity. ### Confusion Matrix A confusion matrix visualization showing the accuracy of discovery predictions and actual selections. ## Next Steps > [card] [Analytics](/features/analytics) > > View usage and performance analytics > [card] [AI Endpoints](/concepts/ai-endpoints) > > Expose your data to AI agents via authenticated endpoints # Check search quality with evaluations Source: https://docs.raily.ai/features/evals See how well your endpoints find the right content and answer questions, and review the score behind every search Raily grades the searches and chat answers your endpoints serve. Each search is checked by a set of graders, and the results show up in two places in the dashboard: * **Overview → Quality** ([app.raily.ai/dashboard/quality](https://app.raily.ai/dashboard/quality)) gives you the big picture: success rates, a trend line, and a table of every grader. * **Evaluations** ([app.raily.ai/dashboard/evals](https://app.raily.ai/dashboard/evals)) lists each graded search, with every grader's score and the reasoning behind it. Both pages follow the date range at the top of the dashboard and show the Organization you have selected. Anyone with view access to the Organization can open them. > [!NOTE] > > Searches that return no results are not graded. They don't count toward any quality number. You'll find them on the **Usage** tab instead. ## The graders Four graders drive the Quality board. Each one labels the evidence item by item (each result, each part of the question, each claim in an answer), and Raily computes the score from those labels. That keeps scores consistent from one search to the next. | Grader | What it checks | How the score is built | | - | - | - | | **Relevance** | How much of what was retrieved is relevant to the query, weighted toward the top of the ranking | Each result is marked relevant or not. Relevant results near the top count more. | | **Coverage** | Whether the results cover every aspect a complete answer would need | Each aspect of the question is marked covered, weakly covered (half credit) or missing. The score is the average. | | **Groundedness** | Whether a chat answer's claims are supported by the sources it was given | Each claim is marked supported, partly supported (half credit) or unsupported. Any claim that contradicts the sources sets the score to 0. | | **Answer quality** | Whether a chat answer addresses the question that was asked | Each part of the question is marked addressed or not. An honest "I couldn't find this" counts as addressed. | Relevance and Coverage grade retrieval. Groundedness and Answer quality grade answers, so they only run on chat turns that produced an answer. Your Account may also run other graders, such as Freshness (are the results recent enough for the question). These show in the **Graders** table but not on the board. Hover the info icon next to any grader name to see its description. ## Read the Quality board Go to **Overview** in the sidebar, then open the **Quality** tab. The board has up to three cards. The number in parentheses next to each card title is how many evaluations in the period got a final result. Evaluations where a grader returned no verdict are left out of the success rates. Click the info icon on a card, or click a grader name inside it, to open a popover with the formula and a worked example using your own numbers for the period. ### Retrieval success rate How well your endpoints find the right content. * **Formula:** `Avg(Relevance + Coverage)`, the average of the Relevance average and the Coverage average. * **Example:** Relevance averages 80.0% and Coverage averages 78.9%, so the popover shows `(80.0% + 78.9%) / 2 = 79.4%`. * If only one of the two has scores in the period, the rate is that one's average. Below the rate, **Relevance** and **Coverage** each show their average score with a bar. The popover on each one shows `Sum of Relevance scores / Number of Relevance scores × 100` and how many scores went into it. ### Answer success rate How good the chat answers are. This card appears only when the period has chat turns with an answer. * **Formula:** `Avg(Groundedness + Answer quality)`. * If only one of the two has scores, the rate is that one's average. Below the rate, **Groundedness** and **Answer quality** show their averages, calculated the same way as above. ### Output policies Accounts that generate images get a third card. Its headline, **Compliant images**, is the average score of every image check on the graded images. The two highest-scoring checks are listed beside it. ### Quality over time The **Quality over time** chart plots one line per card that has data: **Retrieval**, **Answers** and **Policies**. Each line uses the same formula as its card. * Each point covers one hour, day or week, depending on the date range. * Hover a point to see the rate and how many evaluations it's based on. * A hollow point means fewer than five evaluations, so read it with care. * A period with no scores is left off the line rather than plotted as 0%. ## Dig into each grader Under the board, the **Graders** section is collapsed. Click **Graders** to open it. Graders are grouped into **Retrieval quality**, **Answer quality** (measured on chat traffic) and **Output policies**. Each row shows: | Column | Meaning | | - | - | | **Average score** | The grader's average for the period, or **Not scored** if it has no scores yet | | **Evaluations** | How many searches this grader scored | | **Errors** | Searches where this grader returned no verdict | | **Specific feedback** | Thumbs up and down left on this grader's result | | **Overall feedback** | Thumbs up and down left on the whole answer, for searches this grader scored | | **Trend** | Change in the average score compared with the previous period of the same length | | **Status** | **Healthy**, **Attention** or **Failed**. Hover the badge to see why. | Use the sort menu to reorder the table, for example by **Status: needs attention** or **Average score: low to high**. Turn off **Active only** to include graders that ran earlier in this Account but no longer run in the selected Organization and period. Click the arrow on a row to expand it. You'll see: * **Score & negative feedback over time** * **Score distribution**, the spread of scores in 10-point groups * **Lowest-scoring queries**, the five searches this grader scored lowest. Click **Details** to read the grader's reasoning, or open the query in Evaluations. * **Feedback**, every comment left for this grader in the period, which you can filter by source and rating ## Review a single search Click **Evaluations** in the sidebar. The **Assessments** list shows every graded search in the period, newest first, with its average score. Narrow the list with the filters at the top: * **All questions**, **Search** or **Deep research** * **All evals**, or one grader * **Any score**, **Below 50%**, **50–80%** or **80% and above** * A cluster, if your search sorts queries into clusters A row may carry a chip such as **1 evaluation failed** (a grader returned no verdict) or **1 evaluation skipped**. Click a row to expand it. You'll see: 1. **Retrieved sources** (or **Sources given to the model** for a chat turn), the results the graders looked at. 2. **Retrieval**, with each retrieval grader's score. 3. **Answer (from chat)** and the **Answer** graders, when the search produced a chat answer. 4. **Output policies**, for image generations. ### Read a grader's reasoning Each grader writes a short explanation of its score in plain language. Click the scroll icon next to a score to show or hide it. * When a grader fails, errors or is skipped, its reasoning opens on its own. * When a grader passes, the reasoning is still there. Click the icon to see why it passed. * Long reasoning shows a summary first. Click **Show more** for the full text. A grader that couldn't score the search shows an **Evaluation error** or **Skipped** badge instead of a bar, and the search is not scored by that grader. ### Leave feedback Use the thumbs next to each score to tell Raily whether you agree with that grader. Use **Overall feedback** at the bottom of the row to rate the search as a whole. Your feedback appears in the **Specific feedback** and **Overall feedback** columns on the Quality tab. Owners, Admins and Editors of the Organization can leave feedback. Auditors and Viewers see existing feedback but can't change it. ## Turn a check on or off Raily sets up which graders run when your Source connects. To turn a grader off or back on, [contact Raily](https://www.raily.ai/contact). * A grader that's off doesn't run, so it adds no cost. * It disappears from both pages, including its past scores. * If another endpoint in the same Organization still runs it, it stays visible. * Turning it back on brings its history back. Nothing is deleted. You can see which graders run on an endpoint in the **Evaluations** section of the endpoint's **Search Behavior** settings. That section also controls how graders appear: **Customer-facing** graders show on the dashboard in the order you set, and graders you move to **Internal** are hidden from these pages. Drag a grader to reorder it, or use the button on its row to move it between the two groups. ## Run graders on your own Gemini key The graders can run on your own Google Gemini API key. Go to **Settings → AI models provider**, add your key and assign it to **Quality evaluators**. With your own key, Raily can also send grader requests in batches, which halves the cost per search. Results can then take a few minutes longer to appear. [Contact Raily](https://www.raily.ai/contact) to turn batching on. > [!NOTE] > > **AI models provider** is available on request. [Contact Raily](https://www.raily.ai/contact) to turn it on for your Account. # Add and manage MCP endpoint users Source: https://docs.raily.ai/features/users Grant Raily-hosted users access to MCP endpoints, manage inherited Organization grants, and send endpoint connect links. Use this page to grant people access through a Raily-hosted sign-in. You add each person by email and choose which endpoints they can reach. You can also let people join an endpoint on their own. With [open sign-up](/features/access#open-sign-up), anyone who signs in with a verified email gets access to that one endpoint on their first call and appears in the list as **Self sign-up**. If an endpoint uses your own identity provider, manage admission there. Raily lists people after their first successful sign-in, but it does not add another per-user grant. For scripts and backend services, create an [API key](/features/access) instead. Endpoint users are not Raily team members. Team members sign in to the Raily app to manage sources and endpoints. Endpoint users only need access to the endpoint. ## Choose where to manage access | Sign-in provider | Where you manage people | | - | - | | Raily-hosted | Add people by email, choose their endpoints, change their access, or remove them in Raily. | | Your own identity provider | Admit or remove people in your identity provider. Raily only shows people who have already signed in. | The steps for adding, changing, and removing access below apply to Raily-hosted sign-in. ## Open the user list 1. In the sidebar, go to **Security** and select **Access**. 2. On the **Sign-in providers** tab, find the provider the person should use. 3. Open the row menu. Select **Manage users** for Raily-hosted sign-in or **View synchronized users** for your own identity provider. ![A provider row with its menu open, showing Manage users](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-01-sign-in-provider.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=95748bb5a7d0edb276b52afb064f4489) > [!NOTE] > > Each sign-in provider has its own list of users. Adding someone under one provider does not give them access to endpoints that use a different provider. ## Read the user list The three cards at the top count **Direct users** (managed in the Organization you have selected), **Effective users** (active access, direct and inherited), and **Endpoints covered**. ![The Users list for a sign-in provider, showing direct users, effective users, and endpoints covered](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-02-user-list.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=1c7802baa2d127fa92581e3122ddcc6e) In the table, the **Source** column tells you where a person's access comes from: * **Direct** means the access was granted in the Organization you are viewing. You can change or remove it here. * **Self sign-up** means the person joined an endpoint with open sign-up on their own. You manage them like a **Direct** user. * An Organization name means the access was granted higher up and is inherited. Open that Organization to change it. * **Synchronized here** means the person came from your own identity provider. Only **Direct** and **Self sign-up** rows have a row menu. Inherited access is managed where it was granted. When an endpoint on this sign-in has open sign-up on, a notice above the list says **Open sign-up is on for** and names the endpoint. ![A child Organization's Users list with one user inherited from Entire account and one direct user](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-08-inherited-user.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=4d4be6cb1cdb5576a384525deed12d71) ## Before you add a user To add someone to a Raily-hosted sign-in, you need: * A paid plan and permission to manage users in the selected Organization. Account Owners, Administrators, and Editors have this permission, including through an inherited role. * A Raily-hosted sign-in. * At least one endpoint in the selected Organization that uses that sign-in. * The email address the person will use. ## Add a user The **Add user** dialog takes you through **Add user**, **Review access**, and **Access granted** without opening another page. **1. Enter the user and endpoint scope** Select **Add user** at the top right of the Users list. Enter the address the person will sign in with. If they use a different address later, they get no access. Pick **All endpoints** to cover current and future endpoints that use this sign-in in the selected Organization and its descendants, or select named endpoints from the list. ![The Add user step of the dialog, with the email field and the endpoint scope picker](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-03-add-user.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=bbbb90e271723b0ff0f2bf2b0648c6f3) Choosing **All endpoints** also covers future matching endpoints in the selected Organization and its descendants. Each endpoint still has its own connect link. Select **Review access**. Nothing is granted yet. **2. Review and grant access** Check the **Email**, **Organization**, **Sign-in**, and **Endpoints** rows. If the person already has access through this sign-in in this Organization or one above it, the dialog marks them as an existing subscriber and says access will be added for the selected Organization. ![The Review access step, summarizing email, Organization, sign-in, and the granted endpoint](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-04-review-access.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=e0eccaff4efd613c9f6c4d811b633af8) Check the **Organization** carefully. An **All endpoints** grant covers matching endpoints in that Organization and its descendants. A named-endpoint grant stays limited to those endpoints. Neither reaches a parent Organization or a sibling. Select **Grant access**. Use **Back** if you need to change the email or endpoint scope. **3. Copy and send the connect link** After the grant succeeds, the dialog shows a **Connect link** for each current endpoint in the selected Organization that the direct grant covers. ![The Access granted step, showing the connect link for the granted endpoint](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-05-access-granted.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=7b0bec77c4e53d7e90c29bbfd7a5b591) Send the link to the person, or to the workspace owner or administrator who configures connectors. The link is the MCP server URL added to Claude or ChatGPT. The person signs in with the email you granted. An **All endpoints** grant can also cover matching endpoints in descendant Organizations. Copy those links from the descendant endpoint pages. Future matching endpoints are covered automatically, but each endpoint still has its own connect link that must be added to the AI client or workspace. > [card] [Connect to Claude](/connect/claude) > > Send this to someone connecting from Claude. > [card] [Connect to ChatGPT](/connect/chatgpt) > > Send this to someone connecting from ChatGPT. ## Change someone's access **1. Open Manage access** Open the row menu on a **Direct** user, then select **Manage access**. **2. Change the endpoint selection** Choose the endpoints the person should be able to reach. ![The Manage access dialog, with the endpoint scope picker for an existing user](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-06-manage-access.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=6ca6e3340fa40a13b6071ab3476758e9) **3. Save the change** Select **Save**. The change takes effect on the person's next request. To block someone without removing them, clear every endpoint checkbox and save. They stay in your list as **Blocked** and you can grant endpoints again later. This blocks the direct grant here. It does not override access they inherit from a parent Organization. A blocked person stays blocked even on an endpoint with open sign-up. To keep someone out of an open endpoint, block them. Do not remove them. ## Remove a user **1. Open the confirmation** Open the row menu on a **Direct** user, then select **Remove user**. **2. Confirm the removal** Check that the dialog names the correct person. ![The remove confirmation dialog, warning that access ends on the next request](https://mintcdn.com/railyai/pzz9nlH1GggtIKl2/images/users/users-07-remove-user.png?fit=max\&auto=format\&n=pzz9nlH1GggtIKl2\&q=85\&s=007da125779a2543f83904fb5d1a5a9e) Select **Remove**. The person loses the direct grant on this sign-in on their next request. Their identity and any access inherited from a parent Organization are not affected. > [!WARNING] > > On an endpoint with open sign-up, a removed person gets access again the next time they sign in and search. [Block them](#change-someones-access) instead. # See It in Action Source: https://docs.raily.ai/getting-started/see-it-in-action Watch how users can query your content directly from Claude or ChatGPT, live, in minutes. ## From Source System to AI-Powered Experience The moment you connect your content source or database to Raily, your users can start querying it from any AI assistant. No custom integrations, no months of engineering work. The video below shows exactly what that experience looks like: a user opens Claude, asks a natural-language question about content from a connected subscription platform, and gets an accurate, permission-aware answer. All powered by Raily running in the background. > [!NOTE] > > The demo above shows a real production deployment. The AI assistant is Claude, querying live subscription content with full access control enforced by Raily. ## What You're Seeing **1. A connected content source** The publisher connected their subscription platform to Raily. A one-time setup that takes minutes using a native integration or the Raily SDK. **2. An AI-ready endpoint, instantly** Raily automatically makes the content available to AI assistants, securely and instantly. No schema design, no prompt engineering, no infrastructure setup. **3. Users query naturally, from any AI app** Subscribers open Claude or ChatGPT and ask questions in plain language. Raily routes the request, enforces access policies, and returns the right content to the right user. **4. Full control, full visibility** Every query is logged. Access policies apply in real time. Publishers see exactly who accessed what, when, and through which AI platform. ## Plug and Play. That's the Point. > [card] Connect in minutes > > Point Raily at your existing database, CMS, or storage layer. No data migration, no rebuilding your stack. > [card] Works with Claude & ChatGPT > > Raily connects directly to Claude, ChatGPT, and other AI assistants. Your content shows up where your users already are. No new apps, no new interfaces. > [card] Access control built in > > Subscription tiers, user identity, and content permissions are enforced automatically before any data leaves your system. > [card] Live in the same day > > Connect your source, configure a policy, and share a link with your users. The whole flow can be live the same day you sign up. ## Ready to Build This? Ship an AI-powered experience to your users in minutes, not months. [Talk to Us](https://www.raily.ai/contact) # Welcome to Raily Source: https://docs.raily.ai/index AI first layer for delivering specialized data and content to AI systems and agents, with built in authentication, trust, analytics, and optional monetization. As AI systems increasingly rely on specialized and IP rich data, organizations need a reliable way to serve this data directly to AI. Raily enables data companies to connect their data once and serve it to AI systems in a trusted and transparent way. Data can be stored and indexed in Raily or connected from existing data and vector systems. There is no need to build or maintain custom delivery pipelines. Raily handles the processing, indexing, authentication, analytics, and trust controls needed to make data available for AI use. ## Who We Are Raily is built by a team with deep experience in content, data trust, and security, with years of work alongside organizations where specialized and IP-rich data is a core asset and trust and control are essential. Raily is designed to make this data available to AI systems in a trusted and transparent way. Become an AI player and serve your valuable data to AI Own your delivery and direct contact with AI data usage.\ Take control of the entire data value chain. [Get Started](/quickstart) [Contact Sales](https://raily.ai/contact) ## Why Raily? > [accordion] Built for the AI Era > > Unlike traditional data and content systems, Raily is designed from the ground up for AI-first consumption. We understand how LLMs and AI applications access content, and we've optimized every aspect of our platform for this new paradigm. > [accordion] Trusted Access > > Trust is built in. Raily enforces authentication and authorization on every request. Use your existing authentication systems or Raily's white label auth > [accordion] Flexible Integration > > Raily works with your existing infrastructure. Bring your own storage, vector stores, data systems, or CMS, or use Raily's built-in components for a quick and immediate launch > [accordion] Real-Time Insights > > Don't fly blind. Our analytics dashboard shows you exactly how AI systems are using your content, which pieces are most valuable, and where your revenue is coming from. ## Features > [card] Secure Access Control > > Define who can access your content, when, and under what conditions. Fine-grained policies give you complete control. > [card] Advanced Analytics > > Track how AI systems consume your content in real-time. Understand usage patterns and optimize your strategy. > [card] Intelligent Policies > > Create sophisticated access rules that adapt to context, usage patterns, and commercial agreements. > [card] Revenue Optimization > > Turn your content into a scalable revenue stream with flexible licensing and usage-based billing. ## Explore the Documentation > [card] [Quickstart Guide](/quickstart) > > Get up and running with Raily in under 10 minutes. > [card] [Core Concepts](/concepts/ai-endpoints) > > Understand the key concepts behind Raily's architecture. ## Need Help? > [card] [Contact Us](https://raily.ai/contact) > > Our team is here to help you get started. Reach out for personalized guidance on implementing Raily for your use case. # Data Catalog Source: https://docs.raily.ai/integrations/data-catalog See and configure the fields that describe your content ## Overview The Data Catalog shows the structure of a collection: every field that travels with your content, what it means, and how the agent is allowed to use it. Each piece of content (an article, a paper, a product, a support ticket) carries fields like title, author, date, section, or status. The catalog is where you review those fields and tell Raily how to treat each one. This matters because Raily's search reads the catalog before it answers. A clear description on a field lets the agent filter on it correctly. A missing or vague one means the agent ignores it. ![Data Catalog showing fields with their type, description, and filter settings](https://mintcdn.com/railyai/CC-R1Kj1PVtRsym2/images/data-catalog.png?fit=max\&auto=format\&n=CC-R1Kj1PVtRsym2\&q=85\&s=f92945fe7355bc7b63f655688190d886) Data Catalog for a collection ## What you see The catalog lists one row per field. For each field you see: * **Name** - the field as it exists in your content, such as `author`, `published_at`, or `section`. * **Type** - what kind of value it holds: text, number, date, or a fixed set of options. * **Description** - a short, plain-language note that tells the agent what the field means and when to use it. * **Filterable** - whether the agent can narrow a search using this field. * **Output** - whether the field is returned with each result. * **Allowed values** - for fields with a fixed set of options, the list of values the field can take. ## Field properties ### Description The description is the most important part of a field. The agent reads it to decide when a query should touch that field. Write it the way you would explain the field to a new colleague. For a `section` field on a news collection: > The newspaper section the article ran in, such as Opinion, Sports, or Business. Filter on this when the reader asks for a specific section. That one line is what turns *"show me opinion pieces about the election"* into a search scoped to the Opinion section. ### Filterable A filterable field can be used to narrow a search. When a reader asks *"articles from last week"* or *"only papers after 2020"*, the agent matches that phrasing to a filterable field and applies it before searching. Turn this on for fields people actually slice by: date, author, section, category, status, content type. Leave it off for free-text fields that no one filters on, like the body of the article. ### Output An output field is returned with each search result, so the calling application can show it. Title, author, date, and a link are typical output fields. A reader scanning results sees these without opening the source. A field can be filterable, output, both, or neither. A date is usually both: people filter by it and want to see it. An internal scoring field might be filterable but hidden from output. ### Allowed values Some fields hold one of a fixed set of options. A `status` field might only ever be `Draft`, `Review`, or `Published`. Listing those values does two things: * The agent matches loose phrasing to the right value (*"unpublished drafts"* maps to `Draft`). * Each value can show as a colored badge in results, so a reader spots the status at a glance. For these fields, set the exact list of allowed values. If a value should appear as a badge, give it a tone (for example, green for `Published`, gray for `Draft`) so the color carries meaning. ## Examples A news collection might catalog fields like this: | Field | Type | Filterable | Output | Notes | | - | - | :-: | :-: | - | | `title` | text | No | Yes | Shown on every result | | `author` | text | Yes | Yes | Fuzzy matched by name | | `published_at` | date | Yes | Yes | Drives "last week", "in 2024" | | `section` | options | Yes | Yes | Opinion, Sports, Business | | `body` | text | No | No | Searched, not shown as a field | A research collection might look like this instead: | Field | Type | Filterable | Output | Notes | | - | - | :-: | :-: | - | | `title` | text | No | Yes | Shown on every result | | `journal` | text | Yes | Yes | Filter by publication | | `year` | number | Yes | Yes | Supports ranges and cutoffs | | `open_access` | options | Yes | Yes | Yes / No, shown as a badge | | `abstract` | text | No | Yes | Shown, but not filtered on | The fields differ per collection. The catalog adapts to whatever your content provides. ## Why it matters The catalog is how the agent learns your data. When search results are too broad, miss an obvious filter, or never surface a field people ask for, the fix is almost always here: * A filter never fires? Check the field is marked **Filterable** and has a clear description. * A value comes back as raw text instead of a badge? Set its **Allowed values** and tone. * A reader can't see the date or author in results? Turn on **Output** for that field. ## Next Steps > [card] [Agentic Layer](/concepts/agentic-layer) > > See how filters and ranking use these fields at search time > [card] [Vector Store](/integrations/vector-store/overview) > > Connect a vector store and index content for semantic search # Connect AlloyDB Source: https://docs.raily.ai/integrations/databases/alloydb Connect Google Cloud AlloyDB so AI agents can search your vector tables and answer counting and totals questions from your regular tables. Connect a Google Cloud AlloyDB database to Raily and choose the tables you want agents to use. Raily reads your tables where they are. It does not copy your data, re-embed your vectors, or change your database. > [!NOTE] > > AlloyDB is available on request. [Contact us](https://www.raily.ai/contact) to turn it on for your Account. ## Before you start * **A database user Raily can log in with.** Use a dedicated read-only user, not a database owner. It needs `SELECT` on the tables you want and `USAGE` on their schemas. Raily shows the commands to set this up during the connection (see step 3). * **Public IP enabled on your AlloyDB instance.** Instances with private IP only can't be connected. Raily connects through Google's authenticated connector, which verifies the server and encrypts the connection, so you don't need to deploy a proxy or allowlist IP addresses. See Google's guide to [enabling public IP](https://cloud.google.com/alloydb/docs/connect-public-ip). * **Two Google Cloud roles for Raily's service account** in the project that holds your instance: **AlloyDB Client** and **Service Usage Consumer**. These let Raily open a connection. They don't give access to your tables. * **For vector tables:** each vector column must declare a fixed size (for example `vector(768)`), all vector columns in a table must have the same size, and the table needs an `id` column or a single-column primary key. You also need to know which embedding model and version created the vectors. ## Steps In the sidebar, open **Search Rail** and click **Connect source**. Then click the **Google Cloud AlloyDB** card. The form has three stages: **Connect**, **Choose tables**, and **Review**. **1. Name the Source** Enter a **Name** for this connection. **2. Enter the connection details** * **Instance resource name**: the full resource name of your instance, in the form `projects/PROJECT_ID/locations/REGION/clusters/CLUSTER_ID/instances/INSTANCE_ID`. Use the resource name, not the IP address. Open **Find your instance URI** under the field if you need help finding it. * **Database name**: the database that holds your tables (not the cluster name). * **Database username**: defaults to `raily_reader`. Change it if your read-only user has a different name. * **Database password**: the password of that database user, not your Google account password. If you already have a connection string, click **Paste a connection string instead**. It must use the form `postgresql://USER@alloydb/DATABASE?instance_uri=projects/...`. Keep `@alloydb` as shown and leave the password out of the string. Enter it in **Database password**. **3. Grant access (first connection only)** If you haven't set up access yet, open **Set up access for a first connection**. It shows commands filled in with your details, each with a copy button: 1. **Google Cloud connection permissions**: the Raily service account for your Account and two `gcloud` commands that grant it AlloyDB Client and Service Usage Consumer. Run them as someone who can update the project's IAM policy. Don't grant Owner or Editor. 2. **Database read permissions**: a `GRANT pg_read_all_data` command for your database user. This grants read access to every database in the cluster that the user can connect to. If you want to limit Raily to specific tables, skip it and use a user that already has `SELECT` on only those tables. Two optional sections cover a database that restricts who can connect (**Allow connection to a restricted database**) and creating a new read-only user (**Create a database user if you need one**). Already have a user that can read your tables? Skip this step. **4. Test the connection** Click **Test connection & load tables**. When the test passes, click **Continue to tables**. **5. Choose tables** Raily lists every table and view the database user can read, grouped by schema. Select the ones you want. * **Tables with vectors** need an embedding model. Pick the same model and version that created the table's vectors. Models with a different vector size are disabled, but a matching size alone is not enough: it has to be the same model. * **Regular tables** show **Table analytics. No embedding model needed.** Don't have one yet? Open the embedding config picker and click **Create New**. ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) Create a new embedding config Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) Embedding config form If you selected any vector table, tick the box confirming that the model, version, and dimensions match each table's existing embeddings. Then click **Continue to review**. **6. Review and connect** Check the instance, database, database user, and each table. Vector tables show **Semantic search and analytics** with the model you picked. Regular tables show **Analytics only**. Click **Connect & generate configuration**. Raily sets up search for each table automatically. Your database is not changed. **7. Create an endpoint** When the search configuration is ready, the Source page shows **Finish setup: create endpoint**. Click it, confirm a name and sign-in, and create the endpoint your agents will connect to. When setup is done, the Source page shows which endpoints search it (**Searched by**). Ask a question in **Test your endpoint** to check the answers. New tables you add to AlloyDB later are not picked up automatically. To add one, edit the Source, click **Test connection & load tables** again, and select it. ## Content tables and data tables Raily looks at your database catalog and decides what each table can do. You don't set this yourself. **Tables with vectors** hold content: articles, documents, products, support tickets. Agents use them to find rows by meaning, and they can also count and total those rows. Example questions: * "What have we published about electric car subsidies?" * "Find support tickets where customers complain about late delivery." * "How many articles about Switzerland were published in 2025, and show me a few." **Regular tables** (no vector column) hold records you want to measure: orders, events, sign-ups. Agents use them for counts, sums, averages, minimums, maximums, and earliest or latest dates, optionally grouped by a column or by day, week, month, or year. Example questions: * "How many orders were placed in March 2026?" * "What was the total revenue per region last year?" * "What's the average delivery time by month in 2025?" A few things to know about table answers: * **Raily computes calendar periods itself.** When a question names a whole year, month, or day ("in March 2026"), Raily works out the start and end dates, so the count covers the full period. Periods and date groupings use UTC. * **One table per answer.** Raily doesn't join tables. A question that needs data from two tables gets a separate answer from each, never a combined total. * **One measure per question.** Ask "how many orders" and "what was the total revenue" as two questions. * **Grouped answers are capped.** Raily returns up to 20 groups and says when more exist. * **Counting distinct values and ranking are not supported.** For example, "how many different customers ordered" or "top 5 products by sales". * **Regular tables can't answer "find me" questions.** They have no vectors to search by meaning. Ask them for a count or a total instead. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Data Catalog](/integrations/data-catalog) > > Review the fields agents filter on # LLM Providers Source: https://docs.raily.ai/integrations/llm-providers The models Raily uses for its agentic layer, answers, and embeddings Raily works with the major model providers. They are used in three places: * **Agentic layer**: analyzes a query and rewrites it for better retrieval. See [Agentic Layer](/concepts/agentic-layer). * **Answers**: generates the response from the retrieved passages in chat. * **Embeddings**: turns your content and queries into vectors. You choose the embedding provider per collection when you connect a [vector store](/integrations/vector-store/overview). By default, Raily runs these model calls on its own account. To bill query analysis, chat answers, source setup, quality evaluators, and LLM reranking to your own Google account instead, add your Google AI key. See [Use your own Google AI key](/integrations/model-keys). Embeddings and document processing still run on Raily. > [card] OpenAI > > GPT for answers and OpenAI embeddings > [card] Anthropic > > Claude for answers > [card] Google > > Gemini for the agentic layer, answers, and embeddings > [card] Vertex AI > > Google Vertex embeddings > [card] AWS Bedrock > > Bedrock embeddings > [card] Sentence Transformers > > Self-hosted open-source embeddings # Use your own Google AI key Source: https://docs.raily.ai/integrations/model-keys Run Raily's model calls on your Google AI (Gemini) API key, so usage is billed to your Google account and counts against your quota. Raily runs its model calls on Raily's own models by default, and you don't need to change that. Add your own Google AI key when you want model usage billed to your Google account, under your own quota and data-processing terms. You then choose which tasks run on your key and which stay on Raily. > [!NOTE] > > This page is turned on per Account. If you don't see **AI models provider** in Settings, ask your Raily contact to turn it on. Adding and using a key is part of paid plans. On a trial, the page shows your tasks but you can't add a key, and everything keeps running on Raily. ## Before you start * A Google AI Studio API key. Create one in Google AI Studio under **API keys**, in a Google Cloud project with billing turned on. On keys without billing, Google may use the content you send to improve its products. * You must be an owner or admin of the Account. The settings apply to the whole Account. If you have an Organization other than the top-level one selected, the page still shows and edits the Account's settings, and says so. ## Add your key **1. Open the page** Go to **Settings** > **AI models provider**. Stay on the **Tasks** tab. **2. Add the provider** Under **Providers**, click **Add provider** and choose **Google AI**. The other providers listed are not available yet. **3. Name the key and paste it** Enter a **Name** that tells your keys apart (for example, "Google AI · production"). Only your team sees it. Paste your key into **API key**. **4. Check and save** Click **Check and save**. Raily checks the key with Google before storing anything. If the check fails, nothing is saved and the dialog shows which step failed. **5. Choose where to use it** Raily asks **Where should Raily use it?** * **Make it the default** runs every task that can use your key on it, including tasks you start using later. * **Not now** keeps everything on Raily, so you can pick tasks one by one. **6. Adjust tasks and save** In the **Tasks** table, use the **Runs on** menu for each task: **Follows default**, **Raily**, or your key by name. Under **If your key fails**, choose what happens when Google rejects your key: **Stop the task**, or **Use Raily until it's fixed**. Click **Save changes**. Your key now shows under **Providers** with a **Healthy** badge. After saving, Raily shows only a short hint of the key, never the full value. The key is stored encrypted. Raily picks the model for each task on your key, the same one it would use on its own account. You don't choose a model per task. ## What runs on your key These tasks can run on your Google AI key. The **Exposure** column on the page lists what each one sends to the model. * **Query understanding**: analyzes and rewrites every query before retrieval, including queries on API Sources and data tables. * **Chat answers**: writes the answer in chat and in deep research. * **Source setup**: setting up and regenerating a Source's search config, Knowledge Base builds, search rules, and tool descriptions. * **Quality evaluators**: grades search results, on every query when evaluations are on. * **Reranking**: only when a search config uses an LLM reranker with a Gemini model. That reranker keeps the model set in its search config. These always run on Raily, and their row shows **Raily** without a menu: * **Content processing**: reading your documents and videos when Raily indexes a Source. * **Agent discoverability** and **Image generation**, where your Account has them. * Cross-encoder reranking. * Embeddings. The **Embedding models** tab shows the models that turn your content and searches into vectors. Raily's embedding model needs no key. > [!NOTE] > > Quality evaluators on your key can run through Google's Batch Mode, which Google bills at half the price. Evaluation scores then arrive a few minutes after the search instead of right away. Ask your Raily contact to turn it on for your Account. ## Track usage Once you have a key, the page shows usage for the last 7 days per task: **Calls on your keys**, **Tokens on your keys**, **Calls on Raily**, and **Failed calls**. A key you removed keeps its name in this table. ## Replace or remove a key * **Check** re-runs the check against Google and updates the badge. * **Replace key** swaps in a new key. Tasks keep their settings. Raily checks the new key before it replaces the old one. * **Remove** deletes the stored key. Tasks set to that key move to Raily and count toward your plan. You can remove a key even if your plan changes or the page is turned off. ## Next steps > [card] [LLM Providers](/integrations/llm-providers) > > See which models Raily uses > [card] [Evaluations](/features/evals) > > Check how well searches find the right content # Integrations Overview Source: https://docs.raily.ai/integrations/overview Connect Raily to your vector stores, storage, and LLM providers Raily connects to the systems that hold your data and the models that reason over it. Pick an area below to get started. > [card] [Vector Store](/integrations/vector-store/overview) > > Connect Qdrant, Pinecone, Zilliz, Milvus, Weaviate, pgvector, Oracle, IBM Ceph, or Salesforce so Raily can search your collections. > [card] [Storage](/integrations/storage/overview) > > Connect Amazon S3 or use Raily-managed storage for your source files. > [card] [Content sources](/integrations/sources/wordpress) > > Connect WordPress, RSS feeds, YouTube channels, Livingdocs, or your own API. > [card] [Databases](/integrations/databases/alloydb) > > Search AlloyDB tables in place, and answer counts and totals from regular tables. > [card] [LLM Providers](/integrations/llm-providers) > > Connect the model providers Raily uses to embed and answer. > [card] [Data Catalog](/integrations/data-catalog) > > Configure the fields that describe your content and how the agent filters on them. # Connect your API Source: https://docs.raily.ai/integrations/sources/api-source Connect your own HTTP API from its OpenAPI document so an endpoint can search it Connect your own REST API as a Source. Raily reads the API's OpenAPI document, lists its operations, and sets up each one you pick so an endpoint can search it. Nothing is copied or indexed: every search calls your API live. > [!NOTE] > > The API source is available on request. [Contact us](https://www.raily.ai/contact) to turn it on for your Account. ## Before you start * **An OpenAPI document for the API.** OpenAPI 3.x or Swagger 2.0, in JSON or YAML. Raily fetches it over the web, so it needs a public address. * **The API's credentials**, if it needs any: an API key or a bearer token. * **A public HTTPS address.** Raily calls the API from the internet, so the host must resolve to a public address. ## Connect the API **1. Open the API connector** In the Rail, click **Connect source**, then choose the **API** card. **2. Name the Source** Enter a **Name**. This is how the Source appears in your workspace. **3. Enter the Base URL** Type the API's host in **Base URL**, for example `api.example.com`. Raily assumes `https://` and each operation adds its own path. You can also paste a link to the API's docs page (a Swagger UI page, for example). Raily finds the document behind it and replaces the field with the address the API answers on. **4. Set authentication** Choose an **Authentication** option: * **None** * **API key header**: enter the **Header name** (for example `x-api-key`) and the **Secret value**. * **Bearer token**: enter the **Token**. * **Query parameter**: enter the **Query parameter name** and the **Secret value**. If the OpenAPI document declares how the API signs in, Raily selects that option and fills in the name for you. You still enter the secret yourself. The secret is sent with every call this Source makes. Your agents and their users never see it. Optionally change **Default method** (GET or POST) and **Timeout (seconds)**, which accepts 1 to 120 and starts at 30. **5. Find the operations** Click **Find operations**. Raily looks for the OpenAPI document at the usual paths on your host. If it can't find one, an **OpenAPI document URL** field appears. Enter the document's full URL, then click **Find operations** again. **6. Pick what to search** Raily sorts the operations by what they do, not by their names: * **Search**: takes a question or filter and answers with a list of records. This is what an endpoint searches. These are selected for you. * **Lists**: returns a list but takes no query. * **Look up one record**: needs a value in the path, such as an id or a name. * **Other**: writes data, runs an action, or answers with a file. Operations that write data are shown but can't be selected. For a **Look up one record** operation you select, an **example** box appears next to each path value (for example **example id**). Enter a real value. Raily uses it once, to learn what the operation answers. **7. Create the Source** Click **Create Integration**. Raily saves the connection and starts setting up every selected operation right away. You land on the Source page. ## What happens after you create it While setup runs, each operation row reads **configuring…** and a note at the top counts how many are left. Raily calls each operation once to learn what a record looks like, then writes its search setup from the OpenAPI document: how to read a question, which parameters to fill, and a few suggested prompts. Expect about a minute per operation, three at a time. You can leave the page; setup keeps going. When an operation is done, its row shows one of these: | Row label | What it means | | - | - | | **ready · no endpoint** | Set up and ready to search. No endpoint uses it yet. | | **live** | At least one endpoint searches it. | | **from the contract** | The sample call didn't return a record, so Raily set it up from the document alone. The row says why. Run it under **Test** to check the answer. | | **couldn't configure** | Setup failed. The row says why and what to do next. | | **config behind the API** | The API's document changed since this operation was set up. | The header shows the Source as **Ready** until an endpoint uses one of its operations, then **Serving 1 endpoint** (or more). ## Search the API from an endpoint Under **Searched by** on an operation row, click **create endpoint** (or **add endpoint** if your Account already has endpoints). Pick an existing endpoint or **Create a new endpoint for** the operation, then click **Create endpoint**. Raily wires the operation and runs a live test, which can take up to a minute. A new endpoint opens in the chat so you can try it right away. ### How a question becomes an API call When someone asks the endpoint a question, Raily reads it and fills in the operation's parameters: the search text goes into the operation's own search parameter, and dates, categories or other values the question names go into the parameters the document describes. Raily then calls your API with the Source's credentials and shows each record as a result with its title, text, and author where the API provides them. Raily only fills parameters the document describes, so a clear description on each parameter in your OpenAPI document leads to better calls. ## Test an operation Open an operation from its row menu (**Open operation**). Under **Test this operation**, fill in sample arguments and click **Run test**. Raily calls your API directly and shows: * **Request built**: the request it sent, with secrets hidden. * **Response**: what the API returned. A test that returns data saves those arguments as the operation's sample. To have Raily set the operation up again from that answer, go back to the Source page and choose **Regenerate config** from the row menu. On the same page you can change the **Display name** and set a **Response pick (optional dotted path)**, such as `data.results`, to return only part of the JSON body. Click **Save operation** to keep your changes. ## Keep operations in sync If the API changes, open the Source menu and choose **Refresh from API**. Raily re-reads the document and updates your operations. To add operations you didn't pick the first time, click **Edit connection** (the pencil icon) and use **Find operations** again. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Agentic Layer](/concepts/agentic-layer) > > See how Raily reads and answers a request # Connect Livingdocs Source: https://docs.raily.ai/integrations/sources/livingdocs Make the published articles, pages, and data records in a Livingdocs project searchable by AI agents. Connect a Livingdocs project as a Source and Raily keeps a searchable copy of its published content. Once it's connected, any endpoint you wire to it can answer from your articles, pages, and data records. > [!NOTE] > > The Livingdocs Source is available on request. If you don't see **Livingdocs** in the list of sources, [contact Raily](https://www.raily.ai/contact) to turn it on for your Account. ## Before you start Ask your Livingdocs admin for two things: * **The server URL** of your Livingdocs instance, for example `https://server.livingdocs.io`. It must use HTTPS. * **A project API token** for the project you want to search. The token needs the `public-api:read` and `public-api:config:read` permissions. One token covers one project, so connect each project as its own Source. See the Livingdocs [Public API guide](https://docs.livingdocs.io/reference/public-api/get-started/) for how to create a project token. ## Connect the project **1. Open the source list** Go to **Connect a data source** and choose **Livingdocs** from the **CMS** group. **2. Name the Source** In **Name**, enter something your team will recognize, such as the publication or project name. **3. Enter the server URL** Paste your instance address into **Livingdocs server URL**. **4. Paste the token** Paste the project token into **Access token**. **5. Choose how often to sync** Pick a **Sync frequency**: **Every hour** (the default), **Every 6 hours**, **Every 12 hours**, **Every day**, or **Every 2 days**. **6. Check the connection** Click outside the **Credentials** box. Raily tests the URL and token against Livingdocs and shows **Verified** when they work. You'll also see a message naming the project it found, for example "Connected to Livingdocs project my-project." **7. Save** Click **Create Integration**. The button stays disabled until the credentials show **Verified**. ## What happens next Raily opens the Source's page and starts the first sync right away. The sync card shows progress as **Syncing** with a count of items that are already searchable. A large project can take a while on the first run. When the sync finishes, Raily writes the search configuration for the new collection on its own. The card then shows **Last sync** with the number of items added, updated, and removed, plus when the next sync is due. After that, Raily checks Livingdocs on the schedule you picked. Each sync picks up newly published items, refreshes items that were republished, and removes items that were unpublished. To check right away, click **Resync** on the Source's page. Use **Full reindex** from the menu next to it if search results look wrong and you want every item processed again. To serve the content to agents, wire the collection to an endpoint. ## What Raily indexes Raily reads the latest published version of every **article**, **page**, and **data record** in the project. That includes the text in your custom components and the text fields of your data records. Raily does not index drafts, earlier revisions, or media files such as images and video. An image linked from a document can still appear on its result card. Each item keeps these details, which show on result cards and which Raily can use to narrow a search: | Detail | What it holds | | - | - | | Title | The document title or headline | | Author | The author or byline, when the document has one | | Published date | The visible publication date in Livingdocs | | Modified date | When the document was last updated or republished | | Language | The document's language, when set | | Link | The public URL of the document, when Livingdocs provides one | | Image | The document's lead or teaser image, when it has one | | Document type | Article, page, or data record | | Content type | The Livingdocs content type, such as your own article or page variants | | Channel | The Livingdocs channel the document belongs to | Searches can filter on published date, language, document type, content type, and channel. ## Change a connected Source Open the Source and edit it to replace the access token or change the sync frequency. Leave **Access token** empty to keep the saved token. You can't change the server URL or the project of a connected Source. To search another Livingdocs instance or project, connect a new Source. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Data Catalog](/integrations/data-catalog) > > Review the fields agents filter on # Connect an RSS or Atom feed Source: https://docs.raily.ai/integrations/sources/rss Keep the articles from a public RSS or Atom feed searchable by your AI agents Connect a public RSS or Atom feed and Raily checks it for new entries every hour. Each entry becomes a searchable article in one **feed**, which you can add to any endpoint. ## Before you start * You need the public URL of the feed, for example `https://example.com/feed.xml`. Raily supports RSS 2.0 and Atom. RSS 1.0 (RDF) feeds are not supported. * The feed has to be reachable from the internet without a password. URLs with a username or password in them are rejected. * The feed needs at least one entry. Raily refuses an empty feed at the connection test. ## Connect the feed **1. Open the source catalog** In **Search Rail**, click **Connect source**. **2. Choose RSS / Atom** On **Connect a data source**, click the **RSS / Atom** card. **3. Name the source** In **Name**, type something you'll recognize later, such as `Daily news feed`. **4. Enter the feed URL** Paste the address into **Feed URL**. If you leave out `https://`, Raily adds it. **5. Test the connection** Click **Test connection**. Raily fetches the feed and shows its title, whether it's RSS or Atom, and how many current entries it found. **6. Connect** Click **Connect RSS / Atom**. The button stays off until the test passes. If you change the URL after testing, run the test again. ## What happens next Raily opens the new source and starts the first sync right away. You don't need to do anything while it runs. 1. Raily reads the entries currently in the feed (up to 500) and indexes them. 2. When the first sync finishes, Raily profiles the content and generates the search config for the feed. This usually takes under a minute. 3. The feed card shows **Last sync** with the time and counts of added, updated and removed entries. To make the feed searchable, add it to an endpoint from **Searched by** on the feed card. See [AI endpoints](/concepts/ai-endpoints). After that, Raily checks the feed every hour. To check right now, click **Resync** on the feed card. ### Older entries stay searchable Most feeds only list their latest entries. When an entry drops out of the feed, Raily keeps it. Your archive grows with every sync instead of shrinking to the feed's current window. If an entry changes in the feed, Raily updates the stored copy rather than adding a duplicate. Have older articles that were never in the feed? The source page says **Have an article archive? Contact us**. Send us an export and we'll import your history into the same source. ## What gets indexed Each feed entry becomes one article. Raily keeps the fields the feed provides: | Field | What it holds | | - | - | | Title | The entry's headline | | Text | The entry's summary or full content, with HTML cleaned up | | Link | The original article, used as the link on result cards | | Published date | When the entry was published. Readers can ask for "this week" or "in March" | | Authors | The entry's authors, when the feed lists them | | Categories | The feed's own categories or tags, when present. Readers can filter on them | | Language | The language of the entry | | Image | The entry's own image. If it has none, Raily uses the article page's preview image, then the feed's logo | Raily also reads each article and adds the people, organizations and topics it mentions, so a reader can ask for "articles about the central bank" and get matching entries even when the feed has no categories. To review or change how each field is used in search, open the feed in the [Data Catalog](/integrations/data-catalog). ## Edit or remove the source Open the source and click the pencil (**Edit connection**). You can rename the source or turn it on and off. The **Feed URL** can't be changed, because it identifies the source. To follow a different feed, connect a new source. To remove it, click **Delete source** on the same page and confirm. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Data Catalog](/integrations/data-catalog) > > Review the fields agents filter on # Connect a WordPress site Source: https://docs.raily.ai/integrations/sources/wordpress Make the posts, pages, and custom content of a WordPress site searchable, including PDFs embedded in your articles Connect a WordPress site and Raily reads its content through the standard WordPress REST API, indexes it, and keeps it in sync. You don't install a plugin on your site. ## Before you start * Your site's REST API must be reachable from the public internet at `https://yoursite.com/wp-json`. It is on by default in WordPress. Some security plugins and firewalls turn it off or block it. * You need permission to manage resources in your Raily Organization. Without it, the **Connect source** button doesn't appear. * Optional: a WordPress username and an [Application Password](https://wordpress.org/documentation/article/application-passwords/), if your site only answers the REST API for signed-in users. ## Connect the site **1. Open the source catalog** In the Rail, click **Connect source**. The **Connect a data source** page opens. **2. Pick WordPress** Click **WordPress** (listed under **CMS**). **3. Name the source** In **Name**, type a name you'll recognize later, such as `Company blog`. **4. Enter the site address** In **Site URL**, enter the public address of your site, for example `https://yourblog.com`. If WordPress is installed in a subfolder, include it (`https://example.com/blog`). **5. Add credentials (only if needed)** Public content needs no login. If your site requires one, click **Add access** under **Private content**, then fill in **WordPress username** and **Application Password**. You create an Application Password in WordPress under **Users → Profile → Application Passwords**. It's not your login password, and you can revoke it at any time. **6. Test the connection** Click **Test connection**. Raily checks the site, verifies the credentials if you added them, and lists every type of content the site publishes. **7. Choose what to make searchable** Under **What should we make searchable?**, keep or clear the content types. After a successful test, every type the site publishes is selected: **Posts**, **Pages**, and any custom types your site uses (many sites keep most of their content in a custom type, such as articles or reports). You can select up to 24 types. **8. Set a language (optional)** In **Language (optional)**, enter a language code such as `en`, or leave it blank. **9. Connect** Click **Connect WordPress**. The button stays disabled until a connection test succeeds. ## What happens next Raily opens the new Source and starts profiling your content. Once indexing finishes, Raily generates the search configuration for the site's collection, and you can wire it to an endpoint. Each WordPress Source holds one collection for the whole site. The Source's sync card shows progress while the first sync runs, then the number of items added, updated, and removed. After that, Raily checks the site for new, changed, and removed content about once an hour. To check right away, click **Resync** on the sync card. If content looks wrong, open the menu next to **Resync** and choose **Full reindex** to re-read and re-process every item. ## What gets indexed For each item in the content types you selected, Raily indexes: * The title and body text * The author (the item's WordPress author) * The publish date and last-modified date * Categories, tags, and the excerpt * The content type (post, page, or a custom type) * The featured image, or the first image in the body if there is no featured image * A link to the item on your site Only published items are indexed. Search results link back to the item's page on your site. Some page builders render the page from a template, so WordPress returns an empty body for it. When that happens, Raily reads the main content area of the live page instead. ## Linked PDFs Many sites publish articles whose real content is a PDF: an archive article that is just an embedded PDF viewer, or a short summary with a **Download the PDF** link. Raily reads those documents and indexes their text as part of the article. A document is included when the article body contains it as: * An embedded viewer (a PDF shown inside the page), including viewers that wrap the PDF address * A link to the file, including a WordPress file block The document must: * Be a PDF or a Word document (`.docx`) * Live on your own site. Links to PDFs on other websites, such as a report you cite, are treated as citations and are not indexed. Your site with and without `www.` counts as the same site. Raily reads up to 5 documents per article. When an article has its own text as well, Raily indexes the article text first, followed by the text of each document in the order they appear. The result is still one searchable item: the title, author, date, categories, and link all come from the WordPress article, not from the file. A search that matches text inside the PDF returns the article. Scanned PDFs are supported. Raily extracts their text, which takes longer than for a PDF with a text layer. ### Limits * If a document can't be downloaded (for example, it was deleted) or can't be read, Raily skips it and indexes the article with its own text. * If you replace a PDF with a new file at the same address without editing the article, Raily keeps the old text. Edit the article, or run **Full reindex**, to pick up the new file. ## Edit or remove the source Open the Source and edit it to change the content types, language, or credentials, or to turn it on or off. When you change credentials, click **Test connection** again before saving. The **Site URL** can't be changed after you connect, because it identifies the Source. To index a different site, connect a new WordPress Source. To remove the Source, click **Delete source**. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Data Catalog](/integrations/data-catalog) > > Review the fields agents filter on # Connect a YouTube channel Source: https://docs.raily.ai/integrations/sources/youtube Make the videos on a public YouTube channel searchable by your AI agents Connect a public YouTube channel and Raily turns each video into searchable text: what's said, what's shown on screen, plus the title and description. Agents that search your endpoint can then answer from your videos and link straight back to them on YouTube. Raily handles the processing for you. There's no API key to paste and no model to pick. ## Before you start * The channel must be public. Raily imports completed public videos only, so private videos and live streams that haven't ended are skipped. * Have the channel's address ready. Any of these work: * A handle, such as `@yourchannel` or `https://youtube.com/@yourchannel` * A channel URL, such as `https://www.youtube.com/channel/UC...` * A legacy user URL, such as `https://www.youtube.com/user/yourname` ## Connect the channel **1. Open the source catalog** In the Rail, click **Connect source**. On **Connect a data source**, choose **YouTube**. **2. Enter the channel** In **Channel URL or handle**, paste the channel's handle or URL. **3. Check the channel** Click **Check channel**. Raily looks the channel up and shows its name and picture with a **Connected to** message. If **Source name** is empty, Raily fills it in with the channel name. You can change it. **4. Choose which videos to import** Under **Videos to import**, pick one: * **All videos**: the channel's full history. * **Published after a date**: only videos published after the date you set in **Published after**. * **Latest videos**: the most recent videos. Set **Number of recent videos** between 1 and 1,000. Raily shows how many videos and roughly how many hours of video your choice covers. When you pick a narrower option, it also shows how many hours the full history would be. **5. Confirm a large import, if asked** If the import is over 25 hours of video, check **I understand this is a large one-time import that can take several hours to complete.** You can't connect a large import without it. **6. Choose how often to sync** Under **Keep this Source updated**, pick **Daily**, **Weekly**, or **Manual content sync**. Daily and weekly syncs pick up new videos on their own. With **Manual content sync**, new videos come in only when you click **Resync**. **7. Connect** Click **Connect YouTube**. Raily starts importing your videos and opens the Source's page. ## What happens next The Source's page shows the import as it runs. First you'll see **Downloading your content list…**, then a running count such as **Syncing 120/340 searchable**. Videos become searchable as each one finishes, so you don't have to wait for the whole channel before you can search. Small channels finish in minutes. A large history can take several hours. When the import is done, the sync card reads **Last sync** with the time, the number of videos added, updated, and removed, and when the next sync runs. Raily then sets up search for the channel automatically. When the Source shows **Ready**, add the channel to an endpoint so your agents can search it. See [AI endpoints](/concepts/ai-endpoints). To check for new, changed, or removed videos at any time, click **Resync** on the sync card. ## What gets indexed Each video becomes one searchable item, made of: * The title and description * A transcript of what's said in the video, split into time ranges * Text that appears on screen, and a short description of what's shown Search results show the video's title (linked to the video on YouTube), its thumbnail, the channel name, and the publish date. Agents can also narrow a search by these details: | Detail | Example question | | - | - | | Publish date | "videos from the last month" | | Duration | "short clips under five minutes" | | Language | "videos in Spanish" | | Type (video or completed livestream) | "past livestreams about pricing" | | YouTube tags and topic categories | "videos tagged onboarding" | You can review and adjust how each field is used in the [Data Catalog](/integrations/data-catalog). ### Videos indexed by title and description only Sometimes the full video can't be transcribed. Raily still makes these videos findable by their title, description, channel, and date, and the sync card tells you how many: * **Metadata only · provider refused, searchable by title and description**: the transcription service declined the video. * **Metadata only · could not process, searchable by title and description**: the video itself couldn't be processed. * If only part of a video could be transcribed, the parts that came back are searchable. To try these videos again, open the menu next to **Resync** and choose **Retry failed videos**, or **Also retry refused videos** to include the refused ones. A successful retry replaces the title-only version with the full transcript. ## Changing the Source later * The channel can't be changed. It identifies the Source, so connect a new Source for a different channel. * **Videos to import** can only be widened: an earlier date, a larger number of recent videos, or **All videos**. Once a Source imports **All videos**, the choice is locked. * You can change **Keep this Source updated** at any time. ## Next steps > [card] [Create an AI endpoint](/concepts/ai-endpoints) > > Let agents search this source > [card] [Data Catalog](/integrations/data-catalog) > > Review the fields agents filter on # Storage Overview Source: https://docs.raily.ai/integrations/storage/overview Flexible storage options for your source files ## Overview Raily provides flexible storage options to fit your infrastructure needs. Store content in Amazon S3, use Raily's managed storage, or connect your existing storage systems. ## Storage Options > [card] [Raily Storage](/integrations/storage/raily-storage) > > Fully managed storage with zero configuration > [card] [Amazon S3](/integrations/storage/s3) > > Use your own S3 buckets with Raily's access control > [card] Bring Your Own > > Connect existing storage systems > [card] Hybrid > > Mix storage providers for different content types ## Raily Managed Storage Zero-configuration storage solution with: * **Global CDN** - Fast content delivery worldwide * **Automatic Backups** - Point-in-time recovery included * **Encryption** - Data encrypted at rest and in transit * **Scalability** - Automatic scaling for any workload ## Amazon S3 Integration Connect your own S3 buckets to Raily while maintaining full access control and analytics capabilities. ## Bring Your Own Storage Integrate existing storage systems with Raily's access control layer and analytics. ## Hybrid Storage Use different storage providers for different content types based on your specific needs. ## Best Practices > [card] Encryption > > Always enable encryption for sensitive content > [card] Lifecycle Policies > > Set up automatic archiving and deletion rules > [card] Backups > > Regularly backup critical content > [card] Access Logs > > Monitor storage access patterns ## Next Steps > [card] [Vector Store](/integrations/vector-store/overview) > > Enable semantic search with vector storage > [card] [Access Control](/features/access) > > Configure access policies for stored content # Raily Storage Source: https://docs.raily.ai/integrations/storage/raily-storage Let Raily store and manage your data ## Overview Don't want to manage your own storage? We can store your data on Raily storage and take care of everything for you, including indexing, access control, and search. [Talk to us](https://www.raily.ai/contact) to get set up. # Amazon S3 Storage Source: https://docs.raily.ai/integrations/storage/s3 Connect an Amazon S3 bucket to Raily ## Overview Keep your data in your own S3 bucket and Raily integrates with it. Your files stay in your account, and Raily handles indexing and search on top. ## Setup [Talk to us](https://www.raily.ai/contact). # Add a Vector Store Source: https://docs.raily.ai/integrations/vector-store/overview Connect a vector database to Raily so your collections become searchable Connect a vector database (Qdrant, Pinecone, and others) to Raily. Once connected, Raily can search its collections with access control and usage tracking on top. The steps are similar for every provider. Pick your provider in the tabs below for its connection fields and steps. ## What you can do Once a vector store is connected, Raily searches it with: * **Semantic search** - find content by meaning, not just keywords. * **Metadata filtering** - narrow results by date, author, category, or any field in your [Data Catalog](/integrations/data-catalog). * **Hybrid search** - combine semantic similarity with keyword matching. * **RAG** - feed retrieved passages to an LLM so its answers are grounded in your content. Access control and usage analytics apply to every search, whichever provider you connect. ## Before you start * Admin access to the tenant. * The connection details for your vector store (URL, API key, or connection string). * At least one collection (or index/table) that already holds embeddings. ## Steps In the sidebar, open **Search Rail** (under **Rails**) and click **Connect source**. ![Connect a data source in Search Rail](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/vector-store/connect-source.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=20998c013981b93347a63d1c797a2d46) Pick where your data lives Then pick your provider and follow its steps. > [tab] Qdrant > > **1. Open Qdrant** > > Click the **Qdrant** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Qdrant URL**, for example `your-project.europe-west3-0.gcp.cloud.qdrant.io:6333`. > * **API Key**. Required for Qdrant Cloud, optional for local Qdrant. > > ![Qdrant connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/qdrant.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=8e0bfb5ec30e672ffa7d7e2538b72dc9) > > Qdrant connection form > > **3. Add collections** > > Click **Fetch Collections** and enable the ones you want, or add a collection by name (lowercase letters, numbers, and underscores). > > **4. Set an embedding config** > > Pick an embedding config for each collection. It must match the model that created the vectors. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_qdrant.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=2bb749a998d3c0ce305445f16cb6d144) > > Collection configuration in the Data Catalog > [tab] Pinecone > > **1. Open Pinecone** > > Click the **Pinecone** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **API Key** from your Pinecone console. > > ![Pinecone connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/pinecone.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=799f3924d45a7a150c8ac01b9d5aee8c) > > Pinecone connection form > > **3. Add indexes** > > Click **Fetch Indexes** and enable the ones you want. Each enabled index needs its **Index Host URL**, which Raily fills in from Pinecone. > > **4. Set an embedding config** > > Pick an embedding config for each index. It must match the model that created the vectors. If embeddings are server-generated, set the config to **built-in**. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_pinecone.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=b15f82070b9af3ed8fab0cfdaf92b4a5) > > Collection configuration in the Data Catalog > [tab] Zilliz > > **1. Open Zilliz** > > Click the **Zilliz** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Cluster endpoint URL**, for example `your-cluster.serverless.gcp-us-west1.cloud.zilliz.com`. > * **API Key** for your Zilliz Cloud cluster. > > ![Zilliz connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/zilliz.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7500db44193414b52352167145e34512) > > Zilliz connection form > > **3. Add collections** > > Click **Fetch Collections** and enable the ones you want, or add a collection by name (start with a letter or underscore; letters, numbers, and underscores). > > **4. Set an embedding config** > > Pick an embedding config for each collection. It must match the model that created the vectors. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_zilliz.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=ff0a77a48f6031f1dbc6122ad291bdc0) > > Collection configuration in the Data Catalog > [tab] Milvus > > **1. Open Milvus** > > Click the **Milvus** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Cluster endpoint URL**, for example `milvus.your-company.com`. > * **API Key**. Optional for self-hosted Milvus. > > ![Milvus connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/zilliz.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7500db44193414b52352167145e34512) > > Milvus connection form > > **3. Add collections** > > Click **Fetch Collections** and enable the ones you want, or add a collection by name (start with a letter or underscore; letters, numbers, and underscores). > > **4. Set an embedding config** > > Pick an embedding config for each collection. It must match the model that created the vectors. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > [tab] Weaviate > > **1. Open Weaviate** > > Click the **Weaviate** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Weaviate URL**, for example `your-cluster.c0.europe-west3.gcp.weaviate.cloud`. > * **API Key**. Required for Weaviate Cloud, optional if your instance has no authentication. > > ![Weaviate connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/weaviate.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=5918aca16a01947e745d9ebc6d94a9e7) > > Weaviate connection form > > **3. Add collections** > > Click **Fetch Collections** and enable the ones you want, or add a collection by name. Weaviate uses PascalCase names, for example `MyCollection`. > > **4. Set an embedding config** > > Pick an embedding config for each collection. It must match the model that created the vectors. If embeddings are server-generated, set the config to **built-in**. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_weaviate.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=61c26a50abfdaf6066a1438e7c2a54cc) > > Collection configuration in the Data Catalog > [tab] pgvector > > **1. Open pgvector** > > Click the **pgVector** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Connection String**, for example `postgresql://user@host:5432/dbname`. > * **Password**. Optional if the password is already in the connection string. > > ![pgvector connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/pgvector.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=e9a8c01fe42880cb66d66d5d3b31b956) > > pgvector connection form > > **3. Confirm the connection** > > Raily checks the credentials automatically. The **Credentials** section shows **Verified** when they work, or **Failed** if not. > > **4. Add tables** > > Click **Fetch Tables** and enable the ones you want, or add a table by name. Schema-qualified names are supported, for example `public.documents`. > > **5. Set an embedding config** > > Pick an embedding config for each table. It must match the model that created the vectors. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **6. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > [tab] Oracle > > **1. Open Oracle** > > Click the **Oracle** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Connection String** in Easy Connect form, for example `user@host:1521/FREEPDB1`. For Autonomous Database, add `?wallet_location=...`. > * **Password**. Optional if the password is already in the connection string. > > ![Oracle connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/oracle.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=a4ec184d667941a7afde555018cb1244) > > Oracle connection form > > **3. Confirm the connection** > > Raily checks the credentials automatically. The **Credentials** section shows **Verified** when they work, or **Failed** if not. > > **4. Add tables** > > Click **Fetch Tables** and enable the ones you want, or add a table by name. Schema-qualified names are supported, for example `RAILY.ARTICLES`. > > **5. Set an embedding config** > > Pick an embedding config for each table. It must match the model that created the vectors. If embeddings are server-generated, set the config to **built-in**. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **6. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **7. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_oracle.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=c4c537ce7e87a490c2c3dad389ee96bb) > > Collection configuration in the Data Catalog > [tab] IBM Ceph > > **1. Open IBM Ceph** > > Click the **IBM Ceph** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **RGW Endpoint URL** of the Ceph RADOS Gateway, for example `https://ceph.example.com`. > * **Region**. Required by the S3 client; Ceph ignores it. `us-east-1` is fine. > * **Object Bucket** where uploaded files are stored. Vectors live in `-vectors`. > * **Index Name**. Use `default` unless you have multiple indexes per bucket. > * **Access Key ID** and **Secret Access Key** for the Ceph cluster. > > ![IBM Ceph connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/ceph.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=6299a6dacbfed737553a56bede44fcf9) > > IBM Ceph connection form > > **3. Add vector buckets** > > Click **Fetch Vector Buckets** and enable the ones you want. > > **4. Set an embedding config** > > Pick an embedding config for each vector bucket. It must match the model that created the vectors. > > Don't have one yet? Open the embedding config picker and click **Create New**. > > ![Embedding config picker with Create New](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create1.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=61879b413bbc70398a16893cb781b2fc) > > Create a new embedding config > > Enter a **Name**, pick a **Provider**, and set the **Model Name** and **Dimension** to match the model that created your vectors. Add an **API Key** if the provider needs one, then save. > > ![Embedding config form fields](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/create2.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=7cd576be83273091a9c9f0f47df8a244) > > Embedding config form > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_ceph.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=8d04973b5f3444cfdf3f23a3722b6d69) > > Collection configuration in the Data Catalog > [tab] Salesforce > > **1. Open Salesforce** > > Click the **Salesforce** card. > > **2. Enter the connection details** > > * **Name** for the integration. > * **Instance URL**, for example `https://myorg.my.salesforce.com`. > * **Client ID**, your Connected App consumer key. > * **Client Secret**, your Connected App consumer secret. > > ![Salesforce connection form](https://mintcdn.com/railyai/LT7rWl_muWq2wYsL/images/vector-store/salesforce.png?fit=max\&auto=format\&n=LT7rWl_muWq2wYsL\&q=85\&s=ca70563d105b5627eb00b0e371822a55) > > Salesforce connection form > > **3. Confirm the connection** > > Raily checks the credentials automatically. The **Credentials** section shows **Verified** when they work, or **Failed** if not. > > **4. Add collections** > > Click **Fetch Collections** and enable the ones you want. Salesforce search runs over Cases via SOSL, so no embedding config is needed. > > **5. Save** > > Click **Create Integration**. Raily then configures agentic search for each collection automatically. This can take a few minutes, after which the integration appears under **My Integrations** with an **Active** status. > > > [!NOTE] > > > > Once it finishes, open **Inventory → Data Catalog** to see the generated configuration for each collection. > > **6. See it in the Data Catalog** > > After generation finishes, Raily opens the collection in **Data Catalog**. > > ![Collection configuration in the Data Catalog](https://mintcdn.com/railyai/jfCeh5-7enF3hO2p/images/vector-store/data_catalog_saleforce.png?fit=max\&auto=format\&n=jfCeh5-7enF3hO2p\&q=85\&s=9dab4b5a53769498405ec10bafb0dcf3) > > Collection configuration in the Data Catalog > [tab] Raily Vector Store > > Don't have a vector database yet? [Talk to us](https://www.raily.ai/contact) and we can provide one for you. ## Best practices > [card] Match the embedding config > > The embedding config must match the model that created the vectors. > [card] Design useful metadata > > Index the fields people filter by so the agent can use them. > [card] Keep embeddings current > > Re-embed when content changes so search stays accurate. > [card] Use access control > > Apply policies so each endpoint exposes only what it should. # Quickstart Source: https://docs.raily.ai/quickstart Connect a source, generate its search config, and serve it to your audience Raily Search Rail turns a data source into a search endpoint that your audience's AI agents can call from Claude, ChatGPT, or your own app. The whole flow runs across the top of **Search Rail**, in three stages: **Your corpus → Search Rail → Your audience**. Here it is end to end. **1. Connect your source** In the sidebar, open **Search Rail** (under **Rails**), then click **Connect source**. Pick where your data lives. Raily connects to databases (Qdrant, Pinecone, Weaviate, Milvus, Zilliz, pgvector, Oracle, Chroma), cloud storage (Amazon S3, Azure Blob Storage, Google Cloud Storage, IBM Ceph, or Raily Store if you just have files), YouTube channels and RSS feeds, WordPress sites, and Salesforce. See [Integrations](/integrations/overview) for the per-source details. ![Connect a data source](https://mintcdn.com/railyai/zupwP7lyAxkbDNtb/images/quickstart/choose_integration.png?fit=max\&auto=format\&n=zupwP7lyAxkbDNtb\&q=85\&s=860bf680559d247dd2542467c372f78d) Pick where your data lives **2. Pick collections and an embedding model** Name the source and confirm its credentials show **Verified**. Click **Fetch Collections**, toggle on each collection you want to search, and choose an embedding model. Raily only offers models that match how your data was embedded, so queries are embedded the same way as your corpus. Click **Create Integration**. ![Select collections and an embedding model](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/quickstart/qdrant1.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=4df80c53edfa2929835632049544162e) Choose the collections to search **3. Let Raily build the search config** Raily profiles the collection and generates its search config for you. When it finishes, the collection shows **Ready** and the config is saved as **v1 · latest**. You can open **Edit** to tune it, or **History** to see past versions, anytime. ![Profiling the collection and generating its config](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/quickstart/progress.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=286fe8e6105c397b6735ccd01097b0d8) Raily profiles the collection and generates its config **4. Point an endpoint at it and go live** Under **Searched by**, click **add endpoint**. You have two choices: * **Point an existing endpoint here** (for example **Point Raily MCP Server here**). This moves the endpoint onto this collection. * **Create a new endpoint** when this collection needs its own. See [AI Endpoints](/concepts/ai-endpoints) for details. Either way, the collection goes **live** and starts serving your audience through Claude, ChatGPT, or your app. ![Point an endpoint at the collection](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/quickstart/qdrant2_endpoint.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=e7957775e18478f10bddb504e8f77df5) Point an endpoint at the collection Once it's wired, the collection reads **live** and shows the endpoint that searches it. ![The collection is live, searched by your endpoint](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/quickstart/test.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=15f55f8df832a3f86e54dd99affcfe15) The collection is live and serving your audience See [AI Endpoints](/concepts/ai-endpoints) for more on endpoints and who can reach them. **5. Test your endpoint** Click **Test your endpoint** to preview exactly what your audience's agents see. Ask a question in plain language. Raily searches your collection and answers with links back to the source. This page is an admin preview. Your audience never sees it. They ask from inside Claude, ChatGPT, or your app. ![Test your endpoint](https://mintcdn.com/railyai/XX1nxXkekI9EWYGS/images/quickstart/chat.png?fit=max\&auto=format\&n=XX1nxXkekI9EWYGS\&q=85\&s=4a27a96364d39fa66c9628735f680fde) Preview what your audience sees ## Connect your source to AI clients Your endpoint is live. Now point an AI client at it so people can search your data from the tools they already use. > [card] [Connect to Claude](/connect/claude) > > Add your endpoint to Claude as a custom connector. > [card] [Connect to ChatGPT](/connect/chatgpt) > > Add your endpoint to ChatGPT as an app. # TypeScript SDK Source: https://docs.raily.ai/sdks/javascript Search your data from TypeScript or JavaScript with a typed client. ## Install ```bash npm theme={null} npm install @raily/sdk ``` ```bash pnpm theme={null} pnpm add @raily/sdk ``` ```bash yarn theme={null} yarn add @raily/sdk ``` ```typescript theme={null} import { Raily, RailyError, RailyAuthError } from "@raily/sdk"; ``` ## Quickstart ```typescript theme={null} import { Raily } from "@raily/sdk"; const client = new Raily({ apiKey: process.env.RAILY_API_KEY!, endpoint: process.env.RAILY_ENDPOINT!, }); const results = await client.search("your search query", { limit: 5 }); for (const hit of results) { console.log(`${hit.score?.toFixed(2)} ${hit.fields.title ?? "(untitled)"}`); } ``` Get the endpoint URL and key from your endpoint's **API access** panel — see the [SDK quickstart](/connect/sdk). ## `new Raily(options)` ```typescript theme={null} const client = new Raily({ apiKey: "rly_...", // required endpoint: "https://...", // required — your endpoint URL timeoutMs: 60000, // optional, milliseconds }); ``` | Option | Type | Default | Description | | - | - | - | - | | `apiKey` | `string` | — | The API key for your endpoint. | | `endpoint` | `string` | — | Your endpoint URL. | | `timeoutMs` | `number` | `60000` | Per-request timeout, in milliseconds. | Construct once and reuse it. ## `search(query, options?)` ```typescript theme={null} const results = await client.search("your search query", { limit: 5 }); ``` | Argument | Type | Default | Description | | - | - | - | - | | `query` | `string` | — | What to search for. | | `options.limit` | `number` | `3` | Max results (up to 10; some endpoints cap lower). Fewer may come back. | | `options.explain` | `boolean` | `false` | Resolve to a `SearchResult` (`hits` + `info`) instead of a bare array. | Returns `Promise` — or `Promise` when `explain: true` (see [Debugging empty results](#debugging-empty-results)). ### Debugging empty results A search can legitimately return nothing — and a bare `[]` doesn't say why. Pass `{ explain: true }` to get the endpoint's own message plus a hint: ```typescript theme={null} const res = await client.search("articles", { explain: true }); res.info.count; // 0 res.info.message; // the endpoint's summary, e.g. "No results found" res.info.note; // why, and what to try (only set when there are no hits) for (const hit of res.hits) { /* ... */ } ``` Or have the client log a one-line hint on every empty result during development: ```typescript theme={null} const client = new Raily({ apiKey: "rly_...", endpoint: "https://...", debug: true }); // console.warn(...) when a search returns nothing ``` ## SearchHit ```typescript theme={null} interface SearchHit { score: number | null; fields: Record; // your source's display fields (see below) text: string | null; // a plain-text summary of the result, when available image_url: string | null; // the result's image, for image sources is_relevant: boolean | null; // false for a lower-confidence result (few strong matches) source_collection: string | null; id: string | null; raw: Record; // the full result, for anything not surfaced above } ``` ### Working with `fields` `fields` is a flat `{ name: value }` map of the display fields configured on your source — e.g. `title`, `text`, `author`, `published_date`. Read a value by name: ```typescript theme={null} for (const hit of await client.search("your search query", { limit: 5 })) { console.log(hit.fields.title, "—", hit.fields.published_date); } ``` A field with multiple values is joined with `", "`. To see what your source exposes, log the whole map once: ```typescript theme={null} const [first] = await client.search("your search query", { limit: 1 }); for (const [name, value] of Object.entries(first.fields)) { console.log(name, "=", value); } ``` Need the full original result (every field, untrimmed)? It's on `hit.raw`. ## Errors ```typescript theme={null} import { Raily, RailyError, RailyAuthError } from "@raily/sdk"; try { const hits = await client.search("your search query"); } catch (err) { if (err instanceof RailyAuthError) { // key missing, invalid, expired, or for a different endpoint } else if (err instanceof RailyError) { // network / server / timeout } else { throw err; } } ``` | Error | When | What to do | | - | - | - | | `RailyAuthError` | Key missing, invalid, expired, or for a different endpoint. | Check `RAILY_API_KEY` and that it was issued for this endpoint. | | `RailyError` | Network, server, or timeout. | Retry with backoff; raise `timeoutMs` for slow networks. | `RailyAuthError` extends `RailyError`, so check it first. ## Concurrency `search` returns a promise — fan out with `Promise.all`: ```typescript theme={null} const queries = ["batteries", "climate", "elections"]; const results = await Promise.all(queries.map((q) => client.search(q, { limit: 3 }))); ``` ## Recipe: a search route ```typescript Next.js (app/api/search/route.ts) theme={null} import { Raily } from "@raily/sdk"; const client = new Raily({ apiKey: process.env.RAILY_API_KEY!, endpoint: process.env.RAILY_ENDPOINT!, }); export async function GET(req: Request) { const q = new URL(req.url).searchParams.get("q") ?? ""; const hits = await client.search(q, { limit: 5 }); return Response.json(hits.map((h) => ({ score: h.score, fields: h.fields }))); } ``` ```typescript Express theme={null} import express from "express"; import { Raily } from "@raily/sdk"; const client = new Raily({ apiKey: process.env.RAILY_API_KEY!, endpoint: process.env.RAILY_ENDPOINT!, }); const app = express(); app.get("/search", async (req, res) => { const hits = await client.search(String(req.query.q ?? ""), { limit: 5 }); res.json(hits.map((h) => ({ score: h.score, fields: h.fields }))); }); ``` ## Troubleshooting > [accordion] No results came back (empty array) > > An empty array is a valid answer, not an error. The usual causes, in order: > > 1. **The query is too generic.** Category words like `"articles"`, `"news"`, or `"posts"` > carry no topical signal, so nothing matches strongly enough to return. Search a > *specific topic* (`"battery recycling"`, not `"articles"`). > 2. **A freshness filter.** Queries that imply recency (`"latest"`, `"news"`) apply a > `published_date` cutoff — if your source's data is older, that can remove everything. > Drop the recency words or widen the range. > 3. **Your source has no data yet.** A brand-new source may not have finished indexing yet. > Search a term you *know* is in the data; if that's also empty, confirm the source has > finished indexing in the Raily app. > > Use `{ explain: true }` to see which it is: > > ```typescript theme={null} > const res = await client.search("articles", { explain: true }); > console.log(res.info.count, res.info.message, res.info.note); > ``` > [accordion] “API key was rejected for this endpoint” (RailyAuthError) > > The key is missing, wrong, expired, or was issued for a different endpoint. A key only > works against the endpoint it was created on. Re-check `RAILY_API_KEY` and `RAILY_ENDPOINT`. > [accordion] Searches are slow or time out > > Raise `timeoutMs` and retry. Reuse one client instead of constructing one per request. # SDKs Source: https://docs.raily.ai/sdks/overview Search your data from your own code with the Python or TypeScript SDK. 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](/connect/sdk).) > [card] [Python](/sdks/python) > > `pip install raily-ai` > [card] [TypeScript / JavaScript](/sdks/javascript) > > `npm install @raily/sdk` Both SDKs share the same shape (Python shown): ```python theme={null} client.search("your search query", limit=5) # → ranked results with display fields ``` New to it? Start with the [SDK quickstart](/connect/sdk) — get a key and run your first search in a couple of minutes. ## What you get * **One method** — `search(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. # Python SDK Source: https://docs.raily.ai/sdks/python Search your data from Python with a typed client. ## Install ```bash theme={null} pip install raily-ai ``` Python 3.10+. The import name is `raily`: ```python theme={null} from raily import Raily, AsyncRaily, RailyError, RailyAuthError ``` ## Quickstart ```python theme={null} import os from raily import Raily client = Raily( api_key=os.environ["RAILY_API_KEY"], endpoint=os.environ["RAILY_ENDPOINT"], ) for hit in client.search("your search query", limit=5): print(f"{hit.score:.2f} {hit.fields.get('title', '(untitled)')}") ``` Get the endpoint URL and key from your endpoint's **API access** panel — see the [SDK quickstart](/connect/sdk). ## `Raily(...)` ```python theme={null} client = Raily( api_key="rly_...", # required endpoint="https://...", # required — your endpoint URL timeout=60.0, # optional, seconds ) ``` | Parameter | Type | Default | Description | | - | - | - | - | | `api_key` | `str` | — | The API key for your endpoint. | | `endpoint` | `str` | — | Your endpoint URL. | | `timeout` | `float` | `60.0` | Per-request timeout, in seconds. | The client holds no session state — construct it once and reuse it. ## `search(query, limit=3)` ```python theme={null} results = client.search("your search query", limit=5) ``` | Parameter | Type | Default | Description | | - | - | - | - | | `query` | `str` | — | What to search for. | | `limit` | `int` | `3` | Max results to return (up to 10; some endpoints cap lower). Fewer may come back. | | `explain` | `bool` | `False` | Return a `SearchResult` (`hits` + `info`) instead of a bare list. | Returns a `list[SearchHit]` — or a `SearchResult` when `explain=True` (see [Debugging empty results](#debugging-empty-results)). ### Debugging empty results A search can legitimately return nothing — and a bare `[]` doesn't say why. Pass `explain=True` to get the endpoint's own message plus a hint: ```python theme={null} res = client.search("articles", explain=True) print(res.info.count) # 0 print(res.info.message) # the endpoint's summary, e.g. "No results found" print(res.info.note) # why, and what to try (only set when there are no hits) for hit in res: # SearchResult is iterable over hits ... ``` Or have the client log a one-line hint on every empty result during development: ```python theme={null} client = Raily(api_key="rly_...", endpoint="https://...", debug=True) # logs to the "raily" logger when a search returns nothing ``` ## SearchHit | Field | Type | Description | | - | - | - | | `score` | `float \| None` | Relevance score (higher is better). | | `fields` | `dict[str, str]` | Your source's display fields as a flat `{name: value}` map (see below). | | `text` | `str \| None` | A plain-text summary of the result, when available. | | `image_url` | `str \| None` | The result's image, for image sources (otherwise `None`). | | `is_relevant` | `bool \| None` | `False` for a lower-confidence result returned when there are few strong matches. | | `source_collection` | `str \| None` | The source the result came from. | | `id` | `str \| None` | Result id, when the source provides one. | | `raw` | `dict` | The full original result, for anything not surfaced above. | ### Working with `fields` `fields` is a flat `{name: value}` map of the display fields configured on your source — e.g. `title`, `text`, `author`, `published_date`. Read a value by name: ```python theme={null} for hit in client.search("your search query", limit=5): print(hit.fields.get("title"), "—", hit.fields.get("published_date")) ``` A field with multiple values is joined with `", "`. To see what your source exposes, print the whole map once: ```python theme={null} for name, value in client.search("your search query", limit=1)[0].fields.items(): print(name, "=", value) ``` Need the full original result (every field, untrimmed)? It's on `hit.raw`. ## Errors ```python theme={null} from raily import Raily, RailyError, RailyAuthError try: hits = client.search("your search query") except RailyAuthError: ... # key missing, invalid, expired, or not valid for this endpoint except RailyError as exc: ... # network / server / timeout print(f"Search failed: {exc}") ``` | Exception | When | What to do | | - | - | - | | `RailyAuthError` | Key missing, invalid, expired, or for a different endpoint. | Check `RAILY_API_KEY` and that it was issued for this endpoint. | | `RailyError` | Network, server, or timeout. | Retry with backoff; raise `timeout` for slow networks. | `RailyAuthError` is a subclass of `RailyError`, so catch it first. ## Async `AsyncRaily` has the same surface with `await`: ```python theme={null} import asyncio from raily import AsyncRaily async def main(): client = AsyncRaily(api_key="rly_...", endpoint="https://...") hits = await client.search("your search query", limit=5) print(len(hits)) asyncio.run(main()) ``` Run many searches concurrently: ```python theme={null} queries = ["batteries", "climate", "elections"] results = await asyncio.gather(*(client.search(q, limit=3) for q in queries)) ``` ## Recipe: a search endpoint with FastAPI ```python theme={null} import os from fastapi import FastAPI from raily import AsyncRaily, RailyError app = FastAPI() raily = AsyncRaily( api_key=os.environ["RAILY_API_KEY"], endpoint=os.environ["RAILY_ENDPOINT"], ) @app.get("/search") async def search(q: str, limit: int = 5): try: hits = await raily.search(q, limit=limit) except RailyError: return {"results": []} return { "results": [ {"score": h.score, "fields": h.fields, "source": h.source_collection} for h in hits ] } ``` ## Troubleshooting > [accordion] No results came back (empty list) > > An empty list is a valid answer, not an error. The usual causes, in order: > > 1. **The query is too generic.** Category words like `"articles"`, `"news"`, or `"posts"` > carry no topical signal, so nothing matches strongly enough to return. Search a > *specific topic* (`"battery recycling"`, not `"articles"`). > 2. **A freshness filter.** Queries that imply recency (`"latest"`, `"news"`) apply a > `published_date` cutoff — if your source's data is older, that can remove everything. > Drop the recency words or widen the range. > 3. **Your source has no data yet.** A brand-new source may not have finished indexing yet. > Search a term you *know* is in the data; if that's also empty, confirm the source has > finished indexing in the Raily app. > > Use `explain=True` to see which it is: > > ```python theme={null} > res = client.search("articles", explain=True) > print(res.info.count, res.info.message, res.info.note) > ``` > [accordion] “API key was rejected for this endpoint” (RailyAuthError) > > The key is missing, wrong, expired, or was issued for a different endpoint. A key only > works against the endpoint it was created on. Re-check `RAILY_API_KEY` and `RAILY_ENDPOINT`. > [accordion] Searches are slow or time out > > Raise the `timeout` (seconds) and retry. Reuse one client rather than constructing one > per request.