This commit is contained in:
Nathan Sobo 2023-05-23 01:56:28 -06:00
parent 5362e7d346
commit 073967c80b

View file

@ -6,8 +6,13 @@ Mention a language model with / at the start of any line, like this:
> Zed's approach to integrating with large language models (LLMs) involves seamless communication between the user and the AI model. By incorporating a mention with a / at the beginning of a line, users can directly ask questions or request assistance from the AI model. This provides an interactive and efficient way to collaborate within the editor, enhancing productivity and supporting user needs. < > Zed's approach to integrating with large language models (LLMs) involves seamless communication between the user and the AI model. By incorporating a mention with a / at the beginning of a line, users can directly ask questions or request assistance from the AI model. This provides an interactive and efficient way to collaborate within the editor, enhancing productivity and supporting user needs. <
This is a document, but it's also more than that. It's a conversation with the model. The document represents the *context* that feeds into a model invocation. The conversation between one or more users and the model is actually a branching and merging conversation of continuously evolving contexts, and the connection of all edits is modeled as a conversation graph. This document serves as both the context for AI model invocation and as a representation of an ongoing conversation between the users and the model. Zed supports lightweight branching and merging of these contexts. As users query the model, then integrate changes based on its response, we maintain a history relating every model output to the evolving document.
/ Confirm you understand the above. / What are the benefits of doing this?
> Yes, I understand. The document serves as both the context for AI model invocation and as a representation of an ongoing conversation between the users and the model. The conversation includes branching and merging contexts, and all edits contribute to the conversation graph. < > The benefits of integrating AI models in this manner include:
1. Streamlined workflow: Users can maintain a continuous interaction with the model while working on a document, eliminating the need to switch between tools.
2. Improved collaboration: The approach allows multiple users to collaborate with the AI model, enhancing the collective decision-making process.
3. Context-aware assistance: As the document serves as the context, the AI model is able to understand the evolving context and provide more relevant and informed suggestions.
4. Transparency: Maintaining a history of the model's outputs in connection with the document ensures that the conversation remains transparent and traceable, facilitating better understanding between users and the AI.
5. Flexibility: Lightweight branching and merging allow users to experiment with different ideas and incorporate the most appropriate suggestions from the AI model. <