SilasMarvin / lsp-ai

LSP-AI is an open-source language server that serves as a backend for AI-powered functionality, designed to assist and empower software engineers, not replace them.
MIT License
1.82k stars 55 forks source link

RAG for code #3

Open transitive-bullshit opened 3 weeks ago

transitive-bullshit commented 3 weeks ago

Really interesting project – I think an AI-focused LSP makes a lot of sense as a standalone service.

Implement semantic search-powered context building (This could be incredibly cool and powerful). Planning to use Tree-sitter to chunk code correctly.

You might want to check out https://github.com/getgrit/gritql by @morgante et al. It's a Rust-based wrapper around tree-sitter that I used for my last project doing RAG for code and was really impressed with it.

Cheers 👋

SilasMarvin commented 3 weeks ago

I will check it out thank you! I'll also update this thread soon with some suggestions for chunk formats and potentially defaults for embedding models, etc...