# Search

Customers can search for answers to their questions directly in the knowledge base. Public, unauthenticated users' searches will run against all articles marked as **public**. Logged in users searches will run against all articles marked as **public** and articles marked as **customer**, if the logged in user fits within the specified filters for that article.

Internal users can visit the knowledge base and [articles marked](/pylon-docs/knowledge-base/articles-and-collections.md#visibility) as **internal** and unlisted articles will also be visible and accessible via search.&#x20;

{% hint style="info" %}
Within your Knowledge Base analytics, you can see a list of all previous search queries and how many results they brought up.\
\
Use this to inform you on what documentation to write!
{% endhint %}

## **Federated Search**

For customers using [AI agents](/pylon-docs/ai-agents/overview.md), your knowledge base search will be **federated** across your public training data. This means users' searches will pull up native search results across connected sources.

<figure><img src="/files/kan1kIH00op9DmxqCCzw" alt=""><figcaption><p>A search query with results from the knowledge base, documentation site, and marketing page.</p></figcaption></figure>

Your team can search for knowledge base articles using [Command Search](/pylon-docs/platform/command-search.md) or from the issue detail view directly by clicking on the knowledge base icon in the sidebar of an issue.

<figure><img src="/files/LGGE7XOYyfQkkR7XDwEe" alt=""><figcaption></figcaption></figure>

## AI Search

When your customer asks a question in the KB search, Pylon's AI will attempt to answer their question directly as the first search results, and cite its sources.

Note: this is currently only supported when directly searching on the Knowledge Base. AI summaries are not yet supported when searching through the Knowledge Base chat widget module.

<figure><img src="/files/CaSpNXEWbCmBC7zeZ0QX" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.usepylon.com/pylon-docs/knowledge-base/search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
