yetone / avante.nvim

Use your Neovim like using Cursor AI IDE!
Apache License 2.0
5.12k stars 172 forks source link

feature: Add Support for Context from 3rd Party Resources #526

Open Tiroshi opened 1 week ago

Tiroshi commented 1 week ago

Feature request

I’m looking for a way to dynamically provide context from third-party resources (e.g., Notion pages, RAG systems) to enhance the LLM’s prompt. This context would be external to project files, such as documentation scattered across different platforms

Motivation

In many projects, essential context is often stored outside of code files (e.g., Notion, Discord chats). The lack of integration leads to inefficiency when trying to incorporate relevant external information into the LLM prompt. An interface that allows integrating 3rd party resources directly into the prompt would solve this issue.

Current workaround: Manual copy-pasting of context, which is inefficient and disrupts the workflow.

Other

I’d be happy to help implement this feature with your guidance. I’ve started reviewing the codebase, particularly the Ask function. Any pointers on where or how to approach this would be appreciated, and I’ll give it a go from there

aarnphm commented 1 week ago

extension from #372 let me implement the first few iterations, and then I can get to this.

At the end of the day, we will still try to keep it minimal within the scope of neovim.

andnig commented 1 week ago

In cursor one can link a documentation by simply providing a http(s) link. Cursor than crawls this page and adds it to context. Would this be a reasonable first step?

aarnphm commented 1 week ago

lmao that is just websearch

andnig commented 1 week ago

Yes exactly, but wouldn't this be a first huge step here? As many external ressources are just in plain web? Documentation, etc?

luxus commented 1 week ago

i would love to add for example the svelte 5 documentation.. will that not extend the request size? and would claude caching help here?

aarnphm commented 1 week ago

Yes exactly, but wouldn't this be a first huge step here? As many external ressources are just in plain web? Documentation, etc?

that's what I'm working on see #372 lmao