Home / Companies / LanceDB / Blog / Post Details
Content Deep Dive

Building RAG on codebases: Part 2

Blog post from LanceDB

Post Details
Company
Date Published
Author
Sankalp Shubham
Word Count
4,150
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
No
Summary

This document delves into the advanced stages of developing a question-answering (QA) system for codebases, building on previous discussions about indexing and semantic code search. It highlights the use of LLM-generated comments to bridge code with natural language queries, enhancing both keyword and semantic searches. The text emphasizes the importance of selecting appropriate embeddings and vector databases, such as OpenAI's text-embedding-3-large or Jina-embeddings-v3, and outlines methods to refine retrieval accuracy, including hybrid search combining semantic and keyword-based techniques like BM25, and re-ranking using cross-encoders. Additionally, it introduces the HyDE approach to better align natural language queries with code through hypothetical document embeddings and discusses the implementation of these strategies using tools like LanceDB. The document concludes by reflecting on latency and accuracy improvements, and encourages experimentation with the complete implementation available on GitHub, aiming to provide valuable insights into creating effective code QA systems.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 70 2,600 253 90 -44%
LLM 18 2,876 370 130 -20%
RAG 3 1,737 187 65 -20%
AI Coding Assistant 2 423 80 49 -17%
AI Model Fine-tuning 2 547 127 59 -39%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.