# Vector store \(\#2658\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/37568ccbf0549da83ebd292d3490f982f82497b0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 37568ccbf0549da83ebd292d3490f982f82497b0

Requested commit: 37568ccbf0549da83ebd292d3490f982f82497b0

Commit: 37568ccbf0549da83ebd292d3490f982f82497b0

Tree: ee62a3b330a3cea8e10a8403ed22f1d547ddb104

Author: Kyle Caverly

Committer: GitHub

## Message

```
Vector store (#2658)

This PR includes a new crate, aimed at maintaining a consistent semantic
embedding database, for any project opened with Zed. At a high level,
for each file in a project, we parse the file with treesitter, embed the
symbol "document" objects with OpenAI, and maintain a consistent
database of these embeddings and offset locations in a sqlite database.
Once stored, we have built a simple modal interface for querying on
these symbols embeddings using natural language, offering the
opportunity to navigate to the selected symbol.

This initial PR is intended to provide this functionality only in preview,
as we explore, evaluate and iterate on the vector store.

- Full task details are provided in the [Semantic Search Linear
Project](https://linear.app/zed-industries/project/semantic-search-7c787d198ebe/Z)
```

## Parents

- [dc09a11090885239a950044a28ad60033d9e75b9](https://git.cafe/gitcafe/zed/commit/dc09a11090885239a950044a28ad60033d9e75b9?format=markdown)

- [c141519dba6d5c0f7261e19bfdc3d81a937f5125](https://git.cafe/gitcafe/zed/commit/c141519dba6d5c0f7261e19bfdc3d81a937f5125?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/37568ccbf0549da83ebd292d3490f982f82497b0?format=markdown)
