I also built a semantic search engine for codebases using Openai's embedding and FAISS https://github.com/rahuldan/codesearch