Skip to content

Commit

Permalink
created enable_doc_group function
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell-Lindsey committed Feb 27, 2024
1 parent d266dfc commit abb7c53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ai_ta_backend/vector_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,12 @@ def disable_doc_group(self, course_name: str, doc_group_name: str):
"""
self.set_enabled_doc_group(course_name, doc_group_name, False)

def enable_doc_group(self, course_name: str, doc_group_name: str):
"""
Enable a document group.
"""
self.set_enabled_doc_group(course_name, doc_group_name, True)

def add_documents_to_doc_group(self, course_name: str, docs: MaterialDocument | list[MaterialDocument]):
"""
Add document group name to documents (in both supabase and qdrant).
Expand Down

0 comments on commit abb7c53

Please sign in to comment.