4 ms·
Show HN: Open-Source Codebase Index with Tree-sitter
- badmonster 2y agoHi everyone, would love to share my recent work on indexing codebase with tree-sitter for semantic search and RAG. The code is open sourced here https://github.com/cocoindex-io/cocoindex/tree/main/examples/code_embedding https://github.com/cocoindex-io/cocoindex/tree/main/examples... And we've wrote a step by step tutorial with detailed explanation. Would love your feedback, thanks :)
- Sharon_Q 2y agoare you product manager?
- badmonster 2y agoThanks for the question! I'm the maintainer of CocoIndex :) Please feel free to ask me anything!
- rydensun 2y agoAwesome work. The tool seems interesting, I'll give it a try.
- badmonster 2y agoThanks a lot! Appreciate your support, you can leave me a comment on the git repo or here works too, looking forward to your feedback!
- happyeverywhere 2y agoDo you support json? What language does it cover?
- badmonster 2y agoyes. currently covers the following - C (.c) - C++ (.cpp, .cc, .cxx, .h, .hpp, cpp) - C# (.cs, cs) - CSS (.css, .scss) - Fortran (.f, .f90, .f95, .f03, f, f90, f95, f03) - Go (.go, golang) - HTML (.html, .htm) - Java (.java) - JavaScript (.js, js) - JSON (.json) - Markdown (.md, .mdx, md) - Pascal (.pas, pas, .dpr, dpr, Delphi) - PHP (.php) - Python (.py) - R (.r) - Ruby (.rb) - Rust (.rs, rs) - Scala (.scala) - SQL (.sql) - Swift (.swift) - TOML (.toml) - TSX (.tsx) - TypeScript (.ts, ts) - XML (.xml) - DTD (.dtd) - YAML (.yaml, .yml) you can see the code here https://github.com/cocoindex-io/cocoindex/blob/ab9f286633e544f3759bd6148e77d32716506323/src/ops/functions/split_recursively.rs#L68 https://github.com/cocoindex-io/cocoindex/blob/ab9f286633e54...