Whitepaper

Cody context architecture

Context awareness is key to the quality and precision of Cody.

This paper outlines:

  • How Cody generates a prompt that is specifically designed to help answer questions about the user’s code
  • How Cody selects the right context by searching for relevant code snippets
  • What are the two methods for fetching context, and why embeddings are preferred over keyword search
  • How is Sourcegraph continually working to improve context search

Download the whitepaper

Sourcegraph is trusted by the world’s leading enterprises

Uber logoGE logoQualtrics logoDropbox logoNutanix logoCanva logoIndeed logoPlaid logoReddit logoMercado Libre logoLyft logoDatabricks logoShipt logo