# Code Search and Discovery

The Flex IP Commons provides advanced search and discovery tools for finding and comparing code assets based on various criteria, such as functionality, language, dependencies, and usage metrics. Developers can use natural language queries, code snippets, or API signatures to search for relevant code NFTs across the registry.

The search engine employs machine learning and semantic analysis techniques to understand the intent and context of the queries, and to rank the results based on relevance and quality. The search results can be further filtered and sorted based on metadata attributes, such as license type, version, or popularity.

{% hint style="info" %}
The IP Commons also provides personalized code recommendations and analytics, based on the developer's profile, interests, and usage history. The recommendation engine uses collaborative filtering and content-based filtering algorithms to suggest relevant code assets and creators and to help developers discover new and trending code patterns and libraries.
{% endhint %}


---

# 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://flexecosystem.gitbook.io/flex-docs/protocol/flex-commons/code-search-and-discovery.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.
