> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gloo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search Playground

> Test semantic search across your Data Engine content library.

The Search Playground lets you test [semantic search](https://docs.gloo.com/ai-learning-center/gloo-ai-101/data-and-memory.md#semantic-search) across your [organization](https://docs.gloo.com/getting-started/glossary.md#organization)'s content library in your browser. Try queries, see how results rank, and preview what the Search API will return before you build it into your application.

> [!NOTE]
>
> The Search Playground is available to **organizations with Data Engine access**. Data Engine is currently at capacity. See [Billing & Plans](https://docs.gloo.com/studio/billing.md) to request access.
>
> You also need content uploaded to your content library. See [Manage Content](https://docs.gloo.com/api-guides/content.md) to add content.

## Getting Started

**1. Open Gloo AI Studio**

Log in to [Gloo AI Studio](https://studio.ai.gloo.com).

**2. Open the Search Playground**

Click **Playground** in the main navigation, then select the **Search** tab.

**3. Choose a publisher (optional)**

Optionally, narrow the search with the publisher filter (the default is **All publishers**).

**4. Search**

Enter a search query in the text input, then press **Enter** or click the arrow button to see results.

> [!NOTE]
>
> Only Publishers where you have access appear in the filter. If your organization has no Publishers, the Playground shows "This organization has no publishers" and search is disabled. Create a Publisher and upload content first.

After you search, a second **All publishers** filter lets you narrow the results you already have to a single publisher without searching again.

![Publisher dropdown showing available content libraries](https://mintcdn.com/gloo-b243725a/CYIFNvSXDWDBIfj7/images/playground-search-library.png?fit=max\&auto=format\&n=CYIFNvSXDWDBIfj7\&q=85\&s=9ae3e4c84ffd38a40dbdaa0a84ed66d7)

## Understanding Search Results

Each result card shows:

| Field | What it shows |
| :- | :- |
| **Title** | The content item's headline or name |
| **Part** | Sequential identifier for multi-part content (e.g., chapters, episodes) |
| **Source** | The publisher or origin of the content |
| **Snippet** | A preview of relevant text from the content |

Results are ranked by semantic relevance, not keyword matching, so the most relevant content appears first even without your exact search terms.

> [!TIP]
>
> A search for "dealing with anxiety" might return content about "managing stress" or "finding peace" because they're semantically related.

![Search results showing cards with titles, sources, and snippets](https://mintcdn.com/gloo-b243725a/CYIFNvSXDWDBIfj7/images/playground-search-results.png?fit=max\&auto=format\&n=CYIFNvSXDWDBIfj7\&q=85\&s=831a15e578e85d99da3416d11d29ac1b)

## Exploring Key Insights

Some search results include a **Key Insights** section:

**1. Open a result**

Select a result to open its details panel.

**2. Find Key Insights**

Look for the **Key Insights** section in the panel, below the title, publisher, and snippet.

**3. Review the analysis**

Review the AI-generated analysis, which includes why the snippet matters, the questions it answers, flourishing and thriving analysis, and ratings such as sentiment and readability.

> [!NOTE]
>
> Key Insights are generated automatically when available; whether a result has them depends on result quality and content type.

![Expanded Key Insights panel showing AI-generated summaries](https://mintcdn.com/gloo-b243725a/CYIFNvSXDWDBIfj7/images/playground-search-insights.png?fit=max\&auto=format\&n=CYIFNvSXDWDBIfj7\&q=85\&s=6963816dfefcd1fd5638b12539140c04)

## Refining Your Search

| Technique | How | Example |
| :- | :- | :- |
| **Use Natural Language** | Write queries as questions or phrases, not just keywords | Good: "How can I improve my prayer life?" Also Good: "tips for consistent prayer". Less Effective: "prayer" |
| **Be Specific** | Add context to narrow results | "marriage advice for newlyweds" instead of "marriage"; "understanding the book of Romans" instead of "Romans" |
| **Test Variations** | Try different phrasings to see how semantic search interprets your query | "coping with loss" vs. "grief support" vs. "dealing with death" |
| **Reset and Retry** | Click **Reset search** to clear your search and start again | |

## Understanding Semantic Search

Semantic search finds content by meaning rather than by exact words. Your query and your content are each turned into an *embedding*, a list of numbers that captures meaning, and results are ranked by how close in meaning they are to your query. See [Embeddings: How AI Understands Meaning](https://docs.gloo.com/ai-learning-center/gloo-ai-103/embeddings.md) for more.

Compared with keyword search:

| Keyword Search | Semantic Search |
| :- | :- |
| Matches exact words in your query | Understands intent and meaning |
| Ranks by word frequency | Ranks by contextual relevance |
| Misses synonyms and related concepts | Finds related concepts even without exact matches |

**Example Comparisons:**

| Query | Keyword Search Finds | Semantic Search Finds |
| - | - | - |
| "finding purpose" | Content with exact phrase "finding purpose" | Also: "discovering your calling", "life meaning", "God's plan for you" |
| "dealing with fear" | Only "fear" mentions | Also: "overcoming anxiety", "courage", "trusting God in uncertainty" |
| "healthy relationships" | Exact match only | Also: "building strong marriages", "biblical friendship", "communication skills" |

> [!TIP]
>
> Think about what users mean, not just what they say: semantic search finds content that answers the underlying question.

## Transitioning to API

| Playground Setting | API Parameter | Example Value |
| - | - | - |
| Publisher filter | `tenant` (and `collection`) | `"ExamplePublisherName"` (the publisher name with spaces removed) and `"GlooProd"` |
| Search query | `query` | `"How to pray effectively"` |
| Result count | `limit` | `10` (default) |

To call search from code, follow the [Search API Guide](https://docs.gloo.com/api-guides/search.md) to implement semantic search in your application, and [Generate API Keys](https://docs.gloo.com/studio/manage-api-credentials.md) for API access. [Upload Content](https://docs.gloo.com/api-guides/upload-content.md) covers content ingestion and management.

## Frequently Asked Questions

> [accordion] Why can't I access the Search Playground?
>
> It requires Data Engine access; Inference on its own does not include search. [Request Data Engine access](https://docs.gloo.com/studio/billing.md) to use this feature.

> [accordion] Why don't I see any Publishers in the dropdown?
>
> Publishers appear once your organization has created them. Create a Publisher, then upload content via [Manage Content](https://docs.gloo.com/api-guides/content.md) or the Content API, then return to the Search Playground.

> [accordion] How many results does the Playground return?
>
> The Playground returns up to 10 results by default. The Search API sets the count with the `limit` parameter; 10 to 100 is recommended.

> [accordion] Why are my results irrelevant?
>
> Try these steps:
>
> * Make your query more specific with additional context
> * Verify your content library contains relevant material
> * Test different query phrasings
> * Ensure content has been fully processed after upload

> [accordion] What's the difference between semantic and keyword search?
>
> Semantic search finds conceptually related content even without exact word matches; keyword search only matches specific words. Semantic search works better for natural-language queries.

> [accordion] Can I filter results by content type?
>
> The Playground shows all results from the selected Publisher. Use the Search API to implement custom filtering by content type, date, author, or other metadata in your application.

> [accordion] How do I use search results for RAG (Retrieval Augmented Generation)?
>
> Search results include text snippets suited to [RAG](https://docs.gloo.com/ai-learning-center/gloo-ai-103/how-rag-actually-works.md). The snippets preview the content you'll receive via the API, which you can pass to the Completions API as context for generating answers.

## Next steps

Search results depend on how content was prepared: see [Preparing Content for Ingestion](https://docs.gloo.com/best-practices/ingestion-pattern.md). To answer questions from these results with sources people can check, see [Building Trustworthy Grounded Applications](https://docs.gloo.com/best-practices/trustworthy-grounded-applications.md).

> [card] [Search guide](https://docs.gloo.com/api-guides/search.md)
>
> How the Search API works.

> [card] [Step-by-step tutorial](https://docs.gloo.com/tutorials/search.md)
>
> Build custom search in code.

> [card] [Manage Publishers](https://docs.gloo.com/studio/manage-publishers.md)
>
> Choose and manage the publishers you search.

> [card] [Manage Content](https://docs.gloo.com/api-guides/content.md)
>
> Upload and organize content in Studio


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.