Use Rag with continue.dev

Use Rag with continue.dev

continue.dev is a plugin system that is available for VS Code and IntelliJ products. It allows using the code base to answer AI questions, as well as custom RAG extensions, where you can index e.g. your proprietary repositories. The purpose of this exercise is to create an ollama-based RAG engine that indexes multiple repositories from a private project hosted on bitbucket. It follows the continue.dev RAG tutorial. The structure is as follows:

  1. Bitbucket - How to traverse a project/repository and get all files' content
    1. Helper functions - Get multi-page replies form bitbucket
    2. Get repository information - Get repositories in a project, branches in a repository
    3. Scan a repository - get all files in the repository and the content of a file
  2. LanceDB - Index with Ollama - how to use lancedb with Ollama to index code and query it
    1. Prepare Ollama and LanceDB
    2. Chunk and embed text
    3. Query LanceDB
    4. Index repositories
  3. Rag in continue.dev
    1. The RAG server an possible improvements
    2. Set up continue.dev in VS code and IntelliJ
  4. Conclusions

The entries will be populated with links and details as I progress with the documentation.

HTH,