# How does Bito Understand My Code?

Bito deploys a [**Vector Database**](/help/bitos-ai-stack/vector-databases.md) locally on the user’s machine, bundled as part of the Bito IDE plug-in. This database uses [**Embeddings**](/help/bitos-ai-stack/embeddings.md) (a vector with over 1,000 dimensions) to retrieve text, function names, objects, etc. from the codebase and then transform them into multi-dimensional vector space.&#x20;

Then when you give it a function name or ask it a question, that query is converted into a vector and is compared to other vectors nearby. This returns the relevant search results. So, it's a way to perform search not on keywords, but on meaning. Vector Databases are able to do this kind of search very quickly.

{% hint style="info" %}
Learn more about [**how Bito indexes your code**](/help/bitos-ai-stack/indexing.md) so that it can understand it.
{% endhint %}

Bito also uses an **Agent Selection Framework** that acts like an autonomous entity capable of perceiving its environment, making decisions, and taking actions to achieve certain goals. It figures out if it’s necessary to do an embeddings comparison on your codebase, do we need to perform an action against Jira, or do we do something else.&#x20;

Finally, Bito utilizes [**Large Language Models (LLMs)**](/help/bitos-ai-stack/large-language-models-llm.md) from Open AI, Anthropic, and others that actually provide the answer to the question by leveraging the context provided by the Agent Selection Framework and the embeddings.&#x20;

This is what makes us stand out from other AI tools like ChatGPT, GitHub Copilot, etc. that do not understand your entire codebase.&#x20;

We’re making significant innovations in our [**AI Stack**](/help/bitos-ai-stack.md) to simplify coding for everyone. To learn more about this head over to [**Bito’s AI Stack documentation**](/help/bitos-ai-stack.md).


---

# 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.bito.ai/ai-code-reviews-in-ide/ai-that-understands-your-code/how-does-bito-understand-my-code.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.
