Skip to content

Qdrant modifications

Management of code search data (effectively crud operations).

Note: This is for the vectorstore data only.

Searching/filtering is handled via the same uow but in the search module.

add_parsed_github_files(github_search_uow, parsed_github_files, user_id, wait=False) async

Add parsed github files to the qdrant database.

delete_repository_points(github_search_uow, repo_id, user_id, wait=False) async

Delete all points for a specific repository id.

Note: Passing "user_id" to delete a public repo is not necessary, but it is allowed.

TODO 2024-12-18: Should I allow this, or make it require explicit "public"?

update_repository_points(uow, repo_id, user_id, update_info, wait=False) async

Update the repository in the qdrant database.

Note: user_id must be explicitly provided as "public" if it's a public repository.

Note: This handles changed files by deleting them and adding the new version back in.