Security and data privacy
Air Context indexes your code and stores vector representations of it in a vector database. This topic covers what is stored and where, how long it is kept, who can access it, and how to remove it.
Where the embeddings are computed and where the index is stored depend on how you index. For the setups to choose from, see Where your code is indexed and stored. For a step-by-step description of what happens to your code during indexing, storage, and retrieval, including the data flow diagram, see How indexing works.
What is stored
Code chunks stored as vector embeddings. Chunks of source code are converted to embeddings and stored in a vector database. Raw source code isn't stored.
File paths. Air Context stores file paths to trace back the location of code chunks to the corresponding files in the repositories they originated from.
Code chunk offsets. Air Context stores offsets that point to the exact location of the stored chunk in the source file.
Repository and revision identifiers. The identifiers of the repository and the specific Git revision that were used as the base for code indexing. For non-Git folders, Air Context instead stores an SHA-256 hash of the folder's canonical path joined with the host name of the machine where the folder is located.
Data retention
Data stored on the Air Context server is retained for 14 days after it was last searched, while searching the index resets this period. There is currently no option to extend retention without searching or re-indexing. Locally stored indexes aren't subject to this rule: they persist until you remove them with jbcontext remove-index.
Storage locations
Repository data stored on the Air Context server is kept within the JetBrains cloud infrastructure on Google Cloud. The geographical location of the primary storage is Ireland, with index replicas on Google Cloud in the United States. The replicated US-based storage is used only for faster retrieval, while data processing and storing into vector databases only take place in the primary location in Ireland.
When an index is stored locally, the index itself, that is, the vectors, file paths, and offsets, is kept in the Air Context home directory on your machine and isn't uploaded. See Local storage.
The index of your local changes is always stored on your machine, wherever the index of the repository is stored. See Local changes in search.
The Air Context home directory is ~/.jbcontext on macOS and Linux and %LOCALAPPDATA%\JBContext on Windows.
If you set up a share point, copies of locally stored indexes are also kept in the Git LFS repository that you configure, and whoever can read that repository can use them. See Share local indexes.
Data sharing and access
Access to indexed repository data depends on whether the user belongs to an organization:
Organization members. Indexed repository data is available only within the same organization.
Individual users. For users who aren't organization members, indexed data is available only to the user who indexed it.
Data removal
You can delete your indexed data using the jbcontext remove-index command. For the options, see jbcontext remove-index.
The command removes only your indexes of the repository, wherever they are stored, locally or on the Air Context server. Indexes that weren't created with your account are kept.
In an organization, an administrator can delete all indexes of a repository in JetBrains Console: for selected repositories, or for all repositories at once after blocking indexing. See Delete the index of a repository and Delete indexes after blocking.
jbcontext share delete removes indexes published to a share point from its repository tree, but the Git LFS host keeps the stored objects. See jbcontext share.
Deleting an index doesn't prevent the repository from being indexed again:
To keep a repository or parts of it out of the index, add a .jbcontextignore file, as described in Exclude files from indexing.
In JetBrains Console, an administrator can restrict indexing for a repository or block indexing for the whole organization. See Restrict indexing for a repository and Manage indexing settings.