> For the complete documentation index, see [llms.txt](https://docs.airops.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airops.com/docs/pt/contexto/knowledge-bases/knowledge-base-search.md).

# Pesquisa na Base de Conhecimento

{% @arcade/embed url="<https://app.arcade.software/share/mIqbyjPMOd9AEzVICVfs>" flowId="mIqbyjPMOd9AEzVICVfs" %}

## Pesquisa na base de conhecimento

A funcionalidade de pesquisa na base de conhecimento da AirOps utiliza a pesquisa semântica para encontrar informações com base no significado, em vez de correspondências exatas de palavras-chave. Quando faz uma pesquisa, o sistema apresenta os segmentos de conteúdo mais relevantes dos seus documentos, não necessariamente ficheiros ou artigos inteiros, o que facilita a localização de informações específicas.

Pode testar esta funcionalidade através do botão "Testar pesquisa" em qualquer base de conhecimento que tenha criado, para verificar a eficácia com que o sistema recupera informações contextualmente relevantes dos seus dados. Esta abordagem garante resultados precisos e direcionados, que correspondem à intenção da sua consulta, em vez de se limitarem a encontrar palavras correspondentes.

<figure><img src="https://31915162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX2n5yPRPynbnWuO4SH0M%2Fuploads%2Fgit-blob-8943426b90817c78841e6cab2630dda5169167f7%2Fkb-search-test-01-search-test.png?alt=media" alt="Knowledge Base Search Test with a query and ranked result chunks from SpaceOps Docs"><figcaption><p>Teste como uma base de conhecimento responde a uma consulta.</p></figcaption></figure>

## O que é a pesquisa semântica?

As bases de dados semânticas são diferentes das bases de dados comuns baseadas em palavras-chave, como as bases de dados SQL. Devolvem resultados com o significado semântico mais próximo, não apenas correspondências exatas. Por exemplo, uma pesquisa por "gelado de baunilha" devolveria resultados como "gelado de baunilha, creme de baunilha, gelado de chocolate, sundae". É ideal para casos de utilização de recuperação de informação em que pretende encontrar conteúdo relevante para um determinado tema ou pedido de um utilizador, e é a base de todos os chatbots "treinados com os seus dados".


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.airops.com/docs/pt/contexto/knowledge-bases/knowledge-base-search.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
