Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more context to the LLM #220

Open
andrewpareles opened this issue Jan 22, 2025 · 0 comments
Open

Provide more context to the LLM #220

andrewpareles opened this issue Jan 22, 2025 · 0 comments
Labels
high priority High priority issue

Comments

@andrewpareles
Copy link
Contributor

andrewpareles commented Jan 22, 2025

The bullet points below apply to all LLM calls (both Ctrl+L, Ctrl+K) unless mentioned otherwise:

  • give the LLM the full file path of the files you send it, not just the name of the file ignoring the path
  • give the LLM the hierarchy of the file's parent directory - e.g. the names of all the sibling files
  • give the LLM some LSP info (types of anything near the selection)
  • clicking "Apply" should give the LLM the full conversation, not just the apply block text

Doing these bullet points probably requires creating:

  • hierarchy(file) -> a string describing the hierarchy
  • LSPInfo(file, selection) -> a list of types we want to give the LLM

(experimental)

  • For Ctrl+K, give the LLM recent info about files, type signatures, and function signatures the user has seen recently
@andrewpareles andrewpareles moved this to 🔎 Weekly Focus in 🚙 Void Roadmap Jan 22, 2025
@andrewpareles andrewpareles added the high priority High priority issue label Jan 25, 2025
@andrewpareles andrewpareles changed the title Better Model Prompting - Very Important Provide more codebase context to the LLM Jan 25, 2025
@andrewpareles andrewpareles changed the title Provide more codebase context to the LLM Provide more context to the LLM Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority High priority issue
Projects
Status: 🔎 Improvements (A)
Development

No branches or pull requests

1 participant