#[Open-Source] Semantic Search for Code Bases

14 messages · Page 1 of 1 (latest)

unique totem
#

Hi everyone,

I created an open-source semantic code search tool using OpenAI's embedding API. This tool indexes your project and enables fast searching of relevant functions through natural language queries. Currently, I have added support for Python projects, and working to add other languages too. You can perform all your queries through a simple web-based UI.

It stores the embeddings in a local Postgres database and uses FAISS to perform nearest neighbor searching for a given query. You just need to enter the path to your project and it will look for all the code files, and index all the functions inside those. Once done, you can then perform natural language queries to get your results.

I would love to hear your feedback.

Link: https://github.com/rahuldan/codesearch

Thanks

GitHub

Semantic Code Search tool. Query your codebases using natural language - GitHub - rahuldan/codesearch: Semantic Code Search tool. Query your codebases using natural language

empty shell
#

can it solve an assignment

unique totem
#

@empty shell no it can't solve

ebon cedar
#

Using embedding I’ll be able to create tool like this as well? https://twitter.com/corleone_parmar/status/1610351314462208000?s=46&t=SpFexXxgB6pLnEgUh83xRQ

No more scouring through documentations. What if there was a tool that used @OpenAI ChatGPT to provide quick and accurate answers to your questions about an SDK? No more sifting through documentation – just ask and receive a helpful response. #developer #startupidea

unique totem
#

Yes it is possible. You can index the documentation section wise, and match the nearest with the search query.
And if you want it in a chatbot fashion, then you can give the matched section as well as the query in the prompt. It will generate the answer in natural language

modest dew
#

hi

timber oracle
#

Desperately need this for swift😭

unique totem
timber oracle
#

Awesome man!

#

Im happy to build UI for this is you’d like

#

Mobile has couple fu*** elements im@fixing lol

unique totem
timber oracle
#

Sounds good. Cheers!