4 ms·
"Precise code navigation in 10+ languages helps you move quickly through refs and defs" I can't find any mention of which languages are supported - can anyone
by dazbradbury 4y ago
"Precise code navigation in 10+ languages helps you move quickly through refs and defs"
I can't find any mention of which languages are supported - can anyone point me in the right direction?
- ggordonhall 4y agoWe currently support Go, JS/TS, JSX/TSX, Python, Rust, C#, Java, C/C++
- slackware_linux 4y agoIt would be nice to have this displayed somewhere prominently. I tried adding a lisp project and it sort of just spun around indefinitely until I clicked back.
- ggordonhall 4y agoYes I agree! I'll update the README. We'll be adding some more information to our website about how we implement code navigation soon.
- teaearlgraycold 4y agoThis is a very competent set of supported languages for a startup. I think it would be stronger marketing to just list them out, and to omit the repetition of JSX/JS, TSX/TS. If I see "10+ languages" but it's actually 10, no wait, actually 8, then I'm just getting progressively let down.
- deleted 4y ago[deleted]
- bebrws 4y agoI tried to implement this using OpenAI's embeddings then using cosign similarity between produces vectors instead of the vector DB ( as shown in OpenAI's example code here ). I do the same thing where I take the highest ranking code snippets (vectors) and include them in a prompt to ChatGPT with an original prompt. My code is a mess since I just hacked it together after a long day of work but its a small file. Like 100 lines. I used TreeSitter which I thought was pretty awesome though because it allows for parsing a TON of different languages. I had to parse the languages to create the different code snippet strings. I don't want to create a code snippet of half a function for example.. So TreeSitter parses the code into an AST and I send each different AST node to OpenAI to get the vector (I optimized this so multiple nodes of the same AST type are combined). Send the prompt to OpenAI to get a vector. Find the most similar code snippets to the prompt and include them at the top of a prompt to ChatGPT. This is the same idea right? If anyones interested it can be found here: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-to-search-and-query-a-new-codebase https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-... https://github.com/bebrws/openai-search-codebase-and-chat-about-it https://github.com/bebrws/openai-search-codebase-and-chat-ab...
- visarga 4y agoI implemented this idea as well, but for PDF articles from arXiv. It's one application everyone is doing. Next level is to select your prompt demonstrations based on the user request. Demonstrations too can be chosen by cosine similarity. The more specific they are, the better. You can "train" such a model by adding more demonstrations, especially adding failing cases (corrected) as demos.