Skip to content

Commit

Permalink
Make github index repo default to True
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihbaltaci committed Jan 19, 2025
1 parent f0bbeaf commit df5c831
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gurubase-backend/backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class GuruType(models.Model):
typesense_collection_name = models.CharField(max_length=100, blank=True, null=True)
domain_knowledge = models.TextField(default='', blank=True, null=True)
has_sitemap_added_questions = models.BooleanField(default=False)
index_repo = models.BooleanField(default=False)
index_repo = models.BooleanField(default=True)

date_created = models.DateTimeField(auto_now_add=True)
date_updated = models.DateTimeField(auto_now=True)
Expand Down Expand Up @@ -1166,8 +1166,6 @@ def write_to_milvus(self):
if self.in_milvus:
return

logger.info(f"Writing GitHub file {self.path} to Milvus")

# Split the content into chunks
extension = self.path.split('/')[-1].split('.')[-1]
language = map_extension_to_language(extension)
Expand Down

0 comments on commit df5c831

Please sign in to comment.