Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd piggyback this comment to ask if anyone could share how codebase prompts work?

Given the max tokens per request, do the extensions look at your currently open file, and use some vector similarity to find other files that could be relevant (if embeddings were generated for all files in the project), and then inject relevant source. And/or is it even more complex, by using AST parsing and creating embeddings out of actual linked functions?



There are YouTube videos that go into detail. From what I can remember, it first creates an embedding of your full code, it then refers to your open file and the files next to your current tab, it then extracts the most useful code related to your question.


Can you share a video link?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: