zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.42k stars 3.01k forks source link

AI Assistant should have embedding context of the entire codebase #15924

Open rahulchhabra07 opened 3 months ago

rahulchhabra07 commented 3 months ago

Check for existing issues

Describe the feature

For complex projects, expkicitly adding code context of relevant files becomes insufficient since changes and context gets too distributed and out of direct coverage and Assistant's suggestions have reduced marginal utility.

Continuously updated code context embeddings always available to chat assistant solves this problem.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Kae7in commented 2 months ago

I still hop between Cursor and Zed for this very reason. The full codebase indexing capabilities of Cursor are invaluable in a large codebase where one person can't understand / know where things are at. It makes my entire team way more independent than they would otherwise be.

jbial commented 1 month ago

I love Zed but I had to migrate to pearAI which has this feature (through Continue.dev). Ive been exclusively using ollama models to configure it and so far it works great with the nomic-text-embed model. But, I do miss Zed sometimes and feel like this feature would bring me back and keep me there.

Do we have a timeline for this feature? I understand it's prob not straightforward as it will involve local vector databases, RAG, etc but it seems like this is necessary to compete with this recent wave of new ai text editors.

jac-cbi commented 2 weeks ago

I've reached the point with Zed and ollama that I now need the editor to have more context about what I'm talking about.

Please take a look at integrating swiftide. It's specifically designed for this task.

It would be huge if all rustdocs, posix man pages, code from dependent crates, and previous code revisions from the git history were searchable in a vector db for providing query context.

damienlethiec commented 1 week ago

Same here ! It is the missing feature for me