Wonder Lab
Wonder LabWonder Lab
  • Blog
  • Products
  • Podcast
  • Resources
  • About
Subscribe
BLOG

Knowledge Share

Technical articles, tutorials, and insights

Found 1 posts
Codebase Knowledge BaseEmbeddingCall Graph

Codebase Knowledge Base Series (06): Encoding the Call Graph into Embeddings — Structural Augmentation Works, But Not Enough

Testing the hypothesis from Article 05: encoding called_by/calls into embedding text to fix Q8 (calculate_order_total missing). Result: structural prefix raises calculate_order_total's similarity score from 0.46 to 0.51 — right direction, but other payment module functions rank higher, blocking it from top-5. Strategy B (comment prefix) also causes Q7 regression. Strategy C (docstring injection) is stable but yields no improvement. Conclusion: the semantic gap is a fundamental embedding limit, not a workaround-able implementation detail.

2026-07-27·19 min read
Wonder Lab
© 2026 Dongqi Chen · Wonder Lab
AboutRSSSitemap