Skip to content

Update projects API to filter by projects with code embeddings

Context

As part of Semantic search: chat with your codebase (&16910), the Language Server will use the GET /projects API to fetch projects to be displayed on the /include <repository> menu

We need to support a new parameter on this API to allow filtering by projects with code embeddings.

References

Proposal

  • Update the ProjectsFinder to accept a boolean with_code_embeddings_indexed parameter, and filter by p_ai_active_context_code_repositories.state=ready (see discussion)
  • Update the GET /projects to accept a boolean with_code_embeddings_indexed and pass it on to the ProjectsFinder
Edited by 🤖 GitLab Bot 🤖