BBC-Esq / VectorDB-Plugin-for-LM-Studio

Plugin that lets you use LM Studio to ask questions about your documents including audio and video files.
https://www.youtube.com/@AI_For_Lawyers
273 stars 36 forks source link

Add source code support: *.pas, *.go, *.c, *.cpp, *.h, *.hpp,*.hxx,*.cxx, *.dpr, *.pp, *.cs, *.js, *.java, *.py #228

Closed SkybuckFlying closed 2 months ago

SkybuckFlying commented 2 months ago

Applicability: Source code translation, understanding, debugging, generation, documentation

BBC-Esq commented 2 months ago

Can you clarify what you are requesting?

SkybuckFlying commented 2 months ago

I want this software to scan my source code files and add them to the AI, so I can question the AI, for example:

Convert Go code to Delphi code, during the conversion the AI will know about certain types thanks to the scanning of the source code files.

BBC-Esq commented 2 months ago

Unfortunately this program is geared towards a single question-answer situation. For example, you could ask "How does this script address the issue of multithreading when running the large language chat model?" And the response would be an explanation and possibly some quotes from the relevant script. However, it would not be able to rewrite anything, unfortunately. This is because the question you send is used to search the database is used to retrieve relevant contexts. Thus, if your question is "Convert Go code to Delphi code" it wouldn't be able to search the database efficiently...kind of hard to explain.

SkybuckFlying commented 2 months ago

OK, it would still be usefull to be able to question the source code...

BBC-Esq commented 2 months ago

It could be awhile until I can get something working, but I thought you'd like this link in the meantime. It's pretty effective based on my limited testing.

https://app.greptile.com/

BBC-Esq commented 2 months ago

Unfortunately I had to cancel this feature request. I researched the issue and I'd need a specific embedding model geared towards coding languages and Huggingface doesn't have any decent ones...hardly any at all, actually. Sorry.

SkybuckFlying commented 2 months ago

It could be awhile until I can get something working, but I thought you'd like this link in the meantime. It's pretty effective based on my limited testing.

https://app.greptile.com/

Thanks but it only works for repos smaller than 10 MB, so not very usefull for now.